Reading format camera Android

android camera out of the data format is nv21, i.e. YUV420SP format, data [0] storing the Y component, data [1] and data [2] stored interleaved UV component. And RGB24 format, i.e. the like SurfaceView View identified RGB565 format, stored directly rgbrgb stored contiguously arranged such, that do not want to store separate YUV components. Here the gap is a storage YUV component, the number of GPU performed worse about three times, each time data extraction because the GPU needs to be taken out of the complete color data can be processed, which is required each time the component YUV extracted from the Texture, thus leading to the GPU needs to be performed three times, and sequentially stored in the RGB format, one of three pixels can be read directly obtained. Thus, where the first data to the GPU rendering Camera them, and then removed from the beauty Texture do FBO FBO in the drawing, the filter efficiency of the processing will be higher

Published 161 original articles · won praise 71 · views 110 000 +

Guess you like

Origin blog.csdn.net/yxpandjay/article/details/103960392