Hi,

On Wed, Jun 29, 2011 at 12:31 AM, Kostya <[email protected]> wrote:
> On Tue, Jun 28, 2011 at 02:07:24PM -0700, Ronald S. Bultje wrote:
>> From: "Ronald S. Bultje" <[email protected]>
>>
>> This means that precision is retained when scaling between sample
>> formats with >8 bits per component (48bit RGB, 16bit grayscale,
>> 9/10/16bit YUV).
>> ---
>>  libswscale/ppc/swscale_altivec.c  |    2 +
>>  libswscale/swscale.c              |  694 
>> ++++++++++++++++++++++++-------------
>>  libswscale/swscale_internal.h     |   10 +
>>  libswscale/utils.c                |    9 +-
>>  libswscale/x86/swscale_template.c |   73 +----
>>  tests/ref/lavfi/pixdesc           |   16 +-
>>  tests/ref/lavfi/pixfmts_copy_le   |   16 +-
>>  tests/ref/lavfi/pixfmts_crop_le   |   16 +-
>>  tests/ref/lavfi/pixfmts_hflip_le  |   16 +-
>>  tests/ref/lavfi/pixfmts_null_le   |   16 +-
>>  tests/ref/lavfi/pixfmts_scale_le  |   32 +-
>>  tests/ref/lavfi/pixfmts_vflip_le  |   16 +-
>>  12 files changed, 544 insertions(+), 372 deletions(-)
>>
>> diff --git a/libswscale/ppc/swscale_altivec.c 
>> b/libswscale/ppc/swscale_altivec.c
>> index 14f35b6..46b3234 100644
>> --- a/libswscale/ppc/swscale_altivec.c
>> +++ b/libswscale/ppc/swscale_altivec.c
>> @@ -406,7 +406,9 @@ void ff_sws_init_swScale_altivec(SwsContext *c)
>>      if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
>>          return;
>>
>> +    if (c->scalingBpp == 8) {
>>      c->hScale       = hScale_altivec_real;
>
> you can reindent this line
>
> the rest looks ok (and causes déjà vu)

Yeah I made small changes so decided to re-send for review. Committed
with suggested change.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to