[Android] YV12: avoid swscale usage by asking I420 instead.

Sébastien Toque git at videolan.org
Thu Dec 27 12:03:02 CET 2012


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Thu Dec 27 12:02:57 2012 +0100| [5b91ca398dab88fe97951be2d8d0dd37d7524610] | committer: Sébastien Toque

YV12: avoid swscale usage by asking I420 instead.
the vout already has code to swap the buffers

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5b91ca398dab88fe97951be2d8d0dd37d7524610
---

 .../0003-androidsurface-setup-format-depending-on-surface-for.patch  |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patches/0003-androidsurface-setup-format-depending-on-surface-for.patch b/patches/0003-androidsurface-setup-format-depending-on-surface-for.patch
index a3b139a..86e62f7 100644
--- a/patches/0003-androidsurface-setup-format-depending-on-surface-for.patch
+++ b/patches/0003-androidsurface-setup-format-depending-on-surface-for.patch
@@ -46,7 +46,7 @@ index 1b757ee..37c6137 100644
 +    switch( surface_format ) {
 +        case ANDROID_IMAGE_FORMAT_YV12:
 +            msg_Dbg( vd, "ImageFormat.YV12" );
-+            fmt.i_chroma = VLC_CODEC_YV12;
++            fmt.i_chroma = VLC_CODEC_I420;
 +            break;
 +
 +        case ANDROID_PIXEL_FORMAT_RGB_565:



More information about the Android mailing list