media.c2: Enable BaseBlock to parcel AHardwareBuffer

Enable c2 interface to send/receive AHardwareBuffer.

Test: m
Bug: 254050314
Change-Id: I3289d891fb0eae49652e3e88b77070f6762fc5b1
This commit is contained in:
Sungtak Lee
2023-09-14 02:23:17 +00:00
parent 05f682fd3d
commit 22c2ea079b
2 changed files with 6 additions and 0 deletions

View File

@@ -35,5 +35,6 @@ package android.hardware.media.c2;
@VintfStability
union BaseBlock {
android.hardware.common.NativeHandle nativeBlock;
android.hardware.HardwareBuffer hwbBlock;
android.hardware.media.bufferpool2.BufferStatusMessage pooledBlock;
}

View File

@@ -16,6 +16,7 @@
package android.hardware.media.c2;
import android.hardware.HardwareBuffer;
import android.hardware.common.NativeHandle;
/**
@@ -31,6 +32,10 @@ union BaseBlock {
* #nativeBlock is the opaque representation of a buffer.
*/
NativeHandle nativeBlock;
/**
* #hwbBlock is the opaque representation of a GraphicBuffer
*/
HardwareBuffer hwbBlock;
/**
* #pooledBlock is a reference to a buffer handled by a BufferPool.
*/