I have read those threads. And I have seen that data_header_info.private_data_ptr is used to share hardware frame buffer between dec node and surface output. will it be keep unchanged in future or opencore will involve a new policy to do that.
One more question is about mSurface->registerBuffers() calling in Android_surface_output.cpp. I only see PIXEL_FORMAT_YCbCr_420_SP and PIXEL_FORMAT_RGB_565 as input parameter in registerBuffers(). are they the only format supported by surface? Thanks On Feb 20, 2:39 pm, rktb <[email protected]> wrote: > http://groups.google.com/group/android-framework/browse_thread/thread... > > http://groups.google.com/group/android-framework/browse_thread/thread... > > Please read the above threads and then let me know if you have further > questions. > > -Ravi > > On Feb 20, 12:02 am, waterblood <[email protected]> wrote: > > > Thanks for your reply. > > > Is there a way to decide buffer allocator between an output port and > > an input port in node level? Now what i see is opencore always take > > the upstream output port as the supplier for the buffer shared in a > > connection , and use a flag PVMF_MIME_YUV420_SEMIPLANAR_YVU in > > iVideoSubFormat to indicate whether upstream node is a hardware codec. > > If it is a hardware codec, the surface can directly take use of the > > buffer pass down for rendering. > > > Why not take use of useMemoryAllocators in opencore, and let 3rd party > > implement their own allcator, and hook them to node as they wanted? If > > so opencore will not care where the buffer come from, just take and > > use it. > > > Thanks > > Guoyin Chen > > > On Feb 20, 12:39 pm, rktb <[email protected]> wrote: > > > > On Feb 19, 7:57 pm, waterblood <[email protected]> wrote:> Hi All, > > > > > I have below two questions about opencore: > > > > > 1. useMemoryAllocators has been defined in several places, just as > > > > AndroidSurfaceOutput and AndroidAudioInput. But cannot find any place > > > > where it be called. I just wonder what this function supposed to do? > > > > Is it supposed to decide which memory allocator be used between two > > > > node connection? > > > > This API is not being used. > > > > > 2. For A/V sync, video frame should be dropped if video is too late > > > > to render. But I cannot find the code in opencore. Can anyone point me > > > > where I can find it. > > > > Look for "PVMF_MEDIAOUTPUTNODEPORT_MEDIA_LATE" in opencore/nodes/ > > > pvmediaoutputnode/src/pv_media_output_node_inport.cpp. > > > > > Thanks in advance! > > > > Guoyin Chen > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
