Code Search for Developers
 
 
  

envelope.h from NeoEngineNG at Krugle


Show envelope.h syntax highlighted

/********************************************************************
 *                                                                  *
 * 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-2002             *
 * by the XIPHOPHORUS Company http://www.xiph.org/                  *
 *                                                                  *
 ********************************************************************

 function: PCM data envelope analysis and manipulation
 last mod: $Id: envelope.h,v 1.1 2004/03/17 18:22:56 arithon Exp $

 ********************************************************************/

#ifndef _V_ENVELOPE_
#define _V_ENVELOPE_

#include "mdct.h"

#define VE_PRE    16
#define VE_WIN    4
#define VE_POST   2
#define VE_AMP    (VE_PRE+VE_POST-1)

#define VE_BANDS  7
#define VE_NEARDC 15

#define VE_MINSTRETCH 2   /* a bit less than short block */
#define VE_MAXSTRETCH 12  /* one-third full block */

typedef struct {
  float ampbuf[VE_AMP];
  int   ampptr;

  float nearDC[VE_NEARDC];
  float nearDC_acc;
  float nearDC_partialacc;
  int   nearptr;

} envelope_filter_state;

typedef struct {
  int begin;
  int end;
  float *window;
  float total;
} envelope_band;

typedef struct {
  int ch;
  int winlength;
  int searchstep;
  float minenergy;

  mdct_lookup  mdct;
  float       *mdct_win;

  envelope_band          band[VE_BANDS];
  envelope_filter_state *filter;
  int   stretch;

  int                   *mark;

  long storage;
  long current;
  long curmark;
  long cursor;
} 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);
extern void _ve_envelope_shift(envelope_lookup *e,long shift);
extern int  _ve_envelope_mark(vorbis_dsp_state *v);


#endif





See more files for this project here

NeoEngineNG

NeoenEngine NG (Next Generation) is the evolution of neoengine one,it\'s a different development from NeoEngine2, it\'s a direct inherits from NeoEngine one.\n

Project homepage: http://sourceforge.net/projects/neoengineng
Programming language(s): C,C++
License: other

  books/
    coupled/
      res_books_stereo.h
    floor/
      floor_books.h
    uncoupled/
      res_books_uncoupled.h
  modes/
    floor_all.h
    psych_11.h
    psych_16.h
    psych_44.h
    psych_8.h
    residue_16.h
    residue_44.h
    residue_44u.h
    residue_8.h
    setup_11.h
    setup_16.h
    setup_22.h
    setup_32.h
    setup_44.h
    setup_44u.h
    setup_8.h
    setup_X.h
  analysis.c
  backends.h
  barkmel.c
  bitrate.c
  bitrate.h
  block.c
  codebook.c
  codebook.h
  codec.h
  codec_internal.h
  envelope.c
  envelope.h
  floor0.c
  floor1.c
  highlevel.h
  info.c
  lookup.c
  lookup.h
  lookup_data.h
  lookups.pl
  lpc.c
  lpc.h
  lsp.c
  lsp.h
  mapping0.c
  masking.h
  mdct.c
  mdct.h
  misc.h
  os.h
  psy.c
  psy.h
  psytune.c
  registry.c
  registry.h
  res0.c
  scales.h
  sharedbook.c
  smallft.c
  smallft.h
  synthesis.c
  tone.c
  vorbisenc.c
  vorbisenc.h
  vorbisfile.c
  vorbisfile.h
  window.c
  window.h