Static internal variables, added resolution limit explanation

This commit is contained in:
Armin Novak 2022-01-31 10:33:42 +01:00 committed by akallabeth
parent 4c78b66822
commit 83d834a6ca

View File

@ -84,11 +84,12 @@ typedef media_status_t (*AMediaCodec_getName_t)(AMediaCodec*, char**);
typedef void (*AMediaCodec_releaseName_t)(AMediaCodec*, char*); // 28
typedef AMediaFormat* (*AMediaCodec_getInputFormat_t)(AMediaCodec*); // 28
const int COLOR_FormatYUV420Planar = 19;
const int COLOR_FormatYUV420Flexible = 0x7f420888;
static const int COLOR_FormatYUV420Planar = 19;
static const int COLOR_FormatYUV420Flexible = 0x7f420888;
const int MEDIACODEC_MINIMUM_WIDTH = 320;
const int MEDIACODEC_MINIMUM_HEIGHT = 240;
/* https://developer.android.com/reference/android/media/MediaCodec#qualityFloor */
static const int MEDIACODEC_MINIMUM_WIDTH = 320;
static const int MEDIACODEC_MINIMUM_HEIGHT = 240;
struct _H264_CONTEXT_MEDIACODEC
{