stagefright: add an extra buffer to ANW's BUfferQueue
Add an extra buffer to ensure video player has a free buffer to dequeue rather than wait for the queued buffer to be displayed. Enable logs to indicate number of buffers allocated. NOTE: This is not needed for 30fps content on 60fps panel, But making this change regardless for all framerates till root-cause is identified in SF Change-Id: Id1048d7a104b2a75613dda8b9cf166e59bc4bb04 stagefright: ACodec: add an extra buffer to ANW's BUfferQueue Add an extra min-undequeued buffer to ensure framework (ACodec) has a free buffer to dequeue rather than wait for the queued buffer to be displayed This improves the performance of playback via nuPlayer. Change-Id: If02a91f8121b7a2664c0264498c7b7e3031a88d7 CRs-Fixed: 607794 stagefright: Increase buffers with nativewindow To avoid frame-drops due to latencies in rendering. If (minUnDequeued) buffers are caught in display pipeline, dequeueBuffer will block, which delays subsequent queuebuffer, and this repeats until a buffer is canceled (frame drop). This issue is more prominent with high resolution content on secondary displays. Adding additional buffers increases the stagger in display and makes finding a free buffer more likely Change-Id: I352a77ffcd67c8fdd1c2485e3737ba923950f8fd CRs-Fixed: 714475
Loading
Please register or sign in to comment