libavformat/img2.c File Reference

#include "avformat.h"
#include "avstring.h"

Go to the source code of this file.

Data Structures

struct  VideoData
struct  IdStrMap

Functions

static int infer_size (int *width_ptr, int *height_ptr, int size)
static enum CodecID av_str2id (const IdStrMap *tags, const char *str)
static int find_image_range (int *pfirst_index, int *plast_index, const char *path)
static int image_probe (AVProbeData *p)
enum CodecID av_guess_image2_codec (const char *filename)
static int img_read_header (AVFormatContext *s1, AVFormatParameters *ap)
static int img_read_packet (AVFormatContext *s1, AVPacket *pkt)
static int img_read_close (AVFormatContext *s1)

Variables

static const IdStrMap img_tags []
static int sizes [][2]


Function Documentation

enum CodecID av_guess_image2_codec ( const char *  filename  ) 

Definition at line 177 of file img2.c.

Referenced by av_guess_codec(), and guess_format().

static enum CodecID av_str2id ( const IdStrMap tags,
const char *  str 
) [static]

Definition at line 96 of file img2.c.

Referenced by av_guess_image2_codec(), image_probe(), and img_read_header().

static int find_image_range ( int *  pfirst_index,
int *  plast_index,
const char *  path 
) [static]

Definition at line 115 of file img2.c.

Referenced by img_read_header().

static int image_probe ( AVProbeData p  )  [static]

Definition at line 166 of file img2.c.

static int img_read_close ( AVFormatContext s1  )  [static]

Definition at line 305 of file img2.c.

static int img_read_header ( AVFormatContext s1,
AVFormatParameters ap 
) [static]

Definition at line 181 of file img2.c.

static int img_read_packet ( AVFormatContext s1,
AVPacket pkt 
) [static]

Definition at line 244 of file img2.c.

static int infer_size ( int *  width_ptr,
int *  height_ptr,
int  size 
) [static]

Definition at line 83 of file img2.c.

Referenced by img_read_packet().


Variable Documentation

const IdStrMap img_tags[] [static]

Definition at line 39 of file img2.c.

int sizes[][2] [static]

Initial value:

 {
    { 640, 480 },
    { 720, 480 },
    { 720, 576 },
    { 352, 288 },
    { 352, 240 },
    { 160, 128 },
    { 512, 384 },
    { 640, 352 },
    { 640, 240 },
}

Definition at line 71 of file img2.c.

Referenced by infer_size().


Generated on Thu Apr 2 07:16:14 2009 for ffmpeg by  doxygen 1.5.6