Opened 8 years ago

Closed 8 years ago

#5462 closed defect (fixed)

dds: support 4bpp mode

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

Description

this probably could be rescaled to pal8

C:\>ffmpeg -i palette_rgb_4bpp.dds
ffmpeg version N-79546-g13406b6 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.5.0 (GCC) 20100414 (Fedora MinGW 4.5.0-1.fc14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --
enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -lw
inmm -lpthread' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapsh
ots/build/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/sna
pshots/build/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --
enable-nonfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-li
bvorbis --enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-li
bopencore-amrwb --enable-libmp3lame --enable-libfreetype --enable-libvpx --disab
le-decoder=libvpx
  libavutil      55. 22.100 / 55. 22.100
  libavcodec     57. 35.100 / 57. 35.100
  libavformat    57. 34.102 / 57. 34.102
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[dds @ 0x289d880] Unknown pixel format [bpp 4 r 0x0 g 0x0 b 0x0 a 0x0].
[dds_pipe @ 0x2894020] decoding for stream 0 failed
[dds_pipe @ 0x2894020] Could not find codec parameters for stream 0 (Video: dds,
 none, 122x122): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, dds_pipe, from 'palette_rgb_4bpp.dds':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: dds, none, 122x122, 25 tbr, 25 tbn
At least one output file must be specified

Attachments (1)

palette_rgb_4bpp.dds (7.5 KB ) - added by ami_stuff 8 years ago.

Download all attachments as: .zip

Change History (4)

by ami_stuff, 8 years ago

Attachment: palette_rgb_4bpp.dds added

comment:1 by Carl Eugen Hoyos, 8 years ago

Component: undeterminedavcodec
Keywords: dds added
Version: unspecifiedgit-master

I wonder if this file - that indicates no red, no green, no blue and no alpha channel - is valid.

comment:2 by ami_stuff, 8 years ago

It decodes correctly here (PS + NVIDIA plugin)

http://tech-artists.org/wiki/DirectDraw_Surface

comment:3 by Elon Musk, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.