#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <inttypes.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
Go to the source code of this file.
Classes | |
struct | audio_index_entry |
struct | avi_t |
struct | AVIStreamHeader |
struct | AVISTREAMINFO |
struct | BITMAPINFOHEADER_avilib |
struct | chunk_struct |
struct | common_struct |
struct | riff_struct |
struct | track_s |
struct | video_index_entry |
struct | wave_header |
struct | WAVEFORMATEX_avilib |
Macros | |
#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 | AVILIB_H |
#define | IBM_FORMAT_ADPCM (0x0103) |
#define | IBM_FORMAT_ALAW (0x0102) |
#define | IBM_FORMAT_MULAW (0x0101) |
#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 track_s | track_t |
Functions | |
int | AVI_append_audio (avi_t *AVI, char *data, long bytes) |
int | AVI_audio_bits (avi_t *AVI) |
long | AVI_audio_bytes (avi_t *AVI) |
int | AVI_audio_channels (avi_t *AVI) |
long | AVI_audio_chunks (avi_t *AVI) |
long | AVI_audio_codecf_offset (avi_t *AVI) |
long | AVI_audio_codech_offset (avi_t *AVI) |
int | AVI_audio_format (avi_t *AVI) |
long | AVI_audio_mp3rate (avi_t *AVI) |
long | AVI_audio_rate (avi_t *AVI) |
long | AVI_audio_size (avi_t *AVI, long frame) |
int | AVI_audio_tracks (avi_t *AVI) |
long | AVI_bytes_remain (avi_t *AVI) |
long | AVI_bytes_written (avi_t *AVI) |
int | AVI_close (avi_t *AVI) |
char * | AVI_codec2str (short cc) |
int | AVI_dump (char *name, int mode) |
int | AVI_dup_frame (avi_t *AVI) |
int | AVI_file_check (char *import_file) |
double | AVI_frame_rate (avi_t *AVI) |
long | AVI_frame_size (avi_t *AVI, long frame) |
int | AVI_get_audio_track (avi_t *AVI) |
long | AVI_get_video_position (avi_t *AVI, long frame) |
void | AVI_info (avi_t *avifile) |
uint64_t | AVI_max_size (void) |
long | AVI_max_video_chunk (avi_t *AVI) |
avi_t * | AVI_open_fd (int fd, int getIndex) |
avi_t * | AVI_open_input_file (const char *filename, int getIndex) |
avi_t * | AVI_open_output_file (char *filename) |
int | avi_parse_input_file (avi_t *AVI, int getIndex) |
void | AVI_print_error (char *str) |
long | AVI_read_audio (avi_t *AVI, char *audbuf, long bytes) |
long | AVI_read_audio_chunk (avi_t *AVI, char *audbuf) |
int | AVI_read_data (avi_t *AVI, char *vidbuf, long max_vidbuf, char *audbuf, long max_audbuf, long *len) |
long | AVI_read_frame (avi_t *AVI, char *vidbuf, int *keyframe) |
int | AVI_scan (char *name) |
int | AVI_seek_start (avi_t *AVI) |
void | AVI_set_audio (avi_t *AVI, int channels, long rate, int bits, int format, long mp3rate) |
int | AVI_set_audio_bitrate (avi_t *AVI, long bitrate) |
int | AVI_set_audio_position (avi_t *AVI, long byte) |
int | AVI_set_audio_track (avi_t *AVI, int track) |
void | AVI_set_video (avi_t *AVI, int width, int height, double fps, char *compressor) |
int | AVI_set_video_position (avi_t *AVI, long frame) |
char * | AVI_strerror (void) |
char * | AVI_syserror (void) |
int | avi_update_header (avi_t *AVI) |
long | AVI_video_codecf_offset (avi_t *AVI) |
long | AVI_video_codech_offset (avi_t *AVI) |
char * | AVI_video_compressor (avi_t *AVI) |
long | AVI_video_frames (avi_t *AVI) |
int | AVI_video_height (avi_t *AVI) |
int | AVI_video_width (avi_t *AVI) |
int | AVI_write_audio (avi_t *AVI, char *data, long bytes) |
int | AVI_write_frame (avi_t *AVI, char *data, long bytes, int keyframe) |
#define AVI_ERR_CLOSE |
#define AVI_ERR_NO_HDRL |
#define AVI_ERR_NO_IDX |
#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_SIZELIM |
#define AVI_ERR_WRITE |
#define AVI_ERR_WRITE_INDEX |
int AVI_append_audio | ( | avi_t * | AVI, |
char * | data, | ||
long | bytes | ||
) |
int AVI_audio_bits | ( | avi_t * | AVI | ) |
long AVI_audio_bytes | ( | avi_t * | AVI | ) |
int AVI_audio_channels | ( | avi_t * | AVI | ) |
long AVI_audio_chunks | ( | avi_t * | AVI | ) |
long AVI_audio_codecf_offset | ( | avi_t * | AVI | ) |
long AVI_audio_codech_offset | ( | avi_t * | AVI | ) |
int AVI_audio_format | ( | avi_t * | AVI | ) |
long AVI_audio_mp3rate | ( | avi_t * | AVI | ) |
long AVI_audio_rate | ( | avi_t * | AVI | ) |
long AVI_audio_size | ( | avi_t * | AVI, |
long | frame | ||
) |
int AVI_audio_tracks | ( | avi_t * | AVI | ) |
long AVI_bytes_remain | ( | avi_t * | AVI | ) |
long AVI_bytes_written | ( | avi_t * | AVI | ) |
int AVI_close | ( | avi_t * | AVI | ) |
char* AVI_codec2str | ( | short | cc | ) |
int AVI_dump | ( | char * | name, |
int | mode | ||
) |
int AVI_dup_frame | ( | avi_t * | AVI | ) |
int AVI_file_check | ( | char * | import_file | ) |
double AVI_frame_rate | ( | avi_t * | AVI | ) |
long AVI_frame_size | ( | avi_t * | AVI, |
long | frame | ||
) |
int AVI_get_audio_track | ( | avi_t * | AVI | ) |
long AVI_get_video_position | ( | avi_t * | AVI, |
long | frame | ||
) |
void AVI_info | ( | avi_t * | avifile | ) |
uint64_t AVI_max_size | ( | void | ) |
long AVI_max_video_chunk | ( | avi_t * | AVI | ) |
avi_t* AVI_open_fd | ( | int | fd, |
int | getIndex | ||
) |
avi_t* AVI_open_input_file | ( | const char * | filename, |
int | getIndex | ||
) |
avi_t* AVI_open_output_file | ( | char * | filename | ) |
int avi_parse_input_file | ( | avi_t * | AVI, |
int | getIndex | ||
) |
void AVI_print_error | ( | char * | str | ) |
long AVI_read_audio | ( | avi_t * | AVI, |
char * | audbuf, | ||
long | bytes | ||
) |
long AVI_read_audio_chunk | ( | avi_t * | AVI, |
char * | audbuf | ||
) |
int AVI_read_data | ( | avi_t * | AVI, |
char * | vidbuf, | ||
long | max_vidbuf, | ||
char * | audbuf, | ||
long | max_audbuf, | ||
long * | len | ||
) |
long AVI_read_frame | ( | avi_t * | AVI, |
char * | vidbuf, | ||
int * | keyframe | ||
) |
int AVI_scan | ( | char * | name | ) |
int AVI_seek_start | ( | avi_t * | AVI | ) |
void AVI_set_audio | ( | avi_t * | AVI, |
int | channels, | ||
long | rate, | ||
int | bits, | ||
int | format, | ||
long | mp3rate | ||
) |
int AVI_set_audio_bitrate | ( | avi_t * | AVI, |
long | bitrate | ||
) |
int AVI_set_audio_position | ( | avi_t * | AVI, |
long | byte | ||
) |
int AVI_set_audio_track | ( | avi_t * | AVI, |
int | track | ||
) |
void AVI_set_video | ( | avi_t * | AVI, |
int | width, | ||
int | height, | ||
double | fps, | ||
char * | compressor | ||
) |
int AVI_set_video_position | ( | avi_t * | AVI, |
long | frame | ||
) |
char* AVI_strerror | ( | void | ) |
char* AVI_syserror | ( | void | ) |
int avi_update_header | ( | avi_t * | AVI | ) |
long AVI_video_codecf_offset | ( | avi_t * | AVI | ) |
long AVI_video_codech_offset | ( | avi_t * | AVI | ) |
char* AVI_video_compressor | ( | avi_t * | AVI | ) |
long AVI_video_frames | ( | avi_t * | AVI | ) |
int AVI_video_height | ( | avi_t * | AVI | ) |
int AVI_video_width | ( | avi_t * | AVI | ) |
int AVI_write_audio | ( | avi_t * | AVI, |
char * | data, | ||
long | bytes | ||
) |
int AVI_write_frame | ( | avi_t * | AVI, |
char * | data, | ||
long | bytes, | ||
int | keyframe | ||
) |