[FFmpeg-trac] #707(avcodec:open): iff: support transparency

FFmpeg trac at avcodec.org
Wed Dec 7 20:06:39 CET 2011


#707: iff: support transparency
-------------------------------------+-----------------------------------
             Reporter:  ami_stuff    |                    Owner:
                 Type:  enhancement  |                   Status:  open
             Priority:  wish         |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  iff alpha    |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by ami_stuff):

 {{{{
 if (s->masking & !MASK_HAS_TRANSPARENT_COLOR != MASK_NONE) {
 av_log(avctx, AV_LOG_ERROR, "Masking not supported\n");
 return AVERROR_PATCHWELCOME;
 }
 }}}

 This check seems to fail (allow decoding) file from ticket #705, so maybe
 something like this:

 {{{
 if (s->masking && s->masking != MASK_HAS_TRANSPARENT_COLOR) {
 av_log(avctx, AV_LOG_ERROR, "Masking not supported\n");
 return AVERROR_PATCHWELCOME;
 }}}

 Also I have created HAM8 file with transparency (and this seems to set
 automaticly masking as well), but maybe it would be ok to apply this patch
 and experiment with HAM8 sample when masking will be supported?

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


More information about the FFmpeg-trac mailing list