* G723.1 compatible decoder data tables
*/
-#ifndef AVCODEC_G729_DATA_H
-#define AVCODEC_G729_DATA_H
+#ifndef AVCODEC_G723_1_DATA_H
+#define AVCODEC_G723_1_DATA_H
#include <stdint.h>
/**
* G723.1 frame types
*/
-typedef enum {
- ActiveFrame, ///< Active speech
- SIDFrame, ///< Silence Insertion Descriptor frame
- UntransmittedFrame
+typedef enum FrameType {
+ ACTIVE_FRAME, ///< Active speech
+ SID_FRAME, ///< Silence Insertion Descriptor frame
+ UNTRANSMITTED_FRAME
} FrameType;
-static const uint8_t frame_size[4] = {24, 20, 4, 1};
+static const uint8_t frame_size[4] = { 24, 20, 4, 1 };
-typedef enum {
- Rate6k3,
- Rate5k3
+typedef enum Rate {
+ RATE_6300,
+ RATE_5300
} Rate;
/**
* G723.1 unpacked data subframe
*/
-typedef struct {
+typedef struct G723_1_Subframe {
int ad_cb_lag; ///< adaptive codebook lag
int ad_cb_gain;
int dirac_train;
{16384, 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32}
};
-#endif /* AVCODEC_G729_DATA_H */
+#endif /* AVCODEC_G723_1_DATA_H */