mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Original Commit: r7 | ods15 | 2006-09-17 08:50:47 +0300 (Sun, 17 Sep 2006) | 2 lines
skeleton for residue/floor/mappings header Originally committed as revision 6418 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1f7e7464e9
commit
d52480b40d
@ -51,6 +51,15 @@ typedef struct {
|
|||||||
int * quantlist;
|
int * quantlist;
|
||||||
} codebook_t;
|
} codebook_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
} floor_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
} residue_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
} mapping_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int channels;
|
int channels;
|
||||||
int sample_rate;
|
int sample_rate;
|
||||||
@ -58,6 +67,15 @@ typedef struct {
|
|||||||
|
|
||||||
int ncodebooks;
|
int ncodebooks;
|
||||||
codebook_t * codebooks;
|
codebook_t * codebooks;
|
||||||
|
|
||||||
|
int nfloors;
|
||||||
|
floor_t * floors;
|
||||||
|
|
||||||
|
int nresidues;
|
||||||
|
residue_t * residues;
|
||||||
|
|
||||||
|
int nmappings;
|
||||||
|
mapping_t * mappings;
|
||||||
} venc_context_t;
|
} venc_context_t;
|
||||||
|
|
||||||
static inline int ilog(unsigned int a) {
|
static inline int ilog(unsigned int a) {
|
||||||
@ -136,6 +154,12 @@ static void put_codebook_header(PutBitContext * pb, codebook_t * cb) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void put_floor_header(PutBitContext * pb, floor_t * fl) {
|
||||||
|
}
|
||||||
|
|
||||||
|
static void put_residue_header(PutBitContext * pb, residue_t * r) {
|
||||||
|
}
|
||||||
|
|
||||||
static int put_main_header(venc_context_t * venc, uint8_t ** out) {
|
static int put_main_header(venc_context_t * venc, uint8_t ** out) {
|
||||||
int i;
|
int i;
|
||||||
PutBitContext pb;
|
PutBitContext pb;
|
||||||
@ -184,6 +208,22 @@ static int put_main_header(venc_context_t * venc, uint8_t ** out) {
|
|||||||
put_bits(&pb, 8, venc->ncodebooks - 1);
|
put_bits(&pb, 8, venc->ncodebooks - 1);
|
||||||
for (i = 0; i < venc->ncodebooks; i++) put_codebook_header(&pb, &venc->codebooks[0]);
|
for (i = 0; i < venc->ncodebooks; i++) put_codebook_header(&pb, &venc->codebooks[0]);
|
||||||
|
|
||||||
|
// time domain, reserved, zero
|
||||||
|
put_bits(&pb, 6, 0);
|
||||||
|
put_bits(&pb, 16, 0);
|
||||||
|
|
||||||
|
// floors
|
||||||
|
put_bits(&pb, 6, venc->nfloors - 1);
|
||||||
|
for (i = 0; i < venc->nfloors; i++) put_floor_header(&pb, &venc->floors[0]);
|
||||||
|
|
||||||
|
// residues
|
||||||
|
put_bits(&pb, 6, venc->nresidues - 1);
|
||||||
|
for (i = 0; i < venc->nresidues; i++) put_residue_header(&pb, &venc->residues[0]);
|
||||||
|
|
||||||
|
// mappings
|
||||||
|
put_bits(&pb, 6, venc->nmappings - 1);
|
||||||
|
for (i = 0; i < venc->nmappings; i++) {
|
||||||
|
}
|
||||||
|
|
||||||
flush_put_bits(&pb);
|
flush_put_bits(&pb);
|
||||||
hlens[2] = (put_bits_count(&pb) + 7) / 8;
|
hlens[2] = (put_bits_count(&pb) + 7) / 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user