Classes | Defines | Typedefs | Functions | Variables
avilib.h File Reference
#include "defs.h"
#include <inttypes.h>
#include <sys/types.h>
Include dependency graph for avilib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _audio_index_entry
struct  _video_index_entry
struct  avi_t
struct  track_s

Defines

#define ANTEX_FORMAT_ADPCME   (0x0033)
#define AUDIO_FORMAT_APTX   (0x0025)
#define AUDIOFILE_FORMAT_AF10   (0x0026)
#define AUDIOFILE_FORMAT_AF36   (0x0024)
#define AVI_ERR_CLOSE
#define AVI_ERR_NO_AVI   9 /* Not an AVI file */
#define AVI_ERR_NO_HDRL
#define AVI_ERR_NO_IDX
#define AVI_ERR_NO_MEM   8 /* malloc failed */
#define AVI_ERR_NO_MOVI
#define AVI_ERR_NO_VIDS   12 /* AVI file contains no video data */
#define AVI_ERR_NOT_PERM
#define AVI_ERR_OPEN
#define AVI_ERR_READ   3 /* Error reading from AVI File */
#define AVI_ERR_SIZELIM
#define AVI_ERR_WRITE
#define AVI_ERR_WRITE_INDEX
#define AVI_MAX_TRACKS   8
#define AVI_MODE_READ   1
#define AVI_MODE_WRITE   0
#define BROOKTREE_FORMAT_BTVD   (0x0400)
#define CANOPUS_FORMAT_ATRAC   (0x0063)
#define CIRRUS_FORMAT_CIRRUS   (0x0060)
#define CONSISTENT_FORMAT_CS2   (0x0260)
#define CONTROL_FORMAT_CR10   (0x0037)
#define CONTROL_FORMAT_VQLPC   (0x0034)
#define CREATIVE_FORMAT_ADPCM   (0x0200)
#define CREATIVE_FORMAT_FASTSPEECH10   (0x0203)
#define CREATIVE_FORMAT_FASTSPEECH8   (0x0202)
#define DEC_FORMAT_G723   (0x0123)
#define DF_FORMAT_G726   (0x0085)
#define DOLBY_FORMAT_AC2   (0x0030)
#define DOLBY_FORMAT_AC3   (0x2000)
#define DOLBY_FORMAT_AC3_SPDIF   (0x0092)
#define DSP_FORMAT_ADPCM   (0x0036)
#define ESS_FORMAT_ESPCM   (0x0061)
#define FRAME_RATE_SCALE   1000000
#define HP_FORMAT_CU   (0x0019)
#define IBM_FORMAT_ADPCM   (0x0103)
#define IBM_FORMAT_ALAW   (0x0102)
#define IBM_FORMAT_MULAW   (0x0101)
#define IEEE_FORMAT_FLOAT   (0x0003)
#define IMA_FORMAT_ADPCM   (0x0039)
#define ISO_FORMAT_MP3   (0x0055)
#define ISO_FORMAT_MPEG12   (0x0050)
#define MS_FORMAT_MSAUDIO1_DIVX   (0x0160)
#define MS_FORMAT_MSAUDIO2_DIVX   (0x0161)
#define MS_FORMAT_WMA9   (0x0163)
#define MS_FORMAT_WMA9_PRO   (0x0162)
#define OGG_FORMAT_VORBIS1   (0x674f)
#define OGG_FORMAT_VORBIS1P   (0x676f)
#define OGG_FORMAT_VORBIS2   (0x6750)
#define OGG_FORMAT_VORBIS2P   (0x6770)
#define OGG_FORMAT_VORBIS3   (0x6751)
#define OGG_FORMAT_VORBIS3P   (0x6771)
#define WAVE_FORMAT_ADPCM   (0x0002)
#define WAVE_FORMAT_ALAW   (0x0006)
#define WAVE_FORMAT_DIGIFIX   (0x0016)
#define WAVE_FORMAT_DIGISTD   (0x0015)
#define WAVE_FORMAT_DSP_TRUESPEECH   (0x0022)
#define WAVE_FORMAT_DVI_ADPCM   (0x0011)
#define WAVE_FORMAT_GSM610   (0x0031)
#define WAVE_FORMAT_IBM_CVSD   (0x0005)
#define WAVE_FORMAT_MULAW   (0x0007)
#define WAVE_FORMAT_OKI_ADPCM   (0x0010)
#define WAVE_FORMAT_PCM   (0x0001)
#define WAVE_FORMAT_UNKNOWN   (0x0000)
#define WAVE_FORMAT_YAMAHA_ADPCM   (0x0020)

