1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /********************************************************************
- * *
- * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
- * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
- * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
- * PLEASE READ THESE TERMS DISTRIBUTING. *
- * *
- * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000 *
- * by Monty <monty@xiph.org> and The XIPHOPHORUS Company *
- * http://www.xiph.org/ *
- * *
- ********************************************************************
- function: PCM data envelope analysis and manipulation
- last mod: $Id: envelope.h,v 1.9.2.1 2000/08/31 09:00:00 xiphmont Exp $
- ********************************************************************/
- #ifndef _V_ENVELOPE_
- #define _V_ENVELOPE_
- #include "iir.h"
- #include "smallft.h"
- #define EORDER 16
- typedef struct {
- int ch;
- int winlength;
- int searchstep;
- float minenergy;
- IIR_state *iir;
- float **filtered;
- long storage;
- long current;
- drft_lookup drft;
- float *window;
- } envelope_lookup;
- extern void _ve_envelope_init(envelope_lookup *e,vorbis_info *vi);
- extern void _ve_envelope_clear(envelope_lookup *e);
- extern long _ve_envelope_search(vorbis_dsp_state *v,long searchpoint);
- extern void _ve_envelope_shift(envelope_lookup *e,long shift);
- #endif
|