[vlc-devel] [PATCH] kate decoder: track and use basic formatting

ogg.k.ogg.k at googlemail.com ogg.k.ogg.k at googlemail.com
Thu Jul 31 12:04:07 CEST 2008


>> We have a trick for this I believe...
>> In the demux (ogg in this case), you set
>> fmt.subs.spu.i_original_frame_width to the width of the video stream.
>> Then in your codec you read this information back and you use it:
>>
>> p_spu->i_original_picture_width =
>>          p_dec->fmt_in.subs.spu.i_original_frame_width;
>>
>> This was originally intended for vobsub/DVD subtitles, but it might
>> work here as well.

I've looked at this, and it seems to store the size of the original movie,
which is what I store in the Kate headers, rather than the size of the
current movie, which might be different, so I think abusing this to store
it would be, er, not welcomed, so I've not done it, and I've also disabled
the code to search for vout.

Hopefully, all streams using position/size info should have the original
size set anyway.

I've also cleaned up the string operations as mentioned.

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-kate-decoder-plugin-track-and-use-basic-formatting.patch
Type: text/x-patch
Size: 13988 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080731/9be6e7c5/attachment.bin>


More information about the vlc-devel mailing list