Typedefs

typedef struct _audio_index_entry audio_index_entry
typedef struct _video_index_entry video_index_entry

Functions

struct track_s __attribute__ ((packed)) track_t
int AVI_append_audio (struct avi_t *AVI, BYTE *data, long bytes)
ULONG AVI_bytes_remain (struct avi_t *AVI)
int AVI_close (struct avi_t *AVI)
int AVI_dup_frame (struct avi_t *AVI)
int AVI_getErrno ()
int AVI_open_output_file (struct avi_t *AVI, const char *filename)
void AVI_print_error (char *str)
void AVI_set_audio (struct avi_t *AVI, int channels, long rate, int mpgrate, int bits, int format)
int AVI_set_audio_track (struct avi_t *AVI, int track)
void AVI_set_audio_vbr (struct avi_t *AVI, long is_vbr)
ULONG AVI_set_MAX_LEN (ULONG len)
void AVI_set_video (struct avi_t *AVI, int width, int height, double fps, char *compressor)
char * AVI_strerror ()
char * AVI_syserror ()
int AVI_write_audio (struct avi_t *AVI, BYTE *data, long bytes)
int AVI_write_frame (struct avi_t *AVI, BYTE *data, long bytes, int keyframe)

Variables

long a_bits
long a_chans
off_t a_codecf_off
off_t a_codech_off
long a_fmt
long a_rate
long a_vbr
int anum
int aptr
off_t audio_bytes
long audio_chunks
audio_index_entryaudio_index
long audio_posb
long audio_posc
long audio_strn
char audio_tag [4]
int closed
char compressor [8]
char compressor2 [8]
void * extradata
ULONG extradata_size
long fdes
double fps
long height
BYTE(* idx )[16]
DWORD last_len
off_t last_pos
long max_idx
DWORD max_len
long mode
off_t movi_start
long mpgrate
int must_use_index
long n_idx
long padrate
off_t pos
int total_frames
track_t track [AVI_MAX_TRACKS]
off_t v_codecf_off
off_t v_codech_off
long video_frames
video_index_entryvideo_index
long video_pos
long video_strn
char video_tag [4]
long width

Define Documentation

#define ANTEX_FORMAT_ADPCME   (0x0033)

Definition at line 244 of file avilib.h.

#define AUDIO_FORMAT_APTX   (0x0025)

Definition at line 245 of file avilib.h.

#define AUDIOFILE_FORMAT_AF10   (0x0026)

Definition at line 246 of file avilib.h.

#define AUDIOFILE_FORMAT_AF36   (0x0024)

Definition at line 247 of file avilib.h.

#define AVI_ERR_CLOSE
Value:
6     /* Could not write header to AVI file
                                      or not truncate the file during close,
                                      file is most probably corrupted */

Definition at line 208 of file avilib.h.

#define AVI_ERR_NO_AVI   9 /* Not an AVI file */

Definition at line 214 of file avilib.h.

#define AVI_ERR_NO_HDRL
Value:
10     /* AVI file has no has no header list,
                                      corrupted ??? */

Definition at line 216 of file avilib.h.

#define AVI_ERR_NO_IDX
Value:
13     /* The file has been opened with
                                      getIndex==0, but an operation has been
                                      performed that needs an index */

