123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- #ifndef _V_CODECI_H_
- #define _V_CODECI_H_
- #include "envelope.h"
- #include "codebook.h"
- #define BLOCKTYPE_IMPULSE 0
- #define BLOCKTYPE_PADDING 1
- #define BLOCKTYPE_TRANSITION 0
- #define BLOCKTYPE_LONG 1
- #define PACKETBLOBS 15
- typedef struct vorbis_block_internal{
- float **pcmdelay;
- float ampmax;
- int blocktype;
- ogg_uint32_t packetblob_markers[PACKETBLOBS];
- } vorbis_block_internal;
- typedef void vorbis_look_floor;
- typedef void vorbis_look_residue;
- typedef void vorbis_look_transform;
- typedef struct {
- int blockflag;
- int windowtype;
- int transformtype;
- int mapping;
- } vorbis_info_mode;
- typedef void vorbis_info_floor;
- typedef void vorbis_info_residue;
- typedef void vorbis_info_mapping;
- #include "psy.h"
- #include "bitrate.h"
- typedef struct backend_lookup_state {
-
- envelope_lookup *ve;
- float *window[2];
- vorbis_look_transform **transform[2];
- drft_lookup fft_look[2];
- int modebits;
- vorbis_look_floor **flr;
- vorbis_look_residue **residue;
- vorbis_look_psy *psy;
- vorbis_look_psy_global *psy_g_look;
-
- unsigned char *header;
- unsigned char *header1;
- unsigned char *header2;
- bitrate_manager_state bms;
- } backend_lookup_state;
- #include "highlevel.h"
- typedef struct codec_setup_info {
-
- long blocksizes[2];
-
- int modes;
- int maps;
- int floors;
- int residues;
- int books;
- int psys;
- vorbis_info_mode *mode_param[64];
- int map_type[64];
- vorbis_info_mapping *map_param[64];
- int floor_type[64];
- vorbis_info_floor *floor_param[64];
- int residue_type[64];
- vorbis_info_residue *residue_param[64];
- static_codebook *book_param[256];
- codebook *fullbooks;
- vorbis_info_psy *psy_param[4];
- vorbis_info_psy_global psy_g_param;
- bitrate_manager_info bi;
- highlevel_encode_setup hi;
-
- } codec_setup_info;
- extern vorbis_look_psy_global *_vp_global_look(vorbis_info *vi);
- extern void _vp_global_free(vorbis_look_psy_global *look);
- #endif
|