libextractor  1.11
About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.
  Fossies Dox: libextractor-1.11.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gif_extractor.c File Reference

plugin to support GIF files More...

#include "platform.h"
#include "extractor.h"
#include <gif_lib.h>
Include dependency graph for gif_extractor.c:

Go to the source code of this file.

Functions

static int gif_READ_func (GifFileType *ft, GifByteType *bt, int arg)
 
void EXTRACTOR_gif_extract_method (struct EXTRACTOR_ExtractContext *ec)
 

Detailed Description

plugin to support GIF files

Author
Christian Grothoff

Definition in file gif_extractor.c.

Function Documentation

◆ EXTRACTOR_gif_extract_method()

void EXTRACTOR_gif_extract_method ( struct EXTRACTOR_ExtractContext ec)

Main entry method for the 'image/gif' extraction plugin.

Parameters
ecextraction context provided to the plugin

Definition at line 63 of file gif_extractor.c.

References EXTRACTOR_ExtractContext::cls, EXTRACTOR_METAFORMAT_C_STRING, EXTRACTOR_METAFORMAT_UTF8, EXTRACTOR_METATYPE_COMMENT, EXTRACTOR_METATYPE_IMAGE_DIMENSIONS, EXTRACTOR_METATYPE_MIMETYPE, gif_READ_func(), NULL, and EXTRACTOR_ExtractContext::proc.

◆ gif_READ_func()

static int gif_READ_func ( GifFileType *  ft,
GifByteType *  bt,
int  arg 
)
static

Callback invoked by libgif to read data.

Parameters
ftthe file handle, including our extract context
btwhere to write the data
argnumber of bytes to read
Returns
-1 on error, otherwise number of bytes read

Definition at line 39 of file gif_extractor.c.

References EXTRACTOR_ExtractContext::cls, and EXTRACTOR_ExtractContext::read.

Referenced by EXTRACTOR_gif_extract_method().