img2.c File Reference

Go to the source code of this file.

Classes

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)
static int img_write_header (AVFormatContext *s)
static int img_write_packet (AVFormatContext *s, AVPacket *pkt)
static int img_write_trailer (AVFormatContext *s)

Variables

static const IdStrMap img_tags []
static int sizes [][2]
AVInputFormat image2_demuxer
AVInputFormat image2pipe_demuxer
AVOutputFormat image2_muxer
AVOutputFormat image2pipe_muxer


Function Documentation

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

Definition at line 75 of file img2.c.

Referenced by img_read_packet().

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

Definition at line 88 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 107 of file img2.c.

Referenced by img_read_header().

static int image_probe ( AVProbeData p  )  [static]

Definition at line 158 of file img2.c.

enum CodecID av_guess_image2_codec ( const char *  filename  ) 

Definition at line 169 of file img2.c.

Referenced by av_guess_codec(), and guess_format().

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

Definition at line 173 of file img2.c.

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

Definition at line 236 of file img2.c.

static int img_read_close ( AVFormatContext s1  )  [static]

Definition at line 297 of file img2.c.

static int img_write_header ( AVFormatContext s  )  [static]

Definition at line 306 of file img2.c.

static int img_write_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 322 of file img2.c.

static int img_write_trailer ( AVFormatContext s  )  [static]

Definition at line 367 of file img2.c.


Variable Documentation

const IdStrMap img_tags[] [static]

Initial value:

 {
    { CODEC_ID_MJPEG     , "jpeg"},
    { CODEC_ID_MJPEG     , "jpg"},
    { CODEC_ID_LJPEG     , "ljpg"},
    { CODEC_ID_PNG       , "png"},
    { CODEC_ID_PPM       , "ppm"},
    { CODEC_ID_PGM       , "pgm"},
    { CODEC_ID_PGMYUV    , "pgmyuv"},
    { CODEC_ID_PBM       , "pbm"},
    { CODEC_ID_PAM       , "pam"},
    { CODEC_ID_MPEG1VIDEO, "mpg1-img"},
    { CODEC_ID_MPEG2VIDEO, "mpg2-img"},
    { CODEC_ID_MPEG4     , "mpg4-img"},
    { CODEC_ID_FFV1      , "ffv1-img"},
    { CODEC_ID_RAWVIDEO  , "y"},
    { CODEC_ID_BMP       , "bmp"},
    { CODEC_ID_GIF       , "gif"},
    { CODEC_ID_TARGA     , "tga"},
    { CODEC_ID_TIFF      , "tiff"},
    { CODEC_ID_SGI       , "sgi"},
    { CODEC_ID_PTX       , "ptx"},
    {0, NULL}
}

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

Referenced by DisplayResX::GetVideoModes(), and infer_size().

Initial value:

 {
    "image2",
    "image2 sequence",
    sizeof(VideoData),
    image_probe,
    img_read_header,
    img_read_packet,
    img_read_close,
    NULL,
    NULL,
    AVFMT_NOFILE,
}

Definition at line 376 of file img2.c.

Initial value:

 {
    "image2pipe",
    "piped image2 sequence",
    sizeof(VideoData),
    NULL, 
    img_read_header,
    img_read_packet,
    img_read_close,
    NULL,
}

Definition at line 390 of file img2.c.

Initial value:

 {
    "image2",
    "image2 sequence",
    "",
    "",
    sizeof(VideoData),
    CODEC_ID_NONE,
    CODEC_ID_MJPEG,
    img_write_header,
    img_write_packet,
    img_write_trailer,
    AVFMT_NOFILE,
}

Definition at line 404 of file img2.c.

Initial value:

 {
    "image2pipe",
    "piped image2 sequence",
    "",
    "",
    sizeof(VideoData),
    CODEC_ID_NONE,
    CODEC_ID_MJPEG,
    img_write_header,
    img_write_packet,
    img_write_trailer,
}

Definition at line 419 of file img2.c.


Generated on Sat Dec 18 05:15:53 2010 for MythTV by  doxygen 1.5.5