I am working with MediaCodec
I am using it for decode .mp4
video
MediaCodec decode a video to YUV
format, but I need to get RGBA
All is ok, but I found out that there is a few possible formats like YUV420
, YUV422
and so on...
So, as far as I understand to make conversion I need to know exactly which conversion to apply YUV420_to_RGBA
or YUV422_to_RGBA
or something else...
So, question is - how using MediaCodec
get know about decoding format?
Feel free to ask.
EDIT
I found out that this way I can get COLOR_FORMAT
AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_COLOR_FORMAT, &format_color);
But, I get number 117 ...
How to know what is this number equals?