Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22c2ea07 authored by Sungtak Lee's avatar Sungtak Lee
Browse files

media.c2: Enable BaseBlock to parcel AHardwareBuffer

Enable c2 interface to send/receive AHardwareBuffer.

Test: m
Bug: 254050314
Change-Id: I3289d891fb0eae49652e3e88b77070f6762fc5b1
parent 05f682fd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}
+5 −0
Original line number Diff line number Diff line
@@ -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.
     */