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
 

Macros

#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 find_image_range (int *pfirst_index, int *plast_index, const char *path, int max_start)
 
static int img_read_probe (AVProbeData *p)
 
static int img_read_header (AVFormatContext *s1)
 
static int img_read_packet (AVFormatContext *s1, AVPacket *pkt)
 

Variables

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

Macro Definition Documentation

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 291 of file img2dec.c.

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

Definition at line 290 of file img2dec.c.

Function Documentation

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

Definition at line 74 of file img2dec.c.

Referenced by img_read_header().

static int img_read_header ( AVFormatContext s1)
static

Definition at line 138 of file img2dec.c.

static int img_read_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 220 of file img2dec.c.

static int img_read_probe ( AVProbeData p)
static

Definition at line 127 of file img2dec.c.

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

Definition at line 58 of file img2dec.c.

Referenced by img_read_packet().

Variable Documentation

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, { .i64 = 0 }, 0, 1, DEC },
{ "start_number", "first number in the sequence", OFFSET(start_number), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, INT_MAX, DEC },
{ NULL },
}

Definition at line 292 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 46 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().