The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/util: Add GR8 bayer -> RGB8 format conversion

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2540>

authored by

Beyley Cardellio and committed by
Marge Bot
4a1c362d 03299fd9

+12
+12
src/xrt/auxiliary/util/u_sink_converter.c
··· 754 754 struct xrt_frame *converted = NULL; 755 755 756 756 switch (xf->format) { 757 + case XRT_FORMAT_BAYER_GR8: { 758 + uint32_t w = xf->width / 2; 759 + uint32_t h = xf->height / 2; 760 + 761 + if (!create_frame_with_format_of_size(xf, w, h, XRT_FORMAT_R8G8B8, &converted)) { 762 + return; 763 + } 764 + 765 + from_BAYER_GR8_to_R8G8B8(converted, w, h, xf->stride, xf->data); 766 + 767 + break; 768 + } 757 769 case XRT_FORMAT_R8G8B8: 758 770 case XRT_FORMAT_L8: 759 771 case XRT_FORMAT_YUYV422: