If is it possible to get BGR from MediaCodec?
问题 As far as I know, MediaCodec return output buffer of image in YUV420 and then you can process with it as you like to... But in my case I need to convert YUV420 in BGR , it is quite expensive conversion. So, question is if it is possible immediately (without conversion) get BGR from MediaCodec ? My code now uint8_t *buf = AMediaCodec_getOutputBuffer(m_data.codec, static_cast<size_t>(status), /*bufsize*/nullptr); cv::Mat YUVframe(cv::Size(m_frameSize.width, static_cast<int>(m_frameSize.height *