[vlc-devel] Re: VCD OGT subtitles and rescaling

Sigmund Augdal sigmunau at stud.ntnu.no
Tue Dec 23 18:21:12 CET 2003


On Tue, Dec 23, 2003 at 11:47:28AM -0500, R. Bernstein wrote:
> With respect to the window size: what VLC does on the vout does makes
> sense - for an aspect ratio of 4:3, the window for a 480x480 is
> 480x360 and so the y direction is shrunk. In xine the y direction
> seems preserved, but the x direction expanded.
Sounds very plausible. It is strange that it go shrunk though.
> 
> I gather then there's not much already in place for image manipulation
> in vlc. So now that I have something minimal working for SVCD
> subtitles, I'll make larger changes to the render routine. I don't
> however see what's been done so far as being all that specific to OGT
> though. Basically there's something that extracts a palette
> bitmap. After this is done, the rest is pretty generic. If there were
> a simple, lightweight image library for scaling and antialiasing
> bitmap fonts, it would be nice to use here.
> 
> But if not, scaling an optionally antialiasing it isn't all that
> difficult to code. Probably antialiasing will be done before scaling,
> but the antialiasing code in either case will come later.

I don't understand what you mean by antialiasing here. I also still don't
understand why you want to reuse the dvd rendering procedure. Why not write
a little function what does this directly, and not encode/decode an extra
time.
> 
> The point about the DVD Rendering was that within the context of DVD
> rendering, it looks like the same thing could be accomplished with
> less field packing and extraction (i.e. shifting and'ing and or'ing
> and therefore simpler and faster) just by using the two bytes in the
> 16-bit words used more simply. Am I missing something here? 
> 
> -- 
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
> If you are in trouble, please contact <postmaster at videolan.org>

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list