Ticket #830 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

tiff: 1bpp with palette

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: tif
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

support 1bpp with palette

C:\>ffmpeg -i 1bpp_with_palette.tif
ffmpeg version N-36088-gdd1fb65, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 22 2011 12:39:23 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 32.100 / 51. 32.100
  libavcodec     53. 47.100 / 53. 47.100
  libavformat    53. 28.100 / 53. 28.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 53.  0 /  2. 53.  0
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  0.100
  libpostproc    51.  2.100 / 51.  2.100
Input #0, image2, from '1bpp_with_palette.tif':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: tiff, monob, 1024x768, 25 tbr, 25 tbn, 25 tbc
At least one output file must be specified

Attachments

1bpp_with_palette.tif Download (10.0 KB) - added by ami_stuff 17 months ago.
deflate.tif Download (14.1 KB) - added by cehoyos 17 months ago.
lzw.tif Download (15.7 KB) - added by cehoyos 17 months ago.
none.tif Download (769.9 KB) - added by cehoyos 17 months ago.
packbits.tif Download (27.9 KB) - added by cehoyos 17 months ago.
patchtif1bpp.diff Download (1.3 KB) - added by cehoyos 17 months ago.
1bpp.rar Download (61.9 KB) - added by ami_stuff 17 months ago.

Change History

Changed 17 months ago by ami_stuff

Changed 17 months ago by cehoyos

Changed 17 months ago by cehoyos

Changed 17 months ago by cehoyos

Changed 17 months ago by cehoyos

Changed 17 months ago by cehoyos

comment:1 Changed 17 months ago by cehoyos

  • Keywords tif added
  • Status changed from new to open
  • Version changed from unspecified to git-master
  • Component changed from undetermined to avcodec
  • Reproduced by developer set

I attached four similar samples that are fixed with attached patch.

The original sample is G3-compressed, I believe all palletized tiff samples with less than eight bit per pixel and G3 compression do not decode correctly.
Can you provide such samples? (Same compression as 1bpp_with_palette.tif, but with 2bpp and 4bpp.)

comment:2 Changed 17 months ago by ami_stuff

I attache palettized 1bpp samples with different compression algos selected.

Can you provide such samples? (Same compression as 1bpp_with_palette.tif, but with 2bpp and 4bpp.)

AFAICT HuffRLE, G3Fax and G4Fax can be only 1bpp.

Changed 17 months ago by ami_stuff

comment:3 Changed 17 months ago by cehoyos

comment:4 Changed 17 months ago by cehoyos

  • Status changed from open to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.