This set is a step towards deprecation of full range formats that pollute pix_fmts. First it checks every codec which explictly sets or checks one of these formats and correctly sets or checks the correct color_range field.
Then it proceeds to add deprecation guards everywhere in the code that use J-formats. If the patch is too big I can split it but not sure how. Finally the "big" open problem is that pixel information has to be carried over frame, filter, codec and of course swscale. To reduce entanglement between libraries I'll probably have to move color space, range, matrix types from lavc to lavu. I am tempted to make a more "abstract" data type that can be fit in a frame (or side data) as well as avcodec; this however is API/ABI break so perhaps it's just simpler to add a color_range field to help encoders. I believe the color_range and the ljpeg bug (spotted by Hendrik) could be also pushed. Any comment is welcome. Vittorio Vittorio Giovara (9): dirac: set color_range fraps: set color_range mjpeg: set color_range mdec: set color_range ljpeg: fix double pixel format entry ljpeg: check color_range libx264: check color_range mpegvideoenc: check color_range lavu: add deprecation guards to full scale formats libavcodec/dirac.c | 11 +++++++++++ libavcodec/fraps.c | 6 ++++++ libavcodec/h264.c | 12 ++++++++++++ libavcodec/hevc_ps.c | 2 ++ libavcodec/imgconvert.c | 8 +++++++- libavcodec/libx264.c | 11 ++++++++++- libavcodec/ljpegenc.c | 20 ++++++++++++++------ libavcodec/mdec.c | 5 +++++ libavcodec/mjpegdec.c | 23 ++++++++++++++++++++++- libavcodec/mpegvideo_enc.c | 14 +++++++++++--- libavcodec/raw.c | 3 +++ libavcodec/svq3.c | 7 ++++++- libavcodec/utils.c | 2 ++ libavfilter/vf_boxblur.c | 2 ++ libavfilter/vf_crop.c | 2 ++ libavfilter/vf_cropdetect.c | 11 +++++++---- libavfilter/vf_drawbox.c | 6 ++++-- libavfilter/vf_fade.c | 6 ++++-- libavfilter/vf_framepack.c | 7 +++++-- libavfilter/vf_hflip.c | 2 ++ libavfilter/vf_hqdn3d.c | 2 ++ libavfilter/vf_interlace.c | 8 ++++++-- libavfilter/vf_lut.c | 7 +++++++ libavfilter/vf_pad.c | 2 ++ libavfilter/vf_transpose.c | 6 ++++-- libavfilter/vf_unsharp.c | 8 ++++++-- libavfilter/vf_yadif.c | 4 +++- libavfilter/vsrc_color.c | 2 ++ libavformat/rtpenc_jpeg.c | 12 +++++++++++- libavutil/pixdesc.c | 4 ++++ libavutil/pixfmt.h | 4 ++++ libavutil/version.h | 3 +++ libswscale/utils.c | 4 ++++ 33 files changed, 195 insertions(+), 31 deletions(-) -- 1.8.3.4 (Apple Git-47) _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