Definition at line 222 of file avilib.h.

#define AVI_ERR_NO_MEM   8 /* malloc failed */

Definition at line 212 of file avilib.h.

#define AVI_ERR_NO_MOVI
Value:
11     /* AVI file has no has no MOVI list,
                                      corrupted ??? */

Definition at line 218 of file avilib.h.

#define AVI_ERR_NO_VIDS   12 /* AVI file contains no video data */

Definition at line 220 of file avilib.h.

Value:
7     /* Operation not permitted:
                                      trying to read from a file open
                                      for writing or vice versa */

Definition at line 210 of file avilib.h.

#define AVI_ERR_OPEN
Value:
2     /* Error opening the AVI file - wrong path
                                      name or file nor readable/writable */

Definition at line 200 of file avilib.h.

#define AVI_ERR_READ   3 /* Error reading from AVI File */

Definition at line 202 of file avilib.h.

#define AVI_ERR_SIZELIM
Value:
1     /* The write of the data would exceed
                                      the maximum size of the AVI file.
                                      This is more a warning than an error
                                      since the file may be closed safely */

Definition at line 198 of file avilib.h.

#define AVI_ERR_WRITE
Value:
4     /* Error writing to AVI File,
                                      disk full ??? */

Definition at line 204 of file avilib.h.

Value:
5     /* Could not write index to AVI file
                                      during close, file may still be
                                      usable */

Definition at line 206 of file avilib.h.

#define AVI_MAX_TRACKS   8

Definition at line 41 of file avilib.h.

#define AVI_MODE_READ   1

Definition at line 194 of file avilib.h.

#define AVI_MODE_WRITE   0

Definition at line 193 of file avilib.h.

#define BROOKTREE_FORMAT_BTVD   (0x0400)

Definition at line 248 of file avilib.h.

#define CANOPUS_FORMAT_ATRAC   (0x0063)

Definition at line 249 of file avilib.h.

#define CIRRUS_FORMAT_CIRRUS   (0x0060)

Definition at line 250 of file avilib.h.

#define CONSISTENT_FORMAT_CS2   (0x0260)

Definition at line 257 of file avilib.h.

#define CONTROL_FORMAT_CR10   (0x0037)

Definition at line 251 of file avilib.h.

#define CONTROL_FORMAT_VQLPC   (0x0034)

Definition at line 252 of file avilib.h.

#define CREATIVE_FORMAT_ADPCM   (0x0200)

Definition at line 253 of file avilib.h.

#define CREATIVE_FORMAT_FASTSPEECH10   (0x0203)

Definition at line 254 of file avilib.h.

#define CREATIVE_FORMAT_FASTSPEECH8   (0x0202)

Definition at line 255 of file avilib.h.

#define DEC_FORMAT_G723   (0x0123)

Definition at line 259 of file avilib.h.

#define DF_FORMAT_G726   (0x0085)

Definition at line 260 of file avilib.h.

#define DOLBY_FORMAT_AC2   (0x0030)

Definition at line 262 of file avilib.h.

#define DOLBY_FORMAT_AC3   (0x2000)

Definition at line 243 of file avilib.h.

#define DOLBY_FORMAT_AC3_SPDIF   (0x0092)

Definition at line 263 of file avilib.h.

#define DSP_FORMAT_ADPCM   (0x0036)

Definition at line 261 of file avilib.h.

#define ESS_FORMAT_ESPCM   (0x0061)

Definition at line 264 of file avilib.h.

#define FRAME_RATE_SCALE   1000000

Definition at line 42 of file avilib.h.

#define HP_FORMAT_CU   (0x0019)

Definition at line 258 of file avilib.h.

#define IBM_FORMAT_ADPCM   (0x0103)

Definition at line 241 of file avilib.h.

#define IBM_FORMAT_ALAW   (0x0102)

Definition at line 240 of file avilib.h.

