I am developing a video encoder using low level media codec API. I am using surface for input and output. As per the media codec library it says that if you are using surface you can use COLOR_FormatSurface
and COLOR_YUV420Flexible
as color format.
I understand about COLOR_YUV420Flexible
as it follows 4:2:0 chroma subsampling, but I am confused about COLOR_FormatSurface
. what is it, how many bits does it occupy? I couldn't found any thing on the Internet.