libavformat/img2.c File Reference

#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/parseutils.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  VideoData
struct  IdStrMap

Defines

#define OFFSET(x)   offsetof(VideoData, x)
#define DEC   AV_OPT_FLAG_DECODING_PARAM
#define ENC   AV_OPT_FLAG_ENCODING_PARAM

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 read_probe (AVProbeData *p)
enum CodecID ff_guess_image2_codec (const char *filename)
enum CodecID av_guess_image2_codec (const char *filename)
static int read_header (AVFormatContext *s1, AVFormatParameters *ap)
static int read_packet (AVFormatContext *s1, AVPacket *pkt)

Variables

static const IdStrMap img_tags []
static const int sizes [][2]
static const AVOption options []
static const AVOption muxoptions []


Define Documentation

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 467 of file img2.c.

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 468 of file img2.c.

#define OFFSET (  )     offsetof(VideoData, x)

Definition at line 466 of file img2.c.


Function Documentation

enum CodecID av_guess_image2_codec ( const char *  filename  ) 

Definition at line 207 of file img2.c.

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

Definition at line 121 of file img2.c.

Referenced by av_guess_image2_codec(), ff_guess_image2_codec(), read_header(), and read_probe().

enum CodecID ff_guess_image2_codec ( const char *  filename  ) 

Definition at line 201 of file img2.c.

Referenced by av_guess_codec(), and av_guess_format().

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

Definition at line 137 of file img2.c.

Referenced by read_header().

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

Definition at line 108 of file img2.c.

Referenced by read_packet().

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

Definition at line 212 of file img2.c.

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

Definition at line 296 of file img2.c.

static int read_probe ( AVProbeData p  )  [static]

Definition at line 190 of file img2.c.


Variable Documentation

const IdStrMap img_tags[] [static]

Definition at line 54 of file img2.c.

const AVOption muxoptions[] [static]

Initial value:

 {
    { "updatefirst",  "", OFFSET(updatefirst),  AV_OPT_TYPE_INT,    {.dbl = 0},    0, 1, ENC },
    { NULL },
}

Definition at line 477 of file img2.c.

const AVOption options[] [static]

Initial value:

 {
    { "pixel_format", "", OFFSET(pixel_format), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
    { "video_size",   "", OFFSET(video_size),   AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
    { "framerate",    "", OFFSET(framerate),    AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0, DEC },
    { "loop",         "", OFFSET(loop),         AV_OPT_TYPE_INT,    {.dbl = 0},    0, 1, DEC },
    { NULL },
}

Definition at line 469 of file img2.c.

const 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 96 of file img2.c.

Referenced by aac_encode_init(), infer_size(), ra144_decode_frame(), ra144_encode_frame(), setup_partitions(), svq1_decode_init(), and x8_vlc_init().


Generated on Fri Oct 26 02:43:52 2012 for FFmpeg by  doxygen 1.5.8