Actions
Feature #995
closedPrint warning in dcm2img when processing JPEG files with non-standard 4:4:4 or 4:2:0 subsampling
Start date:
2021-06-16
Due date:
% Done:
100%
Estimated time:
Module:
dcmdata
Operating System:
Compiler:
Description
Mathieu Malaterre writes:
"It would be super nice if somewhere in the log message of img2dcm an info/warning was added in the log to inform the user that the input JPEG is non-standard per strict interpretation of the standard.
Typical steps to reproduce:
$ convert -size 512x512 xc:#ff0000 red.jpg
$ ffmpeg -i red.jpg -pix_fmt yuvj444p red444.jpg
$ ffmpeg -i red.jpg -pix_fmt yuvj422p red422.jpg
$ ffmpeg -i red.jpg -pix_fmt yuvj420p red420.jpg
The following three commands produces the exact same log:
$ img2dcm red444.jpg red444.dcm
$ img2dcm red422.jpg red422.dcm <-- correct one
$ img2dcm red420.jpg red420.dcm
DICOM CP 1653 seems to clarify usage of YBR_FULL_422 even for chroma sampling 4:2:0 / 4:4:4."
Actions