#define IBM_FORMAT_MULAW   (0x0101)

Definition at line 239 of file avilib.h.

#define IEEE_FORMAT_FLOAT   (0x0003)

Definition at line 265 of file avilib.h.

#define IMA_FORMAT_ADPCM   (0x0039)

Definition at line 256 of file avilib.h.

#define ISO_FORMAT_MP3   (0x0055)

Definition at line 266 of file avilib.h.

#define ISO_FORMAT_MPEG12   (0x0050)

Definition at line 267 of file avilib.h.

#define MS_FORMAT_MSAUDIO1_DIVX   (0x0160)

Definition at line 268 of file avilib.h.

#define MS_FORMAT_MSAUDIO2_DIVX   (0x0161)

Definition at line 269 of file avilib.h.

#define MS_FORMAT_WMA9   (0x0163)

Definition at line 276 of file avilib.h.

#define MS_FORMAT_WMA9_PRO   (0x0162)

Definition at line 277 of file avilib.h.

#define OGG_FORMAT_VORBIS1   (0x674f)

Definition at line 270 of file avilib.h.

#define OGG_FORMAT_VORBIS1P   (0x676f)

Definition at line 271 of file avilib.h.

#define OGG_FORMAT_VORBIS2   (0x6750)

Definition at line 272 of file avilib.h.

#define OGG_FORMAT_VORBIS2P   (0x6770)

Definition at line 273 of file avilib.h.

#define OGG_FORMAT_VORBIS3   (0x6751)

Definition at line 274 of file avilib.h.

#define OGG_FORMAT_VORBIS3P   (0x6771)

Definition at line 275 of file avilib.h.

#define WAVE_FORMAT_ADPCM   (0x0002)

Definition at line 228 of file avilib.h.

#define WAVE_FORMAT_ALAW   (0x0006)

Definition at line 230 of file avilib.h.

#define WAVE_FORMAT_DIGIFIX   (0x0016)

Definition at line 235 of file avilib.h.

#define WAVE_FORMAT_DIGISTD   (0x0015)

Definition at line 234 of file avilib.h.

#define WAVE_FORMAT_DSP_TRUESPEECH   (0x0022)

Definition at line 237 of file avilib.h.

#define WAVE_FORMAT_DVI_ADPCM   (0x0011)

Definition at line 233 of file avilib.h.

#define WAVE_FORMAT_GSM610   (0x0031)

Definition at line 238 of file avilib.h.

#define WAVE_FORMAT_IBM_CVSD   (0x0005)

Definition at line 229 of file avilib.h.

#define WAVE_FORMAT_MULAW   (0x0007)

Definition at line 231 of file avilib.h.

#define WAVE_FORMAT_OKI_ADPCM   (0x0010)

Definition at line 232 of file avilib.h.

#define WAVE_FORMAT_PCM   (0x0001)

Definition at line 227 of file avilib.h.

#define WAVE_FORMAT_UNKNOWN   (0x0000)

Definition at line 226 of file avilib.h.

#define WAVE_FORMAT_YAMAHA_ADPCM   (0x0020)

Definition at line 236 of file avilib.h.


Typedef Documentation


Function Documentation

struct avi_t __attribute__ ( (packed)  )
int AVI_append_audio ( struct avi_t AVI,
BYTE data,
long  bytes 
)

Definition at line 1116 of file avilib.c.

ULONG AVI_bytes_remain ( struct avi_t AVI)

Definition at line 1154 of file avilib.c.

int AVI_close ( struct avi_t AVI)

Definition at line 1189 of file avilib.c.

int AVI_dup_frame ( struct avi_t AVI)

Definition at line 1087 of file avilib.c.

int AVI_getErrno ( )

Definition at line 1223 of file avilib.c.

int AVI_open_output_file ( struct avi_t AVI,
const char *  filename 
)

Definition at line 527 of file avilib.c.

void AVI_print_error ( char *  str)

