blob: 59079a6876ff68dd0bc4187c02b3ec9f3ae4b550 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001 *
* by the XIPHOPHORUS Company http://www.xiph.org/ *
********************************************************************
function: PCM data envelope analysis and manipulation
last mod: $Id: envelope.h,v 1.16 2001/02/26 03:50:41 xiphmont Exp $
********************************************************************/
#ifndef _V_ENVELOPE_
#define _V_ENVELOPE_
#include "iir.h"
#include "smallft.h"
typedef struct {
int ch;
int winlength;
int searchstep;
float minenergy;
IIR_state *iir;
float **filtered;
long storage;
long current;
long lastmark;
} 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
|