[FFmpeg-devel] [PATCH 3/5] libswscale: Optimize yuv2rgb conversion for avr32

Diego Biurrun diego
Wed Feb 18 17:26:54 CET 2009


On Wed, Feb 18, 2009 at 03:27:01PM +0100, Hans-Christian Egtvedt wrote:
> 
> --- /dev/null
> +++ b/libswscale/yuv2rgb_avr32.c
> @@ -0,0 +1,371 @@
> +#define RGB(uv_part)                                                                        \
> +    __asm__ volatile ("ld.w\t%0, %3[%7:" uv_part " << 2]\n\t" /* tmp = c->table_gV[V] */    \
> +                      "ld.w\t%1, %4[%8:" uv_part "  << 2]\n\t" /* g = c->table_gU[U] */     \
> +                      "ld.w\t%2, %5[%8:" uv_part "  << 2]\n\t" /* b = c->table_bU[U] */     \

Here and in other places: If it is possible to prettyprint your code
through vertical alignment, go for it.  Michael will mercilessly hunt
down and point out all instances to you anyway :-)

Diego




More information about the ffmpeg-devel mailing list