#include <stdio.h>#include <string.h>#include <assert.h>#include "mpeg.h"Go to the source code of this file.
Functions | |
| bool | MPEG_CheckHeader (unsigned long header) |
| Do a quick validity check on a MPEG Header. | |
| bool | MPEG_FindHeader (char *buffer, unsigned buflen, int numHeads) |
| Search for valid headers inside a buffer. | |
| bool | MPEG_ParseHeader (unsigned long header, FrameInfo *info) |
| Decode a MPEG Header into a more friendy format. | |
| char * | MPEG_HeaderToString (unsigned long header) |
|
|
Do a quick validity check on a MPEG Header.
Definition at line 33 of file mpeg.cpp. Referenced by MPEG_ParseHeader(). |
|
||||||||||||||||
|
Search for valid headers inside a buffer. (Presumably by using REP_SCASB, and a call to CheckHeader(). After a possible header (0xff) has been found, the frame length should be calculated, and the numHead following frames should be checked as well. If we've found e.g. 3 valid headers in a row, we can be reasonably sure that we're sync'd. \TODO implement this function! |
|
|
Definition at line 136 of file mpeg.cpp. References FrameInfo::bitrate, FrameInfo::crc, FrameInfo::frequency, FrameInfo::id, FrameInfo::layer, FrameInfo::mode, and MPEG_ParseHeader(). |
|
||||||||||||
|
Decode a MPEG Header into a more friendy format.
Definition at line 76 of file mpeg.cpp. References FrameInfo::bitrate, FrameInfo::copyright, FrameInfo::crc, FrameInfo::emphasis, FrameInfo::extension, FrameInfo::frequency, FrameInfo::id, FrameInfo::layer, FrameInfo::length, FrameInfo::mode, MPEG_CheckHeader(), FrameInfo::original, FrameInfo::pad, and FrameInfo::priv. Referenced by MPEG_HeaderToString(). |
1.2.16