pac3_dec.h

来自「瑞星微公司RK27XX系列芯片的SDK开发包」· C头文件 代码 · 共 71 行

H
71
字号
#ifndef _PAC3_DEC_H_
#define _PAC3_DEC_H_

#include "../buffer/buffer.h"


//--------------------------------------------



#define  AC3LENGTH (8192+50)


typedef struct
{
    long           status;


    short     AC3left[AC3LENGTH];
    short     AC3right[AC3LENGTH];

    BufferState *pOutput;
    int buffer_ptr[2];

    //unsigned short usValid;

    unsigned short usSampleRate;

    unsigned char ucChannels;

    //unsigned char ucIsVBR;

    //unsigned long ulFirstFrame;

    unsigned long ulLength;

    // The number of samples in each encoded block of audio.
    //unsigned short usSamplesPerBlock; // block

    // The length of the file in milliseconds.
    unsigned long ulTimeLength;

    unsigned long ulBitRate;

    // The number of samples that have been encoded/decoded.
    unsigned long ulTimePos;



} tAC3;

typedef void a52_state_t;

typedef char int8_t;
typedef short int16_t;
typedef long int32_t;
typedef __int64 int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;

typedef int32_t sample_t;
typedef int32_t level_t;

extern a52_state_t * a52_init(uint32_t mm_accel);
extern void a52_free(a52_state_t * state);
extern int a52_syncinfo(uint8_t * buf, int * flags,
                            int * sample_rate, int * bit_rate);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?