Go to the documentation of this file.
28 #ifndef AVCODEC_AC3ENC_H
29 #define AVCODEC_AC3ENC_H
44 #ifndef CONFIG_AC3ENC_FLOAT
45 #define CONFIG_AC3ENC_FLOAT 0
48 #define OFFSET(param) offsetof(AC3EncodeContext, options.param)
49 #define AC3ENC_PARAM (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
51 #define AC3ENC_TYPE_AC3_FIXED 0
52 #define AC3ENC_TYPE_AC3 1
53 #define AC3ENC_TYPE_EAC3 2
55 #if CONFIG_AC3ENC_FLOAT
56 #define AC3_NAME(x) ff_ac3_float_ ## x
57 #define MAC_COEF(d,a,b) ((d)+=(a)*(b))
58 #define COEF_MIN (-16777215.0/16777216.0)
59 #define COEF_MAX ( 16777215.0/16777216.0)
60 #define NEW_CPL_COORD_THRESHOLD 0.03
65 #define AC3_NAME(x) ff_ac3_fixed_ ## x
66 #define MAC_COEF(d,a,b) MAC64(d,a,b)
67 #define COEF_MIN -16777215
68 #define COEF_MAX 16777215
69 #define NEW_CPL_COORD_THRESHOLD 503317
76 #define AC3ENC_OPT_NONE -1
77 #define AC3ENC_OPT_AUTO -1
78 #define AC3ENC_OPT_OFF 0
79 #define AC3ENC_OPT_ON 1
80 #define AC3ENC_OPT_NOT_INDICATED 0
81 #define AC3ENC_OPT_MODE_ON 2
82 #define AC3ENC_OPT_MODE_OFF 1
85 #define AC3ENC_OPT_LARGE_ROOM 1
86 #define AC3ENC_OPT_SMALL_ROOM 2
87 #define AC3ENC_OPT_DOWNMIX_LTRT 1
88 #define AC3ENC_OPT_DOWNMIX_LORO 2
89 #define AC3ENC_OPT_ADCONV_STANDARD 0
90 #define AC3ENC_OPT_ADCONV_HDCD 1