heifwriter/src/main/java/androidx/heifwriter/HeifEncoder.java
public void addYuvBuffer(int format, @NonNull byte[] data) {
        if (mInputMode != INPUT_MODE_BUFFER) {
            throw new IllegalStateException(
                    "addYuvBuffer is only allowed in buffer input mode");
        }
        if (data == null || data.length != mWidth * mHeight * 3 / 2) {
            throw new IllegalArgumentException("invalid data");
        }
        addYuvBufferInternal(data);
    }
/**
     * Add one YUV buffer to be encoded. This might block if the encoder can't process the input
     * buffers fast enough.
     *
     * After the call returns, the client can reuse the data array.
     *
     * @param format The YUV format as defined in {@link android.graphics.ImageFormat}, currently
     *               only support YUV_420_888.
     *
     * @param data byte array containing the YUV data. If the format has more than one planes,
     *             they must be concatenated.
     */
Add one YUV buffer to be encoded. This might block if the encoder can't process the input
buffers fast enough.

After the call returns, the client can reuse the data array.

@param format The YUV format as defined in  android.graphics.ImageFormat, currently
only support YUV_420_888.

@param data byte array containing the YUV data. If the format has more than one planes,
they must be concatenated.
Add one YUV buffer to be encoded . This might block if the encoder can ' t process the input buffers fast enough . After the call returns the client can reuse the data array . @param format The YUV format as defined in android . graphics . ImageFormat currently only support YUV_420_888 . @param data byte array containing the YUV data . If the format has more than one planes they must be concatenated .
public void addYuvBuffer(int format, @NonNull byte[] data) {
        if (mInputMode != INPUT_MODE_BUFFER) {
            throw new IllegalStateException(
                    "addYuvBuffer is only allowed in buffer input mode");
        }
        if (data == null || data.length != mWidth * mHeight * 3 / 2) {
            throw new IllegalArgumentException("invalid data");
        }
        addYuvBufferInternal(data);
    }
public void addYuvBuffer ( int format , @ NonNull byte [ ] data ) { if ( mInputMode != INPUT_MODE_BUFFER ) { throw new IllegalStateException ( "addYuvBuffer is only allowed in buffer input mode" ) ; } if ( data == null || data . length != mWidth * mHeight * 3 / 2 ) { throw new IllegalArgumentException ( "invalid data" ) ; } addYuvBufferInternal ( data ) ; }
Add one YUV buffer to be encoded.
Add one YUV buffer to be encoded .