[FFmpeg-devel] Fix bug for POWER LE in file libswscale/ppc/yuv2rgb_altivec.c

rongyan rongyan236 at foxmail.com
Thu Jul 16 11:26:25 CEST 2015


Hi,
 We propose this patch to fix the bug on POWER LE when converting yuv to rgb in macros vec_unh() and vec_unl() in file libswscale/ppc/yuv2rgb_altivec.c.
  
 Our test case is like this:
 ffmpeg -i input.mov -f rawvideo -pix_fmt rgb24 result.rgb
  
 Before fix the bug, the output rgb frame is as follows:
 
 After bug fix, the output rgb frame is:
 
  
 The fate test result with out patch is in the below:
 
 Thanks for your review.
  
 Rong Yan
  ------------------
  The world has enough for everyone's need, but not enough for everyone's greed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EE376476 at A49CA760.C178A755.jpg
Type: image/jpeg
Size: 76550 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150716/4f58cecc/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 549E083A at A49CA760.C178A755.jpg
Type: image/jpeg
Size: 167718 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150716/4f58cecc/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: B4F2CF3B at A49CA760.C178A755.jpg
Type: image/jpeg
Size: 133425 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150716/4f58cecc/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-swscale-ppc-yuv2rgb_altivec-POWER-LE-support-in-the-.patch
Type: application/octet-stream
Size: 1470 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150716/4f58cecc/attachment.obj>


More information about the ffmpeg-devel mailing list