libavformat/img2.c File Reference

#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
#include "avformat.h"
#include <strings.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 read_probe (AVProbeData *p)
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)
static int write_header (AVFormatContext *s)
static int write_packet (AVFormatContext *s, AVPacket *pkt)

Variables

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


Function Documentation

enum CodecID av_guess_image2_codec ( const char *  filename  ) 

Definition at line 185 of file img2.c.

Referenced by av_guess_codec(), and av_guess_format().

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

Definition at line 105 of file img2.c.

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

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

Definition at line 121 of file img2.c.

Referenced by read_header().

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

Definition at line 92 of file img2.c.

Referenced by read_packet().

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

Definition at line 189 of file img2.c.

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

Definition at line 252 of file img2.c.

static int read_probe ( AVProbeData p  )  [static]

Definition at line 174 of file img2.c.

static int write_header ( AVFormatContext s  )  [static]

Definition at line 323 of file img2.c.

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

Definition at line 339 of file img2.c.


Variable Documentation

Initial value:

 {
    .name           = "image2",
    .long_name      = NULL_IF_CONFIG_SMALL("image2 sequence"),
    .priv_data_size = sizeof(VideoData),
    .read_probe     = read_probe,
    .read_header    = read_header,
    .read_packet    = read_packet,
    .flags          = AVFMT_NOFILE,
}

Definition at line 415 of file img2.c.

Initial value:

 {
    .name           = "image2",
    .long_name      = NULL_IF_CONFIG_SMALL("image2 sequence"),
    .extensions     = "bmp,jpeg,jpg,ljpg,pam,pbm,pcx,pgm,pgmyuv,png,"
                      "ppm,sgi,tga,tif,tiff,jp2",
    .priv_data_size = sizeof(VideoData),
    .video_codec    = CODEC_ID_MJPEG,
    .write_header   = write_header,
    .write_packet   = write_packet,
    .flags          = AVFMT_NOTIMESTAMPS | AVFMT_NODIMENSIONS | AVFMT_NOFILE
}

Definition at line 437 of file img2.c.

Initial value:

 {
    .name           = "image2pipe",
    .long_name      = NULL_IF_CONFIG_SMALL("piped image2 sequence"),
    .priv_data_size = sizeof(VideoData),
    .read_header    = read_header,
    .read_packet    = read_packet,
}

Definition at line 426 of file img2.c.

Initial value:

 {
    .name           = "image2pipe",
    .long_name      = NULL_IF_CONFIG_SMALL("piped image2 sequence"),
    .priv_data_size = sizeof(VideoData),
    .video_codec    = CODEC_ID_MJPEG,
    .write_header   = write_header,
    .write_packet   = write_packet,
    .flags          = AVFMT_NOTIMESTAMPS | AVFMT_NODIMENSIONS
}

Definition at line 450 of file img2.c.

const IdStrMap img_tags[] [static]

Definition at line 42 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 80 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 Wed Jan 19 23:49:50 2011 for FFmpeg by  doxygen 1.5.6