[FFmpeg-trac] #705(avcodec:open): iff: support masking

FFmpeg trac at avcodec.org
Mon Dec 5 11:48:57 CET 2011


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

Comment (by ami_stuff):

 Actually the attached file is in HAM6 mode. I will try to find <= 8bpp,
 but I'm not sure how successful I will be.

 Please look as well on this code (loadimage.c):

 http://aminet.net/package/gfx/show/LoadImage

 {{
                 /* Very well, nobody told me that DPaint and Aegis Images
                  * are allowed to save their own home-brewn BODY chunks
                  * if the transparent colour is nonzero or the
                  * stencil/behind function is used. In this case the
                  * interleaved plane data is immediately followed by
                  * a bitmask which is to clear out all unwanted pixels
                  * after the image is drawn. To support this attitude
                  * we increment the depth of the image to give the
                  * reader access to a blank pointer the bitmask will
                  * be sent to.
                  */

         if(BMHeader -> masking == 1)
                 Depth++;
 }}

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


More information about the FFmpeg-trac mailing list