[MPlayer-dev-eng] [PATCH] altivec unscaled planar YV12 to packed YUY2 conversion.

Michael Niedermayer michaelni at gmx.at
Sat Jun 25 17:39:28 CEST 2005


Hi

On Saturday 25 June 2005 16:51, Nicolas Plourde wrote:
> Here is a fix for yv12 to yuy2 altivec conversion. I dont know
> anything about altivec
> and csp conversion so I did not try to fix the altivec code. the
> problem is that the altivec code
> expect the width to be multiple of 16, when its not the image get
> distorted so my patch
> fall back to default converter if its the case.
>
> its probably not the best solution but fix the problem until a better
> fix to the altivec code is
> submitted.

iam against such workarounds, you shouldnt need to know much about altivec to 
add some c code to handle the last 0-15 pixels


> +  if( ((float)width/16) == round(width/16) )
 
while i dont have a technical argument againt floats in this check it does 
seem a little strange to me. not to mention round() doing nothing at all here

-- 
Michael




More information about the MPlayer-dev-eng mailing list