📄 dec_par_dmy.c
字号:
/**********************************************************************MPEG-4 Audio VMDecoder core (parametric)This software module was originally developed byHeiko Purnhagen (University of Hannover)and edited byYuji Maeda (Sony Corporation)in the course of development of the MPEG-2 NBC/MPEG-4 Audio standardISO/IEC 13818-7, 14496-1,2 and 3. This software module is animplementation of a part of one or more MPEG-2 NBC/MPEG-4 Audio toolsas specified by the MPEG-2 NBC/MPEG-4 Audio standard. ISO/IEC givesusers of the MPEG-2 NBC/MPEG-4 Audio standards free license to thissoftware module or modifications thereof for use in hardware orsoftware products claiming conformance to the MPEG-2 NBC/ MPEG-4 Audiostandards. Those intending to use this software module in hardware orsoftware products are advised that this use may infringe existingpatents. The original developer of this software module and his/hercompany, the subsequent editors and their companies, and ISO/IEC haveno liability for use of this software module or modifications thereofin an implementation. Copyright is not released for non MPEG-2NBC/MPEG-4 Audio conforming products. The original developer retainsfull right to use the code for his/her own purpose, assign or donatethe code to a third party and to inhibit third party from using thecode for non MPEG-2 NBC/MPEG-4 Audio conforming products. Thiscopyright notice must be included in all copies or derivative works.Copyright (c) 1996.Source file: dec_par_dmy.c$Id: dec_par_dmy.c,v 1.11 1999/07/22 14:12:24 purnhage Exp $Required modules:common.o common modulecmdline.o command line modulebitstream.o bits stream moduleAuthors:HP Heiko Purnhagen, Uni Hannover <purnhage@tnt.uni-hannover.de>Changes:24-jun-96 HP dummy core15-aug-96 HP adapted to new dec.h26-aug-96 HP CVS03-sep-96 HP added speed change & pitch change for parametric core**********************************************************************/#include <stdio.h>#include <stdlib.h>#include <string.h>#include "common_m4a.h" /* common module */#include "cmdline.h" /* command line module */#include "lpc_common.h"#include "obj_descr.h" /* AI 990616 */#include "dec_par.h" /* decoder cores *//* ---------- declarations ---------- */#define PROGVER "parametric decoder core dummy"/* ---------- functions ---------- *//* DecParInfo() *//* Get info about parametric decoder core. */char *DecParInfo ( FILE *helpStream) /* in: print decPara help text to helpStream */ /* if helpStream not NULL */ /* returns: core version string */{ if (helpStream != NULL) fprintf(helpStream,PROGVER "\n\n"); return PROGVER;}/* DecHvxcInitNew() *//* Init HVXC decoder core for system interface(AI 990616) */HvxcDecStatus *DecHvxcInitNew ( char *decPara, /* in: decoder parameter string */ FRAME_DATA *fD, /* in: system interface */ int layer /* in: number of layer */ ){ CommonExit(1,"DecHvxcInitNew: dummy");}/* DecParInit() *//* Init parametric decoder core. */void DecParInit ( int numChannel, /* in: num audio channels */ float fSample, /* in: sampling frequency [Hz] */ float bitRate, /* in: total bit rate [bit/sec] */ char *decPara, /* in: decoder parameter string */ BsBitBuffer *bitHeader, /* in: header from bit stream */ int *frameMaxNumSample, /* out: max num samples per frame */ int *delayNumSample /* out: decoder delay (num samples) */){ CommonExit(1,"DecParInit: dummy");}/* DecParFrame() *//* Decode one bit stream frame into one audio frame with *//* parametric decoder core. */void DecParFrame ( BsBitBuffer *bitBuf, /* in: bit stream frame */ float **sampleBuf, /* out: audio frame samples */ /* sampleBuf[numChannel][frameNumSample] */ int *usedNumBit, /* out: num bits used for this frame */ int *frameBufNumSample, /* out: num samples in sampleBuf[][] */ float speedFact, /* in: speed change factor(AI 990209) */ float pitchFact /* in: pitch change factor(AI 990209) */){ CommonExit(1,"DecParFrame: dummy");}/* DecParFree() *//* Free memory allocated by parametric decoder core. */void DecParFree (void){ CommonExit(1,"DecParFree: dummy");}/* DecHvxcInit() *//* Init HVXC decoder core. */HvxcDecStatus *DecHvxcInit ( int numChannel, /* in: num audio channels */ float fSample, /* in: sampling frequency [Hz] */ float bitRate, /* in: total bit rate [bit/sec] */ char *decPara, /* in: decoder parameter string */ BsBitBuffer *bitHeader, /* in: header from bit stream */ int *frameMaxNumSample, /* out: max num samples per frame */ int *delayNumSample /* out: decoder delay (num samples) */){ CommonExit(1,"DecParInit: dummy");}/* DecHvxcFrame() *//* Decode one bit stream frame into one audio frame with *//* HVXC decoder core. */void DecHvxcFrame ( HvxcDecStatus *hvxcD, /* in: HVXC decoder status handle */ BsBitBuffer *bitBuf, /* in: bit stream frame */ float **sampleBuf, /* out: audio frame samples */ /* sampleBuf[numChannel][frameNumSample] */ int *usedNumBit, /* out: num bits used for this frame */ int *frameBufNumSample, /* out: num samples in sampleBuf[][] */ float speedFact, /* in: speed change factor(AI 990127) */ float pitchFact /* in: pitch change factor(AI 990127) */){ CommonExit(1,"DecHvxcFrame: dummy");}/* DecHvxcFree() *//* Free memory allocated by parametric decoder core. */void DecHvxcFree(HvxcDecStatus *hvxcD /* in: HVXC decoder status handle */) { CommonExit(1,"DecHvxcFree: dummy");}/* end of dec_par_dmy.c */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -