Hi all,

I'm having trouble stabilizing a video pipeline using MediaCodec and 
Camera.PreviewCallback. I understand that specifying YV12 in 
Camera.setPreviewFormat should yield a tri planar YUV420 image in the 
preview callback. On the Nexus 7, this is the behavior I have seen, however 
the Galaxy Nexus callback returns a YUV 420 image with interpolated chroma 
layers (bi planar). 

Thus far, I have been able to identify this device quirk by the auxiliary 
issue of the TI Ducati H264 encoder being unable to consume tri planar YUV 
420 as a color format (with the MediaCodec API capabilities API). Although 
I have not seen this quirk in any other Nexus device, I am concerned this 
position exposes us to future headache if the device behavior should 
change, or if another device we have not tested has the same quirk 
alongside different preview image format behavior. For reference, here is a 
stub that would establish the preview callback that's been troubling 
me: https://gist.github.com/f536efdf780d6fdb2e98

Is there something I'm missing here with respect to using setPreviewFormat? 
Has anyone run into issues with the Camera preview format? Do I file a bug 
for this?

Thanks,
Charley

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

Reply via email to