The open source OpenXR runtime
0
fork

Configure Feed

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

a/gst: Complain if the image size is not divisible by two

+14
+14
src/xrt/auxiliary/gstreamer/gst_sink.c
··· 53 53 } 54 54 55 55 static void 56 + complain_if_wrong_image_size(struct xrt_frame *xf) 57 + { 58 + if (xf->width % 2 == 1) { 59 + U_LOG_W("Image width needs to be divisible by 2!"); 60 + } 61 + if (xf->height % 2 == 1) { 62 + U_LOG_W("Image height needs to be divisible by 2!"); 63 + } 64 + } 65 + 66 + static void 56 67 push_frame(struct xrt_frame_sink *xfs, struct xrt_frame *xf) 57 68 { 58 69 SINK_TRACE_MARKER(); 59 70 struct gstreamer_sink *gs = (struct gstreamer_sink *)xfs; 71 + 72 + complain_if_wrong_image_size(xf); 73 + 60 74 GstBuffer *buffer; 61 75 GstFlowReturn ret; 62 76