[Ffmpeg-cvslog] r6433 - trunk/libavcodec/vorbis_enc.c
ods15
subversion
Mon Oct 2 07:55:56 CEST 2006
Author: ods15
Date: Mon Oct 2 07:55:55 2006
New Revision: 6433
Modified:
trunk/libavcodec/vorbis_enc.c
Log:
Original Commit: r22 | ods15 | 2006-09-22 13:49:56 +0300 (Fri, 22 Sep 2006) | 2 lines
add residue generation
Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c (original)
+++ trunk/libavcodec/vorbis_enc.c Mon Oct 2 07:55:55 2006
@@ -165,6 +165,7 @@
static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccontext) {
codebook_t * cb;
floor_t * fc;
+ residue_t * rc;
int i, book;
venc->channels = avccontext->channels;
@@ -251,6 +252,17 @@
venc->nresidues = 1;
venc->residues = av_malloc(sizeof(residue_t) * venc->nresidues);
+ // single residue
+ rc = &venc->residues[0];
+ rc->type = 0;
+ rc->begin = 0;
+ rc->end = 1 << venc->blocksize[0];
+ rc->partition_size = 64;
+ rc->classifications = 1;
+ rc->classbook = 1;
+ rc->books = av_malloc(sizeof(int[8]) * rc->classifications);
+ for (i = 0; i < 8; i++) rc->books[0][i] = 2 + i;
+
venc->nmappings = 1;
venc->mappings = av_malloc(sizeof(mapping_t) * venc->nmappings);
More information about the ffmpeg-cvslog
mailing list