Group PJMEDIA_AVI

group PJMEDIA_AVI

Representation of RIFF/AVI file format.

This the the low level representation of RIFF/AVI file format. For higher abstraction, please see WAV File Player and File Writer (Recorder).

Defines

PJMEDIA_AVI_MAX_NUM_STREAMS

Enums

enum pjmedia_avi_tag

Values:

enumerator PJMEDIA_AVI_RIFF_TAG
enumerator PJMEDIA_AVI_AVI_TAG
enumerator PJMEDIA_AVI_HDRL_TAG
enumerator PJMEDIA_AVI_AVIH_TAG
enumerator PJMEDIA_AVI_STRL_TAG
enumerator PJMEDIA_AVI_STRH_TAG
enumerator PJMEDIA_AVI_AUDS_TAG
enumerator PJMEDIA_AVI_VIDS_TAG
enumerator PJMEDIA_AVI_STRF_TAG
enumerator PJMEDIA_AVI_MOVI_TAG
enumerator PJMEDIA_AVI_LIST_TAG
enumerator PJMEDIA_AVI_JUNK_TAG

Variables

static const char avi_tags[][4] = {{'R', 'I', 'F', 'F'}, {'A', 'V', 'I', ' '}, {'h', 'd', 'r', 'l'}, {'a', 'v', 'i', 'h'}, {'s', 't', 'r', 'l'}, {'s', 't', 'r', 'h'}, {'a', 'u', 'd', 's'}, {'v', 'i', 'd', 's'}, {'s', 't', 'r', 'f'}, {'m', 'o', 'v', 'i'}, {'L', 'I', 'S', 'T'}, {'J', 'U', 'N', 'K'},}
static const pj_uint8_t strf_audio_hdr_sizes[] = {8, 4, 8, 6}

Sizes of strf_audio_hdr_t struct, started by the size (in bytes) of 32-bits struct members, alternated with the size of 16-bits members.

static const pj_uint8_t strf_video_hdr_sizes[] = {20, 4, 24}
struct riff_hdr_t
#include <avi.h>

These types describe the simpler/canonical version of an AVI file. They do not support the full AVI RIFF format specification. This structure describes RIFF AVI file header

Public Members

pj_uint32_t riff

“RIFF” ASCII tag.

pj_uint32_t file_len

File length minus 8 bytes

pj_uint32_t avi

“AVI” ASCII tag.

struct avih_hdr_t
#include <avi.h>

This structure describes avih header

Public Members

pj_uint32_t usec_per_frame

microsecs between frames

struct strl_hdr_t
#include <avi.h>

This structure describes strl header

Public Members

pj_uint32_t bogus_priority_language

Do not access this data

pj_uint32_t bogus_frame[2]

Do not access this data

struct strf_audio_hdr_t

Public Members

pj_uint16_t fmt_tag

1 for PCM

pj_uint16_t nchannels

Number of channels.

pj_uint32_t sample_rate

Sampling rate.

pj_uint32_t bytes_per_sec

Average bytes per second.

pj_uint16_t block_align

nchannels * bits / 8

pj_uint16_t bits_per_sample

Bits per sample.

struct strf_video_hdr_t
struct pjmedia_avi_hdr

See also

pjmedia_avi_hdr

struct pjmedia_avi_subchunk
#include <avi.h>

This structure describes generic RIFF subchunk header.

Public Members

pj_uint32_t id

Subchunk ASCII tag.

pj_uint32_t len

Length following this field