(C)Copyright 2000 NTT Cyber Space Laboratories
Control function for bit stream reading
- name
- TvqGetVectorInfo, TvqWtypeToBtype, TvqUpdateVectorInfo
- TwinVQ control function for bit stream reading
- style
-
#include "twinvq.h"
#include "tvqdec.h"
void TvqGetVectorInfo(int *bits0[], int *bits1[]);
int TvqWtypeToBtype(int wtype, int *btype);
void TvqUpdateVectorInfo(int varBits, int *ndiv, int bits0[], int bits1[]);
- function
- These are not called directly from decoder.
These are called from TvqReadBsFrame()
- TvqGetVectorInfo()
gets VQ information at the initialization.
- TvqWtypeToBtype()
converts windowtype to blocktype.
Return 1 if windowtype is invalid, otherwise return 0.
- TvqUpdateVectorInfo()
updates VQ parameters such as
ndiv (number of vectors), and bit0, bit1, depending on varBits.