[FFmpeg-devel] PATCH BlackFin YUV2 to RGB Color Space Converters

Luca Barbato lu_zero
Sat May 5 05:19:24 CEST 2007


Marc Hoffman wrote:
> Blackfin optimized YUV420 to RGB CSC Color Space Converters.

> Please review thank you.

> +#define clock()      ({ int _t; asm volatile ("%0=cycles;" : "=d" (_t)); _t; })

why _t?

why not adding START/STOP_TIMER bfin?

> +
> +#define L1CODE __attribute__ ((l1_text))

shouldn't that be put somewhere else since looks like you will use it in
other code?

> +
> +extern void
> +ff_bfin_yuv2rgb555_line (uint16_t *Y, uint16_t *U, uint16_t *V, uint8_t *out, int w, uint32_t *coeffs)
> +     L1CODE;

Ugly to read, please 79 cols and

> +
> +     extern void
> +     ff_bfin_yuv2rgb565_line (uint16_t *Y, uint16_t *U, uint16_t *V, uint8_t *out, int w, uint32_t *coeffs)
> +     L1CODE;

Why indentation for protos?

> +
> +     extern void
> +     ff_bfin_yuv2rgb24_line (uint16_t *Y, uint16_t *U, uint16_t *V, uint8_t *out, int w, uint32_t *coeffs)
> +     L1CODE;
> +
> +     typedef void (* ltransform_t)(uint16_t *Y, uint16_t *U, uint16_t *V, uint8_t *out, int w, uint32_t *coeffs);
> +
> +

> +
> +
> +SwsFunc ff_bfin_yuv2rgb_get_func_ptr (SwsContext *c)
> +{
> +    SwsFunc f = 0;

NULL?

> +    New factorization to elliminate the truncation error which was
typo                         ^


That is a quick review...

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list