0

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.

James Z
  • 12,209
  • 10
  • 24
  • 44
Mohan
  • 53
  • 5

1 Answers1

0

Using COLOR_FormatSurface you can use a canvas of a surface to draw frames on it.

Also you can check this and this answers.

easy_breezy
  • 1,073
  • 7
  • 18