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

Commit 33019d54 authored by dimitry's avatar dimitry Committed by Dongwon Kang
Browse files

Apply version-script to libmediandk library

Cherry-pick note: dropped the changes for API 29
Also fixed annotation for AMediaCodec_getBufferFormat correctly

Bug: http://b/69603741
Test: make
Merged-In: I1fd7d1d3dfdd567aa7398c48117c60344bd5e109
Change-Id: I1fd7d1d3dfdd567aa7398c48117c60344bd5e109
parent 5dcd67b8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ cc_library_shared {
            enabled: false,
        },
    },
    version_script: "libmediandk.map.txt",
}

llndk_library {
+6 −6
Original line number Diff line number Diff line
@@ -240,12 +240,6 @@ ssize_t AMediaCodec_dequeueOutputBuffer(AMediaCodec*, AMediaCodecBufferInfo *inf
        int64_t timeoutUs) __INTRODUCED_IN(21);
AMediaFormat* AMediaCodec_getOutputFormat(AMediaCodec*) __INTRODUCED_IN(21);

/**
 * Get format of the buffer. The specified buffer index must have been previously obtained from
 * dequeueOutputBuffer.
 */
AMediaFormat* AMediaCodec_getBufferFormat(AMediaCodec*, size_t index) __INTRODUCED_IN(21);

/**
 * If you are done with a buffer, use this call to return the buffer to
 * the codec. If you previously specified a surface when configuring this
@@ -352,6 +346,12 @@ media_status_t AMediaCodec_signalEndOfInputStream(AMediaCodec *mData) __INTRODUC

#if __ANDROID_API__ >= 28

/**
 * Get format of the buffer. The specified buffer index must have been previously obtained from
 * dequeueOutputBuffer.
 */
AMediaFormat* AMediaCodec_getBufferFormat(AMediaCodec*, size_t index) __INTRODUCED_IN(28);

/**
 * Get the component name. If the codec was created by createDecoderByType
 * or createEncoderByType, what component is chosen is not known beforehand.
+1 −0
Original line number Diff line number Diff line
@@ -111,6 +111,7 @@ LIBMEDIANDK {
    AMediaCodec_dequeueInputBuffer;
    AMediaCodec_dequeueOutputBuffer;
    AMediaCodec_flush;
    AMediaCodec_getBufferFormat; # introduced=28
    AMediaCodec_getInputBuffer;
    AMediaCodec_getInputFormat; # introduced=28
    AMediaCodec_getName; # introduced=28