[FFmpeg-trac] #3963(swscale:new): Should sws_getCachedContext have parameters for srcRange and dstRange? Does handle_jpeg return the correct range values?

FFmpeg trac at avcodec.org
Fri Sep 19 23:57:20 CEST 2014


#3963: Should sws_getCachedContext have parameters for srcRange and dstRange?
Does handle_jpeg return the correct range values?
---------------------------------+---------------------------------------
             Reporter:  mantler  |                     Type:  enhancement
               Status:  new      |                 Priority:  normal
            Component:  swscale  |                  Version:  unspecified
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 sws_getCachedContext calls sws_init_context, which calls handle_jpeg and
 prints out the warning "deprecated pixel format used, make sure you did
 set range correctly" if either the srcFormat or dstFormat are one of the
 YUVJ pixel formats.  However, '''not''' using a YUVJ format means that the
 appropriate change to the range doesn't happen if we use the corresponding
 YUV format but want the range for YUVJ.  Adding srcRange and dstRange as
 parameters to sws_getCachedContext would allow us to avoid the deprecation
 warning message.

 On a related note, in handle_jpeg, are the returned range values for the
 YUVJ formats correct?  Currently it's returning 1 (which is
 AVCOL_RANGE_MPEG), I'm wondering if it should be AVCOL_RANGE_JPEG?

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3963>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list