Extract black and white image from android camera's NV21 format

前端 未结 6 1753
你的背包
你的背包 2020-11-28 02:18

I have done some google-ing around and couldn\'t find enough information about this format. It is the default format for camera preview. Can anyone suggest good sources of i

6条回答
  •  迷失自我
    2020-11-28 02:39

    The data is in YUV420 format.
    If you are only interested in the monochrome channel, i.e. "black and white", then this the first width x height bytes of the data buffer you already have.
    The Y channel is the first image plane. It is exactly the grey/intensity/luminosity etc. channel.

提交回复
热议问题