summaryrefslogtreecommitdiff
path: root/src/android/metadata/camera_metadata.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-08-03 12:02:55 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-08-03 23:37:39 +0300
commitc615807bc420d3ce8fe2091ae99789077cb094a1 (patch)
treef3f8a3ceede1b99415d5f7f67a53e8b95e6954e8 /src/android/metadata/camera_metadata.c
parent86eac92fcf0c5d37c9db779008ff513c4f36d9be (diff)
qcam: Support OpenGL ES 2.0
The GL_RG and GL_RED texture formats are not supported in OpenGL ES prior to 3.0. In order to be compatible with OpenGL ES 2.0, use GL_LUMINANCE_ALPHA and GL_LUMINANCE instead. The shader code needs to be updated accordingly for GL_RG, as the second component is now stored in the alpha component instead of the green component. Usage of the red component is fine, the luminance value is stored in the red, green and blue components. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Diffstat (limited to 'src/android/metadata/camera_metadata.c')
0 files changed, 0 insertions, 0 deletions