(C)Copyright 2000 NTT Cyber Space Laboratories
#include "twinvq.h" #include "tvqenc.h" int TvqEncInitialize(headerInfo *setupInfo, encSpecificInfo *encInfo, INDEX *index, int errorMessageBoxSwitch);
TvqEncInitialize() initialize TwinVQ encoder according to to the setup information stored in setupInfo and encInfo. The struct "index" for code interface is also initialized..
errror message box is displayed if errorMessageBoxSwitch is not 0.
Return error code listed below. These codes are defined in twinvq.h.
TVQ_NO_ERROR = 0 /* no error */ TVQ_ERROR = 1 /* unspecified error */ TVQ_ERROR_VERSION = 2 /* invalid version code */ TVQ_ERROR_CHANNEL = 3 /* invalid channel mode */ TVQ_ERROR_MODE = 4 /* invalid combination of sampling and bit rate */ TVQ_ERROR_PARAM = 5 /* invalid parameter value */ TVQ_ERROR_N_CAN = 6 /* invalid preselection candidate number */