~siretart/libav/trusty

« back to all changes in this revision

Viewing changes to libavcodec/ac3enc_float.c

  • Committer: Reinhard Tartler
  • Date: 2013-10-23 03:04:17 UTC
  • mfrom: (1.3.36 sid)
  • Revision ID: siretart@tauware.de-20131023030417-1o6mpkl1l0raifjt
mergeĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 */
28
28
 
29
29
#define CONFIG_AC3ENC_FLOAT 1
 
30
#include "internal.h"
30
31
#include "ac3enc.h"
31
32
#include "eac3enc.h"
32
33
#include "kbdwin.h"
85
86
/*
86
87
 * Apply KBD window to input samples prior to MDCT.
87
88
 */
88
 
static void apply_window(DSPContext *dsp, float *output, const float *input,
89
 
                         const float *window, unsigned int len)
 
89
static void apply_window(void *dsp, float *output,
 
90
                         const float *input, const float *window,
 
91
                         unsigned int len)
90
92
{
91
 
    dsp->vector_fmul(output, input, window, len);
 
93
    AVFloatDSPContext *fdsp = dsp;
 
94
    fdsp->vector_fmul(output, input, window, len);
92
95
}
93
96
 
94
97
 
138
141
 
139
142
#if CONFIG_AC3_ENCODER
140
143
AVCodec ff_ac3_encoder = {
141
 
    .name           = "ac3",
142
 
    .type           = AVMEDIA_TYPE_AUDIO,
143
 
    .id             = CODEC_ID_AC3,
144
 
    .priv_data_size = sizeof(AC3EncodeContext),
145
 
    .init           = ff_ac3_encode_init,
146
 
    .encode         = ff_ac3_float_encode_frame,
147
 
    .close          = ff_ac3_encode_close,
148
 
    .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE},
149
 
    .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
150
 
    .priv_class = &ac3enc_class,
 
144
    .name            = "ac3",
 
145
    .type            = AVMEDIA_TYPE_AUDIO,
 
146
    .id              = AV_CODEC_ID_AC3,
 
147
    .priv_data_size  = sizeof(AC3EncodeContext),
 
148
    .init            = ff_ac3_encode_init,
 
149
    .encode2         = ff_ac3_float_encode_frame,
 
150
    .close           = ff_ac3_encode_close,
 
151
    .sample_fmts     = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP,
 
152
                                                      AV_SAMPLE_FMT_NONE },
 
153
    .long_name       = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
 
154
    .priv_class      = &ac3enc_class,
151
155
    .channel_layouts = ff_ac3_channel_layouts,
 
156
    .defaults        = ac3_defaults,
152
157
};
153
158
#endif