ImageDecoder itself can check the matrix coefficients and range flag instead. In the future, ImageDecoder should probably convert its images into RGB color space using the same solution as for video.