Go to the documentation of this file.
52 #define FFT_FIXED_32 1
58 50529027, 44278013, 39403370, 32292987, 27356480, 23729101, 20951060, 18755316
69 int temp, temp1, temp2, temp3, temp4, temp5, temp6, temp7;
71 mul = (dynrng & 0x1f) + 0x20;
78 temp1 =
src[
i+1] * mul;
80 temp2 =
src[
i+2] * mul;
82 temp1 = temp1 +
round;
84 temp3 =
src[
i+3] * mul;
85 temp2 = temp2 +
round;
88 temp4 =
src[
i + 4] * mul;
89 temp3 = temp3 +
round;
92 temp5 =
src[
i+5] * mul;
93 temp4 = temp4 +
round;
95 temp6 =
src[
i+6] * mul;
98 temp5 = temp5 +
round;
99 temp7 =
src[
i+7] * mul;
100 temp6 = temp6 +
round;
102 dst[
i+5] = temp5 >>
shift;
103 temp7 = temp7 +
round;
104 dst[
i+6] = temp6 >>
shift;
105 dst[
i+7] = temp7 >>
shift;
113 dst[
i] =
src[
i ] * mul;
114 dst[
i+1] =
src[
i+1] * mul;
115 dst[
i+2] =
src[
i+2] * mul;
116 dst[
i+3] =
src[
i+3] * mul;
117 dst[
i+4] =
src[
i+4] * mul;
118 dst[
i+5] =
src[
i+5] * mul;
119 dst[
i+6] =
src[
i+6] * mul;
120 dst[
i+7] =
src[
i+7] * mul;
130 int out_ch,
int in_ch,
int len)
135 for (
i = 0;
i <
len;
i++) {
137 for (j = 0; j < in_ch; j++) {
144 }
else if (out_ch == 1) {
145 for (
i = 0;
i <
len;
i++) {
147 for (j = 0; j < in_ch; j++)
158 {
"cons_noisegen",
"enable consistent noise generation",
OFFSET(consistent_noise_generation),
AV_OPT_TYPE_BOOL, {.i64 = 0 }, 0, 1,
PAR },
159 {
"drc_scale",
"percentage of dynamic range compression to apply",
OFFSET(drc_scale),
AV_OPT_TYPE_FLOAT, {.dbl = 1.0}, 0.0, 6.0,
PAR },
160 {
"heavy_compr",
"enable heavy dynamic range compression",
OFFSET(heavy_compression),
AV_OPT_TYPE_BOOL, {.i64 = 0 }, 0, 1,
PAR },
175 .priv_data_size =
sizeof (AC3DecodeContext),
static av_cold int init(AVCodecContext *avctx)
static const AVClass ac3_decoder_class
FFmpeg Automated Testing Environment ************************************Introduction Using FATE from your FFmpeg source directory Submitting the results to the FFmpeg result aggregation server Uploading new samples to the fate suite FATE makefile targets and variables Makefile targets Makefile variables Examples Introduction **************FATE is an extended regression suite on the client side and a means for results aggregation and presentation on the server side The first part of this document explains how you can use FATE from your FFmpeg source directory to test your ffmpeg binary The second part describes how you can run FATE to submit the results to FFmpeg’s FATE server In any way you can have a look at the publicly viewable FATE results by visiting this as it can be seen if some test on some platform broke with their recent contribution This usually happens on the platforms the developers could not test on The second part of this document describes how you can run FATE to submit your results to FFmpeg’s FATE server If you want to submit your results be sure to check that your combination of OS and compiler is not already listed on the above mentioned website In the third part you can find a comprehensive listing of FATE makefile targets and variables Using FATE from your FFmpeg source directory **********************************************If you want to run FATE on your machine you need to have the samples in place You can get the samples via the build target fate rsync Use this command from the top level source this will cause FATE to fail NOTE To use a custom wrapper to run the pass ‘ target exec’ to ‘configure’ or set the TARGET_EXEC Make variable Submitting the results to the FFmpeg result aggregation server ****************************************************************To submit your results to the server you should run fate through the shell script ‘tests fate sh’ from the FFmpeg sources This script needs to be invoked with a configuration file as its first argument tests fate sh path to fate_config A configuration file template with comments describing the individual configuration variables can be found at ‘doc fate_config sh template’ Create a configuration that suits your based on the configuration template The ‘slot’ configuration variable can be any string that is not yet but it is suggested that you name it adhering to the following pattern ‘ARCH OS COMPILER COMPILER VERSION’ The configuration file itself will be sourced in a shell therefore all shell features may be used This enables you to setup the environment as you need it for your build For your first test runs the ‘fate_recv’ variable should be empty or commented out This will run everything as normal except that it will omit the submission of the results to the server The following files should be present in $workdir as specified in the configuration it may help to try out the ‘ssh’ command with one or more ‘ v’ options You should get detailed output concerning your SSH configuration and the authentication process The only thing left is to automate the execution of the fate sh script and the synchronisation of the samples directory Uploading new samples to the fate suite *****************************************If you need a sample uploaded send a mail to samples request This is for developers who have an account on the fate suite server If you upload new samples
static void scale_coefs(int32_t *dst, const int32_t *src, int dynrng, int len)
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
static av_cold int ac3_decode_init(AVCodecContext *avctx)
AVCodec initialization.
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
const char * av_default_item_name(void *ptr)
Return the context name.
AVCodec ff_ac3_fixed_decoder
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static const int end_freq_inv_tab[8]
@ AV_SAMPLE_FMT_S16P
signed 16 bits, planar
#define i(width, name, range_min, range_max)
static av_always_inline av_const double round(double x)
AVSampleFormat
Audio sample formats.
static av_cold int ac3_decode_end(AVCodecContext *avctx)
Uninitialize the AC-3 decoder.
static const AVOption options[]
static void ac3_downmix_c_fixed16(int16_t **samples, int16_t **matrix, int out_ch, int in_ch, int len)
Downmix samples from original signal to stereo or mono (this is for 16-bit samples and fixed point de...
const char * name
Name of the codec implementation.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option keep it simple and lowercase description are in without and describe what they for example set the foo of the bar offset is the offset of the field in your see the OFFSET() macro
static av_const int sign_extend(int val, unsigned bits)
static int shift(int a, int b)
static int ac3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Decode a single AC-3 frame.