Hi,

On Tue, Nov 18, 2008 at 11:15 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> the camera provide yuv422 data,but openGL "just show the Y plane of
> YUV buffers"(frameworks\base\libs\surfaceflinger\LayerBase.cpp
> 624),must convert yuv422 to rgb565,camera preview is ok,a little
> slow,why,thanks


No, OpenGL doesn't support YUV textures. That's just that.

On the G1 we use another code path to draw video frames, it doesn't
use OpenGL ES, instead it uses the 2D engine. The code that you are
referring to exists only so that the YUV video node will display
"something" when used on the emulator or on a device that doesn't do
YUV (in which case the video node should not try to produce YUV
output). It's mostly there for debugging.

Of course, *some* YUV extensions for OpenGL ES exist,  and the code
in SurfaceFlinger doesn't make use of them at this time. Exercise left
to the reader... or until real h/w with these capabilities falls into
my hands.

What h/w are you using?

Mathias

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to