Hi, What is the significance of displayWidth, displayHeight, frameWidth, frameHeight parameters inside android_surface_output.cpp??
status_t ret = mSurface->registerBuffers(displayWidth, displayHeight, frameWidth, frameHeight, PIXEL_FORMAT_RGB_565, mFrameHeap); status_t ret = mSurface->registerBuffers(displayWidth, displayHeight, frameWidth, frameHeight, PIXEL_FORMAT_YCbCr_420_SP, mHeapPmem); status_t ret = mSurface->registerBuffers(iVideoDisplayWidth, iVideoDisplayHeight, iVideoWidth, iVideoHeight, PIXEL_FORMAT_YCbCr_420_SP, mHeapPmem); I am playing a 320X240 mp4 stream on my 800X480 display panel.The video is scaled and displaying closer to 800X480. I was suspecting displayWidth = closer to 800 displayHeight = closer to 480 (for above Condition maintaining aspect ratio as 320X240) frameWidth = 320 frameHeight = 240 But when i took the log, i got the values as below. displayWidth = 320 displayHeight = 240 frameWidth = 320 frameHeight = 240 I have few doubts: 1. Is this correct?? 2. Is it possible to get the "to be scaled values" inside android_surface_output?? I mean in this case the values scaled from 320X240, bit closer to 800X480 and having the same aspect ratio as 320X240?? 3. If not, which part of surface flinger code uses this values for scaling mostly passed from the window manager?? Regards, Sreedhar --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---