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

Commit 19657c44 authored by Clément Julliard's avatar Clément Julliard
Browse files

Add clarifying javadoc for HardwareBuffer ownership semantics in QueueRequest#setHardwareBuffer.

Bug: 260667749
Flag: DOCS_ONLY
Change-Id: If68f5ba355f42be49db73dd1874b7f96b80bf178
parent 93d7e93f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3869,7 +3869,9 @@ final public class MediaCodec {

        /**
         * Set a hardware graphic buffer to this queue request. Exactly one buffer must
         * be set for a queue request before calling {@link #queue}.
         * be set for a queue request before calling {@link #queue}. Ownership of the
         * hardware buffer is not transferred to this queue request, nor will it be transferred
         * to the codec once {@link #queue} is called.
         * <p>
         * Note: buffers should have format {@link HardwareBuffer#YCBCR_420_888},
         * a single layer, and an appropriate usage ({@link HardwareBuffer#USAGE_CPU_READ_OFTEN}