libavformat/rawdec.c File Reference

#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
#include "rawdec.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"

Go to the source code of this file.

Defines

#define RAW_PACKET_SIZE   1024
#define OFFSET(x)   offsetof(FFRawVideoDemuxerContext, x)
#define DEC   AV_OPT_FLAG_DECODING_PARAM

Functions

int ff_raw_read_header (AVFormatContext *s, AVFormatParameters *ap)
int ff_raw_read_partial_packet (AVFormatContext *s, AVPacket *pkt)
int ff_raw_audio_read_header (AVFormatContext *s, AVFormatParameters *ap)
int ff_raw_video_read_header (AVFormatContext *s, AVFormatParameters *ap)

Variables

const AVOption ff_rawvideo_options []
AVInputFormat ff_g722_demuxer
AVInputFormat ff_latm_demuxer
AVInputFormat ff_mlp_demuxer
AVInputFormat ff_truehd_demuxer
AVInputFormat ff_shorten_demuxer

Define Documentation

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 179 of file rawdec.c.

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

Definition at line 178 of file rawdec.c.

#define RAW_PACKET_SIZE   1024

Definition at line 107 of file rawdec.c.


Function Documentation

int ff_raw_audio_read_header ( AVFormatContext s,
AVFormatParameters ap 
)

Definition at line 129 of file rawdec.c.

int ff_raw_read_header ( AVFormatContext s,
AVFormatParameters ap 
)

Definition at line 32 of file rawdec.c.

int ff_raw_read_partial_packet ( AVFormatContext s,
AVPacket pkt 
)

Definition at line 109 of file rawdec.c.

int ff_raw_video_read_header ( AVFormatContext s,
AVFormatParameters ap 
)

Definition at line 145 of file rawdec.c.


Variable Documentation

Initial value:
 {
    .name           = "g722",
    .long_name      = NULL_IF_CONFIG_SMALL("raw G.722"),
    .read_header    = ff_raw_read_header,
    .read_packet    = ff_raw_read_partial_packet,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "g722,722",
    .value = CODEC_ID_ADPCM_G722,
}

Definition at line 186 of file rawdec.c.

Initial value:
 {
    .name           = "latm",
    .long_name      = NULL_IF_CONFIG_SMALL("raw LOAS/LATM"),
    .read_header    = ff_raw_audio_read_header,
    .read_packet    = ff_raw_read_partial_packet,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "latm",
    .value = CODEC_ID_AAC_LATM,
}

Definition at line 198 of file rawdec.c.

Initial value:
 {
    .name           = "mlp",
    .long_name      = NULL_IF_CONFIG_SMALL("raw MLP"),
    .read_header    = ff_raw_audio_read_header,
    .read_packet    = ff_raw_read_partial_packet,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "mlp",
    .value = CODEC_ID_MLP,
}

Definition at line 214 of file rawdec.c.

Initial value:
 {
    { "framerate", "", OFFSET(framerate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0, DEC},
    { NULL },
}

Definition at line 180 of file rawdec.c.

Initial value:
 {
    .name           = "shn",
    .long_name      = NULL_IF_CONFIG_SMALL("raw Shorten"),
    .read_header    = ff_raw_audio_read_header,
    .read_packet    = ff_raw_read_partial_packet,
    .flags          = AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH | AVFMT_NO_BYTE_SEEK,
    .extensions = "shn",
    .value = CODEC_ID_SHORTEN,
}

Definition at line 238 of file rawdec.c.

Initial value:
 {
    .name           = "truehd",
    .long_name      = NULL_IF_CONFIG_SMALL("raw TrueHD"),
    .read_header    = ff_raw_audio_read_header,
    .read_packet    = ff_raw_read_partial_packet,
    .flags= AVFMT_GENERIC_INDEX,
    .extensions = "thd",
    .value = CODEC_ID_TRUEHD,
}

Definition at line 226 of file rawdec.c.