The reason that the preview is only grayscale is that OpenGLES (which is used by Surface Flinger for scene composition) does not support YUV input. Instead, Surface Flinger is only passing in the Y component in GLES as a lumiance texture, which gives you the grayscale preview. In order to get a full color preview, the preview frames would have to be converted to RGB, likely RGB565, but this will take more time per frame, since the YUV->RGB conversion is more complicated.
Steve. On May 8, 3:08 am, Harishkumar V <[email protected]> wrote: > Hi, > > i tried to compile libcameraservice.tgz, but its failing. > > Am i need to modify other files. if so, what are the files. > > Thanks and Regards, > HarishKumar.V > > 2009/5/8 Androidphan <[email protected]> > > > > > > > Thanks for the tip, I'll let you know if it worked. > > > On May 8, 5:07 am, Harishkumar V <[email protected]> wrote: > > > Hi Androidplan, > > > > ignore previous mail. > > > > you can see > > > android_build/external/opencore/codecs_v2/utilities/colorconvert/src/ > > > > there lot of conersions are available. > > > > Thanks and Regards, > > > HarishKumar.V > > > > 2009/5/8 Harishkumar V <[email protected]> > > > > > Hi Androidplan, > > > > > you can see android_build/external/opencore/colorconvert/ > > > > > there lot of conersions are available. > > > > > Thanks and Regards, > > > > HarishKumar.V > > > > > On Thu, May 7, 2009 at 8:11 PM, Androidphan <[email protected]> > > wrote: > > > > >> My preview video is now black & white only... Anyone from the > > > >> developers can give a hint on how to convert YUYV to this YUV420/ > > > >> YUV422 SP format? > > > > >> On May 7, 10:50 am, "[email protected]" > > > >> <[email protected]> wrote: > > > >> > Hi androidphan, > > > >> > See my attachment for get preview image.(unfortunately, > > android > > > >> app > > > >> > seems only takes the Y filed but u and v.So our preview image is > > single > > > >> > colored) > > > >> > You should transfer ur raw data YUYV to YYYYUUVV format as > > our > > > >> > device.cpp write. > > > > >> > Androidphan 写道: > > > > >> > > I now can get a preview through. But still I would like to know > > how to > > > >> > > convert my frame to yuv422sp? How is it stored in memory? > > > > >> > libcameraservice.tar.gz > > > >> > 139KViewDownload- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
