#include <stdio.h>
#include <ogg/ogg.h>
#include <vorbis/codec.h>
#include <theora/theora.h>
#include <SDL.h>
Go to the source code of this file.
Data Structures | |
struct | mm_file |
Defines | |
#define | MM_AUDIO_FORMAT AUDIO_U16SYS |
Enumerations | |
enum | stream_type { MEDIA_AUDIO = 1, MEDIA_VIDEO = 2 } |
Functions | |
int | mm_audio_info (const mm_file *mf, unsigned *channels, unsigned *rate) |
| |
int | mm_close (mm_file *mf) |
int | mm_decode_audio (mm_file *mf, void *buf, int buflen) |
int | mm_decode_video (mm_file *mf, SDL_Overlay *ovl) |
unsigned | mm_ignore (mm_file *mf, unsigned mask) |
int | mm_open (mm_file *mf, const char *fname) |
int | mm_open_fp (mm_file *mf, FILE *file) |
int | mm_video_info (const mm_file *mf, unsigned *width, unsigned *height, float *fps) |
|
enum stream_type |
int mm_audio_info | ( | const mm_file * | mf, | |
unsigned * | channels, | |||
unsigned * | rate | |||
) |
Definition at line 514 of file mmfile.c.
References mm_file::audio, and mm_file::audio_info.
int mm_close | ( | mm_file * | mf | ) |
Definition at line 438 of file mmfile.c.
References mm_file::audio, mm_file::audio_blk, mm_file::audio_ctx, mm_file::audio_info, mm_file::file, mm_file::sync, mm_file::video, mm_file::video_ctx, and mm_file::video_info.
Definition at line 564 of file mmfile.c.
References mm_file::audio_blk, mm_file::audio_ctx, mm_file::drop_packets, get_packet(), MEDIA_AUDIO, min, mm_audio_info(), pcm, and WARNING1.
int mm_decode_video | ( | mm_file * | mf, | |
SDL_Overlay * | ovl | |||
) |
Definition at line 527 of file mmfile.c.
References mm_file::drop_packets, get_packet(), MEDIA_VIDEO, mm_file::video, mm_file::video_ctx, WARNING1, and yuv_to_overlay().
unsigned mm_ignore | ( | mm_file * | mf, | |
unsigned | mask | |||
) |
int mm_open | ( | mm_file * | mf, | |
const char * | fname | |||
) |
int mm_open_fp | ( | mm_file * | mf, | |
FILE * | file | |||
) |
Definition at line 366 of file mmfile.c.
References c, DEBUG1, mm_file::file, get_page(), INFO3, INFO4, init_theora(), init_vorbis(), MEDIA_AUDIO, MEDIA_VIDEO, mm_audio_info(), mm_close(), mm_video_info(), mm_file::sync, and WARNING1.
int mm_video_info | ( | const mm_file * | mf, | |
unsigned * | width, | |||
unsigned * | height, | |||
float * | fps | |||
) |
Definition at line 494 of file mmfile.c.
References mm_file::video, and mm_file::video_info.