Skip to content

Commit 4d493d3

Browse files
committed
utils: tests: Add colorimetry to the gst pipeline
This is needed to correctly use the JPEG conversion matrix. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent c585ab0 commit 4d493d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/test_convert.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _pisp_to_gst_format(self, pisp_format):
8080
'YUV444P': 'Y444',
8181
'YUYV': 'YUY2',
8282
'UYVY': 'UYVY',
83-
'RGB888': 'RGB',
83+
'RGB888': 'BGR',
8484
}
8585
return format_map.get(pisp_format, pisp_format)
8686

@@ -111,8 +111,9 @@ def run_gstreamer(self, input_file, output_file, input_format, output_format):
111111
f'height={in_fmt["height"]}',
112112
f'format={gst_in_format.lower()}',
113113
'framerate=30/1', '!',
114+
'video/x-raw,colorimetry=1:4:0:0', '!',
114115
'pispconvert', '!',
115-
f'video/x-raw,format={gst_out_format},width={out_fmt["width"]},height={out_fmt["height"]}', '!',
116+
f'video/x-raw,format={gst_out_format},width={out_fmt["width"]},height={out_fmt["height"]},colorimetry=1:4:0:0', '!',
116117
'filesink', f'location={output_file}'
117118
]
118119

0 commit comments

Comments
 (0)