[FFmpeg-trac] #1191(undetermined:closed): qt tiff enc: make output compatible with quitcktime

FFmpeg trac at avcodec.org
Wed Apr 18 23:31:18 CEST 2012


#1191: qt tiff enc: make output compatible with quitcktime
-------------------------------------+-------------------------------------
             Reporter:  ami_stuff    |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  mov tif      |               Resolution:  fixed
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ami_stuff):

 targa:

 qt decodes correctly all modes of targa except rgb555le, but when I add

 {{{
     case PIX_FMT_RGB555LE:
 +        avctx->bits_per_coded_sample = 16;
         pkt->data[2]  = TGA_RGB;    /* uncompresses true-color image */
         pkt->data[16] = 16;         /* bpp */
         break;
 }}}

 then I get correct output.

 The problem is that avctx->bits_per_coded_sample is set to 15 for rgb555le
 mode:

 {{{
     avctx->bits_per_coded_sample =
 av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);
 +    av_log(avctx, AV_LOG_INFO, "bits_per_coded_sample: %d\n",
 avctx->bits_per_coded_sample);
     switch(avctx->pix_fmt) {
 }}}

 png:

 qt decodec correctly monob/rgb24/rgba/gray/pal8 (wrong colors)

 gray16/rgb48/rgba64 doesn't work (black screen)

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1191#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list