FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
bit.c File Reference
#include "avformat.h"
#include "internal.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/put_bits.h"

Go to the source code of this file.

Macros

#define MAX_FRAME_SIZE   10
 
#define SYNC_WORD   0x6b21
 
#define BIT_0   0x7f
 
#define BIT_1   0x81
 

Functions

static int probe (AVProbeData *p)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_bit_demuxer
 

Macro Definition Documentation

#define MAX_FRAME_SIZE   10

Definition at line 26 of file bit.c.

Referenced by read_packet().

#define SYNC_WORD   0x6b21

Definition at line 28 of file bit.c.

Referenced by probe().

#define BIT_0   0x7f

Definition at line 29 of file bit.c.

#define BIT_1   0x81

Definition at line 30 of file bit.c.

Referenced by read_packet().

Function Documentation

static int probe ( AVProbeData p)
static

Definition at line 32 of file bit.c.

static int read_header ( AVFormatContext s)
static

Definition at line 50 of file bit.c.

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 68 of file bit.c.

Variable Documentation

AVInputFormat ff_bit_demuxer
Initial value:
= {
.name = "bit",
.long_name = NULL_IF_CONFIG_SMALL("G.729 BIT file format"),
.read_probe = probe,
.read_header = read_header,
.read_packet = read_packet,
.extensions = "bit",
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int probe(AVProbeData *p)
Definition: bit.c:32
static int read_header(AVFormatContext *s)
Definition: bit.c:50
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: bit.c:68

Definition at line 108 of file bit.c.