Opened 2 years ago

Closed 19 months ago

#4667 closed defect (fixed)

dds: 8.8 AL 16bpp - white screen

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

Description

C:\>ffmpeg -i 8_8_AL_16bpp.dds out.bmp
ffmpeg version N-73117-gb23d2ba Copyright (c) 2000-2015 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      54. 27.100 / 54. 27.100
  libavcodec     56. 44.100 / 56. 44.100
  libavformat    56. 38.100 / 56. 38.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 17.100 /  5. 17.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, image2, from '8_8_AL_16bpp.dds':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 419455 kb/s
    Stream #0:0: Video: dds, ya8, 1024x768, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf56.38.100
    Stream #0:0: Video: bmp, bgra, 1024x768, q=2-31, 200 kb/s, 25 fps, 25 tbn, 2
5 tbc
    Metadata:
      encoder         : Lavc56.44.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (dds (native) -> bmp (native))
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:3072kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: unknown

Attachments (1)

8_8_AL_16bpp.dds (2.0 MB) - added by ami_stuff 2 years ago.

Change History (16)

Changed 2 years ago by ami_stuff

comment:1 Changed 2 years ago by ami_stuff

here are some unsupported modes:

http://www.datafilehost.com/d/8eabea00

comment:2 Changed 2 years ago by ami_stuff

new->open?

comment:3 Changed 2 years ago by michael

the AL 16bpp sample can be decoded corerctly when

else if (avctx->pix_fmt == AV_PIX_FMT_YA8)
ctx->postproc = DDS_SWAP_ALPHA; 

is comented out but that breaks fate_ya.dds
how can these be distiguished or is one of them faulty?

Last edited 2 years ago by michael (previous) (diff)

comment:4 Changed 2 years ago by michael

  • Reproduced by developer set
  • Status changed from new to open

comment:5 Changed 2 years ago by michael

  • Cc michael added

comment:6 Changed 2 years ago by cehoyos

  • Keywords dds added
  • Version changed from unspecified to git-master

comment:7 Changed 2 years ago by cehoyos

  • Component changed from undetermined to avcodec

comment:8 Changed 19 months ago by richardpl

  • Resolution set to needs_more_info
  • Status changed from open to closed

Looks like this is supported. Please reopen if its is not.
The image is almost fully transparent.

comment:9 Changed 19 months ago by cehoyos

  • Resolution needs_more_info deleted
  • Status changed from closed to reopened

The layers are mixed up afaict.

comment:10 Changed 19 months ago by cehoyos

How did you create the file 8_8_AL_16bpp.dds? Is there an application that shows the first base?
(Is it possible that the image is broken and FFmpeg correct?)

comment:11 Changed 19 months ago by ami_stuff

The file was created with Photoshop + NVIDIA DDS plugin and decodes correctly in Photoshop + NVidia DDS plugin.

comment:12 Changed 19 months ago by richardpl

And our ya sample from fate?

comment:13 Changed 19 months ago by ami_stuff

Could you post direct link to this sample?

comment:14 Changed 19 months ago by cehoyos

  • Status changed from reopened to open

Patch sent.

comment:15 Changed 19 months ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Original sample fixed in 139cbeb75e0f5e3176b2b09660d2570b1bcc2408

Note: See TracTickets for help on using tickets.