Add support for BGGR10P debayering

This commit is contained in:
Yassine Oudjana
2022-01-16 19:51:54 +04:00
parent f8ce7abe98
commit c16dbf6810
3 changed files with 50 additions and 5 deletions

View File

@@ -297,7 +297,7 @@ process_image_for_preview(const uint8_t *image)
glTexImage2D(GL_TEXTURE_2D,
0,
GL_LUMINANCE,
mode.width,
mp_pixel_format_width_to_bytes(mode.pixel_format, mode.width),
mode.height,
0,
GL_LUMINANCE,