[FFmpeg-trac] #2966(avcodec:open): ljpeg: support 36bpp rgb

FFmpeg trac at avcodec.org
Thu Aug 14 19:31:50 CEST 2014

#2966: ljpeg: support 36bpp rgb
             Reporter:  ami_stuff    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  ljpeg mjpeg  |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |

Comment (by cehoyos):

 Replying to [comment:5 kurosu]:
 > Currently it decodes to 16bits per component without rescaling. It can
 then be encoded to format supporting 16 bits (thereby keeping the full
 dynamic afaik). My guess is that there are several ways to solve this:
 > - actually implement support for BGR36 (that means conversion too)

 Please don't.
 It was a fault that yuv with 8<bpc<16 was added, please don't add more.

 > - or scale output of the jpeg decoder
 > - or, seeing how the jpeg decoder already reports "bgr48le(12 bpc)",
 extend support for this mixed information in various codecs.

 Imo, output should be rgb48 (or similar) with bits_per_coded_sample set

Ticket URL: <https://trac.ffmpeg.org/ticket/2966#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list