Mercurial > mplayer.hg
comparison postproc/swscale.c @ 12768:931eee818c52
Altivec unscaled YV12 -> packed YUV patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
author | michael |
---|---|
date | Tue, 06 Jul 2004 13:52:56 +0000 |
parents | d2aef091743c |
children | 1d6892e87a2c |
comparison
equal
deleted
inserted
replaced
12767:f60b9fac3146 | 12768:931eee818c52 |
---|---|
1907 else | 1907 else |
1908 c->swScale= PlanarToUyvyWrapper; | 1908 c->swScale= PlanarToUyvyWrapper; |
1909 } | 1909 } |
1910 } | 1910 } |
1911 | 1911 |
1912 #ifdef HAVE_ALTIVEC | |
1913 if ((c->flags & SWS_CPU_CAPS_ALTIVEC) && | |
1914 ((srcFormat == IMGFMT_YV12 && | |
1915 (dstFormat == IMGFMT_YUY2 || dstFormat == IMGFMT_UYVY)))) { | |
1916 // unscaled YV12 -> packed YUV, we want speed | |
1917 if (dstFormat == IMGFMT_YUY2) | |
1918 c->swScale= yv12toyuy2_unscaled_altivec; | |
1919 else | |
1920 c->swScale= yv12touyvy_unscaled_altivec; | |
1921 } | |
1922 #endif | |
1923 | |
1912 /* simple copy */ | 1924 /* simple copy */ |
1913 if( srcFormat == dstFormat | 1925 if( srcFormat == dstFormat |
1914 || (isPlanarYUV(srcFormat) && isGray(dstFormat)) | 1926 || (isPlanarYUV(srcFormat) && isGray(dstFormat)) |
1915 || (isPlanarYUV(dstFormat) && isGray(srcFormat)) | 1927 || (isPlanarYUV(dstFormat) && isGray(srcFormat)) |
1916 ) | 1928 ) |