Definition at line 1252 of file avilib.c.

void AVI_set_audio ( struct avi_t AVI,
int  channels,
long  rate,
int  mpgrate,
int  bits,
int  format 
)

Definition at line 599 of file avilib.c.

int AVI_set_audio_track ( struct avi_t AVI,
int  track 
)

Definition at line 1168 of file avilib.c.

void AVI_set_audio_vbr ( struct avi_t AVI,
long  is_vbr 
)

Definition at line 1177 of file avilib.c.

Definition at line 73 of file avilib.c.

void AVI_set_video ( struct avi_t AVI,
int  width,
int  height,
double  fps,
char *  compressor 
)

Definition at line 575 of file avilib.c.

char* AVI_strerror ( )

Definition at line 1272 of file avilib.c.

char* AVI_syserror ( )
int AVI_write_audio ( struct avi_t AVI,
BYTE data,
long  bytes 
)

Definition at line 1099 of file avilib.c.

int AVI_write_frame ( struct avi_t AVI,
BYTE data,
long  bytes,
int  keyframe 
)

Definition at line 1068 of file avilib.c.


Variable Documentation

long a_bits

Definition at line 88 of file avilib.h.

long a_chans

Definition at line 86 of file avilib.h.

off_t a_codecf_off

Definition at line 102 of file avilib.h.

off_t a_codech_off

Definition at line 101 of file avilib.h.

long a_fmt

Definition at line 85 of file avilib.h.

long a_rate

Definition at line 87 of file avilib.h.

long a_vbr

Definition at line 90 of file avilib.h.

int anum

Definition at line 230 of file avilib.h.

int aptr

Definition at line 231 of file avilib.h.

off_t audio_bytes

Definition at line 94 of file avilib.h.

Definition at line 95 of file avilib.h.

Definition at line 104 of file avilib.h.

long audio_posb

Definition at line 99 of file avilib.h.

long audio_posc

Definition at line 98 of file avilib.h.

long audio_strn

Definition at line 93 of file avilib.h.

char audio_tag[4]

Definition at line 97 of file avilib.h.

int closed

Definition at line 240 of file avilib.h.

char compressor[8]

Definition at line 199 of file avilib.h.

char compressor2[8]

Definition at line 200 of file avilib.h.

void* extradata

Definition at line 238 of file avilib.h.

Definition at line 239 of file avilib.h.

long fdes

Definition at line 192 of file avilib.h.

double fps

Definition at line 198 of file avilib.h.

long height

Definition at line 197 of file avilib.h.

BYTE(* idx)[16]

Definition at line 218 of file avilib.h.

Definition at line 225 of file avilib.h.

off_t last_pos

Definition at line 224 of file avilib.h.

long max_idx

Definition at line 213 of file avilib.h.

Definition at line 207 of file avilib.h.

long mode

Definition at line 193 of file avilib.h.

off_t movi_start

Definition at line 227 of file avilib.h.

long mpgrate

Definition at line 89 of file avilib.h.

Definition at line 226 of file avilib.h.

long n_idx

Definition at line 212 of file avilib.h.

long padrate

Definition at line 91 of file avilib.h.

off_t pos

Definition at line 211 of file avilib.h.

Definition at line 228 of file avilib.h.

Definition at line 209 of file avilib.h.

off_t v_codecf_off

Definition at line 216 of file avilib.h.

off_t v_codech_off

Definition at line 215 of file avilib.h.

Definition at line 202 of file avilib.h.

Definition at line 220 of file avilib.h.

long video_pos

Definition at line 204 of file avilib.h.

long video_strn

Definition at line 201 of file avilib.h.

char video_tag[4]

Definition at line 203 of file avilib.h.

long width

Definition at line 196 of file avilib.h.



uvc_cam2
Author(s): Morgan Quigley, extended and maintained by Juergen Sturm
autogenerated on Mon Oct 6 2014 00:08:38