Project

General

Profile

Actions

Feature #995

closed

Print warning in dcm2img when processing JPEG files with non-standard 4:4:4 or 4:2:0 subsampling

Added by Marco Eichelberg about 4 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Library and Apps
Target version:
-
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 #1

Updated by Marco Eichelberg 7 months ago

  • Status changed from New to Closed
  • Assignee set to Marco Eichelberg
  • % Done changed from 0 to 100

Closed by commit #cee4ba81a.

Actions

Also available in: Atom PDF