[FFmpeg-soc] [soc]: r5585 - indeo5/ivi_common.c

Maxim max_pole at gmx.de
Fri Jan 15 12:02:20 CET 2010


kostya schrieb:
> Author: kostya
> Date: Fri Jan 15 10:14:07 2010
> New Revision: 5585
>
> Log:
> Round band dimensions correctly
>
> Modified:
>    indeo5/ivi_common.c
>
> Modified: indeo5/ivi_common.c
> ==============================================================================
> --- indeo5/ivi_common.c	Fri Jan 15 10:04:35 2010	(r5584)
> +++ indeo5/ivi_common.c	Fri Jan 15 10:14:07 2010	(r5585)
> @@ -138,8 +138,8 @@ int av_cold ff_ivi_init_planes(IVIPlaneD
>          /* select band dimensions: if there is only one band then it
>           *  has the full size, if there are several bands each of them
>           *  has only half size */
> -        b_width  = planes[p].num_bands == 1 ? planes[p].width  : planes[p].width  >> 1;
> -        b_height = planes[p].num_bands == 1 ? planes[p].height : planes[p].height >> 1;
> +        b_width  = planes[p].num_bands == 1 ? planes[p].width  : (planes[p].width  + 1) >> 1;
> +        b_height = planes[p].num_bands == 1 ? planes[p].height : (planes[p].height + 1) >> 1;
>  
>          /* luma   band buffers will be aligned on 16x16 (max macroblock size) */
>          /* chroma band buffers will be aligned on   8x8 (max macroblock size) */
> _______________________________________________
> FFmpeg-soc mailing list
> FFmpeg-soc at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc
>
>   

You don't need to round them because all indeo5 frame dimensions are
always a multiply of 4.

Regards
maxim


More information about the FFmpeg-soc mailing list