[FFmpeg-trac] #9575(avfilter:closed): extractplanes=y produces garbage with gray10 input
FFmpeg
trac at avcodec.org
Sat Feb 19 19:17:47 EET 2022
#9575: extractplanes=y produces garbage with gray10 input
-------------------------------------+-------------------------------------
Reporter: Diederick | Owner: (none)
Niehorster |
Type: defect | Status: closed
Priority: normal | Component: avfilter
Version: git-master | Resolution: fixed
Keywords: | Blocked By:
extractplanes |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Balling):
Yep, fixed. Just for posterity "While it's pointless to extract the luma
plane from a frame that only has a luma plane" is false. The whole point
of extractplanes is to extract the bits as they are in the source format.
That means that YCbCr (or Y only) conversion to R'G'B' does not happen.
Yes, it so happens that (limited) Y only grayscale can be presented as
(again, limited) R = G = B = Y, but that may be not the case in ICtCp or
if color managment happens. And it is not the case in full range Y and
full range R'G'B' (ffmpeg only supports full range R'G'B' anyway). Also,
the Paul's code preserves superblack and superwhite for limited range and
allows to analyse out-of-R'G'B'-gamut stuff for full range YCbCr.
Ah, also png produces that way is not tagged in any way, and you can
create many crazy stuff with this.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9575#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list