[FFmpeg-devel] [PATCH] improve yuv422p to rgb in libswscale

Baptiste Coudurier baptiste.coudurier
Wed Dec 1 02:20:42 CET 2010


On 11/30/2010 05:13 PM, Michael Niedermayer wrote:
> On Tue, Nov 30, 2010 at 04:07:20AM -0800, Baptiste Coudurier wrote:
>> Hi
>>
>> $subject, use full vertical data when convert 422p, improve quality a lot.
>>
>> --
>> Baptiste COUDURIER
>> Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
>> FFmpeg maintainer                                  http://www.ffmpeg.org
>
>>   x86/yuv2rgb_template.c |   25 ++++-------
>>   yuv2rgb.c              |  109 ++++++-------------------------------------------
>>   2 files changed, 26 insertions(+), 108 deletions(-)
>> 16f384c9b114c76572a539511c42267ce2942c67  yuv422p_to_rgb.patch
>
> this looks like it would make 420p->rgb quite a bit slower.

Do you think changing >>1 to >>vshift would make is quite a bit slower ?

> If so thats a problem.
> making 422p->rgb slower isnt a real problem as it can be changed to 420p
> by manipulating linesizes

That's what I want to avoid, this produces crap.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list