The NdkMediaCodec.h header file requires API level 28 for the declaration of
AMediaCodec_setAsyncNotifyCallback.
The java documentation for the equivalent function setCallback of class android.media.MediaCodec is specified at API level 21.
I'm puzzled why there is such a big discrepancy in the API level for these equivalent functionalities. Is this a mistake in the header, or was there a long delay in implementing the async system in the ndk version?