Go to the documentation of this file.
28 #ifndef AVCODEC_AC3ENC_H
29 #define AVCODEC_AC3ENC_H
41 #ifndef CONFIG_AC3ENC_FLOAT
42 #define CONFIG_AC3ENC_FLOAT 0
45 #define OFFSET(param) offsetof(AC3EncodeContext, options.param)
46 #define AC3ENC_PARAM (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
48 #define AC3ENC_TYPE_AC3_FIXED 0
49 #define AC3ENC_TYPE_AC3 1
50 #define AC3ENC_TYPE_EAC3 2
52 #if CONFIG_AC3ENC_FLOAT
53 #define AC3_NAME(x) ff_ac3_float_ ## x
54 #define MAC_COEF(d,a,b) ((d)+=(a)*(b))
55 #define COEF_MIN (-16777215.0/16777216.0)
56 #define COEF_MAX ( 16777215.0/16777216.0)
57 #define NEW_CPL_COORD_THRESHOLD 0.03
62 #define AC3_NAME(x) ff_ac3_fixed_ ## x
63 #define MAC_COEF(d,a,b) MAC64(d,a,b)
64 #define COEF_MIN -16777215
65 #define COEF_MAX 16777215
66 #define NEW_CPL_COORD_THRESHOLD 503317
73 #define AC3ENC_OPT_NONE -1
74 #define AC3ENC_OPT_AUTO -1
75 #define AC3ENC_OPT_OFF 0
76 #define AC3ENC_OPT_ON 1
77 #define AC3ENC_OPT_NOT_INDICATED 0
78 #define AC3ENC_OPT_MODE_ON 2
79 #define AC3ENC_OPT_MODE_OFF 1
82 #define AC3ENC_OPT_LARGE_ROOM 1
83 #define AC3ENC_OPT_SMALL_ROOM 2
84 #define AC3ENC_OPT_DOWNMIX_LTRT 1
85 #define AC3ENC_OPT_DOWNMIX_LORO 2
86 #define AC3ENC_OPT_ADCONV_STANDARD 0
87 #define AC3ENC_OPT_ADCONV_HDCD 1