Go to the documentation of this file.
28 #ifndef AVCODEC_AC3ENC_H
29 #define AVCODEC_AC3ENC_H
39 #ifndef CONFIG_AC3ENC_FLOAT
40 #define CONFIG_AC3ENC_FLOAT 0
43 #define OFFSET(param) offsetof(AC3EncodeContext, options.param)
44 #define AC3ENC_PARAM (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
46 #define AC3ENC_TYPE_AC3_FIXED 0
47 #define AC3ENC_TYPE_AC3 1
48 #define AC3ENC_TYPE_EAC3 2
50 #if CONFIG_AC3ENC_FLOAT
51 #define AC3_NAME(x) ff_ac3_float_ ## x
52 #define MAC_COEF(d,a,b) ((d)+=(a)*(b))
53 #define COEF_MIN (-16777215.0/16777216.0)
54 #define COEF_MAX ( 16777215.0/16777216.0)
55 #define NEW_CPL_COORD_THRESHOLD 0.03
60 #define AC3_NAME(x) ff_ac3_fixed_ ## x
61 #define MAC_COEF(d,a,b) MAC64(d,a,b)
62 #define COEF_MIN -16777215
63 #define COEF_MAX 16777215
64 #define NEW_CPL_COORD_THRESHOLD 503317
71 #define AC3ENC_OPT_NONE -1
72 #define AC3ENC_OPT_AUTO -1
73 #define AC3ENC_OPT_OFF 0
74 #define AC3ENC_OPT_ON 1
75 #define AC3ENC_OPT_NOT_INDICATED 0
76 #define AC3ENC_OPT_MODE_ON 2
77 #define AC3ENC_OPT_MODE_OFF 1
80 #define AC3ENC_OPT_LARGE_ROOM 1
81 #define AC3ENC_OPT_SMALL_ROOM 2
82 #define AC3ENC_OPT_DOWNMIX_LTRT 1
83 #define AC3ENC_OPT_DOWNMIX_LORO 2
84 #define AC3ENC_OPT_ADCONV_STANDARD 0
85 #define AC3ENC_OPT_ADCONV_HDCD 1
301 int buf_size,
void *
data);
303 int buf_size,
void *
data);