Skip to content

Commit 7537aa6

Browse files
committed
test input image help improvement
- missing .tst ext to usage - added examples
1 parent bf79e2e commit 7537aa6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/utils/image_delegate.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,13 @@ tst_image_probe_delegate(const char* filename, enum gpujpeg_image_file_format fo
248248
const int nelem = sscanf(filename, "%dx%d_%20[^_.]_%20[^_.]s", &param_image->width, &param_image->height,
249249
color_space, pixel_format);
250250
if ( nelem < 2 ) {
251-
printf("Usage:\n\t<W>x<H>[_<CS>[_<PF>]]\n");
251+
printf("Usage:\n"
252+
"\t<W>x<H>[_<CS>[_<PF>]].tst\n");
253+
printf("\nExamples:\n"
254+
"\t- 1920x1080.tst\n"
255+
"\t- 1920x1080_rgb.tst\n"
256+
"\t- 1920x1080_ycbcr-jpeg.tst\n"
257+
"\t- 1920x1080_ycbcr-jpeg_422-u8-p1020.tst\n");
252258
return -1;
253259
}
254260
if ( nelem >= 3 ) {

0 commit comments

Comments
 (0)