Support shared av memory handle in Tuner JNI
In the MediaEvent of AV filters, the AV memory handle is mapped/unmapped on each event. If the vendor allocates a persistent memory block, and use MediaEvent.offset to access the data, the mapping change is unnecessary. To improve this, a new API to get shared AV Memory is introduced in Tuner HAL 1.1. Tuner JNI queries the sharedAvMemory Handle when the media filter is opened. It builds up linear block through either shared or independent memory block by checking the memory handle fd number. Test: make Bug: 162013047 Bug: 157143515 Bug: 156664393 Change-Id: I5bfe3a8f4c26b5789212f56709b70c512ed15a0c
Loading
Please register or sign in to comment