Hi there !

I'm requesting YV12 buffers from camera callback Camera.PreviewCallback.onPreviewFrame in Java and passing them to C++ via JNI. Then I need to encode them in Xvid using official Xvid library.

But when specifying the Xvid image format to YV12, I noticed Android YV12 U and V components are inverted.

If I use the Xvid format I420 and use the Android YV12 buffer, the resulting image is right.

So my question is : are you sure the YV12 Android format is the official one defined in documents like http://www.fourcc.org/yuv.php#YV12 ?

On this page, you'll see that I420 is the same format as YV12 but with U and V inverted.

Is this intended or a bug ?

I tested this on a Nexus S and emulator with an Android 4.0.3 system image.

Thanks.

Cédric

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to