libavformat/img2dec.c File Reference

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

Go to the source code of this file.

Data Structures

struct  VideoDemuxData

Defines

#define OFFSET(x)   offsetof(VideoDemuxData, x)
#define DEC   AV_OPT_FLAG_DECODING_PARAM

Functions

static int infer_size (int *width_ptr, int *height_ptr, int size)
static int is_glob (const char *path)
static int find_image_range (int *pfirst_index, int *plast_index, const char *path, int start_index, int start_index_range)
 Get index range of image files matched by path.
static int read_probe (AVProbeData *p)
static int read_header (AVFormatContext *s1)
static int read_packet (AVFormatContext *s1, AVPacket *pkt)
static int read_close (struct AVFormatContext *s1)

Variables

static const int sizes [][2]
static const AVOption options []


Define Documentation

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 413 of file img2dec.c.

#define OFFSET (  )     offsetof(VideoDemuxData, x)

Definition at line 412 of file img2dec.c.


Function Documentation

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

Get index range of image files matched by path.

Parameters:
pfirst_index pointer to index updated with the first number in the range
plast_index pointer to index updated with the last number in the range
path path which has to be matched by the image files in the range
start_index minimum accepted value for the first index in the range
Returns:
-1 if no image file could be found

Definition at line 122 of file img2dec.c.

Referenced by read_header().

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

Definition at line 78 of file img2dec.c.

Referenced by read_packet().

static int is_glob ( const char *  path  )  [static]

Definition at line 92 of file img2dec.c.

Referenced by read_header(), and read_probe().

static int read_close ( struct AVFormatContext s1  )  [static]

Definition at line 401 of file img2dec.c.

static int read_header ( AVFormatContext s1  )  [static]

Definition at line 188 of file img2dec.c.

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

Definition at line 326 of file img2dec.c.

static int read_probe ( AVProbeData p  )  [static]

Definition at line 175 of file img2dec.c.


Variable Documentation

const AVOption options[] [static]

Initial value:

 {
    { "framerate",    "set the video framerate",             OFFSET(framerate),    AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0, DEC },
    { "loop",         "force loop over input file sequence", OFFSET(loop),         AV_OPT_TYPE_INT,    {.i64 = 0},    0, 1, DEC },

    { "pattern_type", "set pattern type",                    OFFSET(pattern_type), AV_OPT_TYPE_INT, {.i64=PT_GLOB_SEQUENCE}, 0, INT_MAX, DEC, "pattern_type"},
    { "glob_sequence","glob/sequence pattern type",          0, AV_OPT_TYPE_CONST, {.i64=PT_GLOB_SEQUENCE}, INT_MIN, INT_MAX, DEC, "pattern_type" },
    { "glob",         "glob pattern type",                   0, AV_OPT_TYPE_CONST, {.i64=PT_GLOB},          INT_MIN, INT_MAX, DEC, "pattern_type" },
    { "sequence",     "glob pattern type",                   0, AV_OPT_TYPE_CONST, {.i64=PT_SEQUENCE},      INT_MIN, INT_MAX, DEC, "pattern_type" },

    { "pixel_format", "set video pixel format",              OFFSET(pixel_format), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
    { "start_number", "set first number in the sequence",    OFFSET(start_number), AV_OPT_TYPE_INT,    {.i64 = 0},    0, INT_MAX, DEC },
    { "start_number_range", "set range for looking at the first sequence number", OFFSET(start_number_range), AV_OPT_TYPE_INT, {.i64 = 5}, 1, INT_MAX, DEC },
    { "video_size",   "set video size",                      OFFSET(video_size),   AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
    { NULL },
}

Definition at line 414 of file img2dec.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 66 of file img2dec.c.

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


Generated on Fri Oct 26 02:50:10 2012 for FFmpeg by  doxygen 1.5.8