#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "lzw.h"
#include "gif.h"
 
Go to the source code of this file.
 | 
| static void  | gif_read_palette (GifState *s, uint32_t *pal, int nb) | 
|   | 
| static void  | gif_fill (AVFrame *picture, uint32_t color) | 
|   | 
| static void  | gif_fill_rect (AVFrame *picture, uint32_t color, int l, int t, int w, int h) | 
|   | 
| static void  | gif_copy_img_rect (const uint8_t *src, uint8_t *dst, ptrdiff_t src_linesize, ptrdiff_t dst_linesize, int l, int t, int w, int h) | 
|   | 
| static int  | gif_read_image (GifState *s, AVFrame *frame) | 
|   | 
| static int  | gif_read_extension (GifState *s) | 
|   | 
| static int  | gif_read_header1 (GifState *s) | 
|   | 
| static int  | gif_parse_next_image (GifState *s, AVFrame *frame) | 
|   | 
| static av_cold int  | gif_decode_init (AVCodecContext *avctx) | 
|   | 
| static int  | gif_decode_frame (AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt) | 
|   | 
| static av_cold int  | gif_decode_close (AVCodecContext *avctx) | 
|   | 
◆ GIF_TRANSPARENT_COLOR
      
        
          | #define GIF_TRANSPARENT_COLOR   0x00ffffff | 
        
      
 
 
◆ gif_read_palette()
  
  
      
        
          | static void gif_read_palette  | 
          ( | 
          GifState *  | 
          s,  | 
         
        
           | 
           | 
          uint32_t *  | 
          pal,  | 
         
        
           | 
           | 
          int  | 
          nb  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ gif_fill()
  
  
      
        
          | static void gif_fill  | 
          ( | 
          AVFrame *  | 
          picture,  | 
         
        
           | 
           | 
          uint32_t  | 
          color  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ gif_fill_rect()
  
  
      
        
          | static void gif_fill_rect  | 
          ( | 
          AVFrame *  | 
          picture,  | 
         
        
           | 
           | 
          uint32_t  | 
          color,  | 
         
        
           | 
           | 
          int  | 
          l,  | 
         
        
           | 
           | 
          int  | 
          t,  | 
         
        
           | 
           | 
          int  | 
          w,  | 
         
        
           | 
           | 
          int  | 
          h  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ gif_copy_img_rect()
  
  
      
        
          | static void gif_copy_img_rect  | 
          ( | 
          const uint8_t *  | 
          src,  | 
         
        
           | 
           | 
          uint8_t *  | 
          dst,  | 
         
        
           | 
           | 
          ptrdiff_t  | 
          src_linesize,  | 
         
        
           | 
           | 
          ptrdiff_t  | 
          dst_linesize,  | 
         
        
           | 
           | 
          int  | 
          l,  | 
         
        
           | 
           | 
          int  | 
          t,  | 
         
        
           | 
           | 
          int  | 
          w,  | 
         
        
           | 
           | 
          int  | 
          h  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ gif_read_image()
◆ gif_read_extension()
  
  
      
        
          | static int gif_read_extension  | 
          ( | 
          GifState *  | 
          s | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ gif_read_header1()
  
  
      
        
          | static int gif_read_header1  | 
          ( | 
          GifState *  | 
          s | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ gif_parse_next_image()
◆ gif_decode_init()
◆ gif_decode_frame()
◆ gif_decode_close()
◆ options
Initial value:= {
    { "trans_color", "color value (ARGB) that is used instead of transparent color",
}
 
Definition at line 536 of file gifdec.c.
 
 
◆ decoder_class
Initial value:= {
    .class_name = "gif decoder",
}
 
Definition at line 544 of file gifdec.c.
 
 
◆ ff_gif_decoder
Initial value:
Definition at line 552 of file gifdec.c.