diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-03-20 13:31:36 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-03-22 21:08:30 -0400 |
commit | e6e9823488b4cf42778411f1239592f0787e121e (patch) | |
tree | dcdb0a902e921957a3e0b912c56a73d7fb67422d /libavcodec/dsputil.h | |
parent | e971d81364e93feae8c399075a3be2643192e031 (diff) | |
download | ffmpeg-e6e9823488b4cf42778411f1239592f0787e121e.tar.gz |
Add apply_window_int16() to DSPContext with x86-optimized versions and use it
in the ac3_fixed encoder.
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 18885b3b79..a5ae68ab8b 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -524,6 +524,20 @@ typedef struct DSPContext { */ int32_t (*scalarproduct_and_madd_int16)(int16_t *v1/*align 16*/, const int16_t *v2, const int16_t *v3, int len, int mul); + /** + * Apply symmetric window in 16-bit fixed-point. + * @param output destination array + * constraints: 16-byte aligned + * @param input source array + * constraints: 16-byte aligned + * @param window window array + * constraints: 16-byte aligned, at least len/2 elements + * @param len full window length + * constraints: multiple of ? greater than zero + */ + void (*apply_window_int16)(int16_t *output, const int16_t *input, + const int16_t *window, unsigned int len); + /* rv30 functions */ qpel_mc_func put_rv30_tpel_pixels_tab[4][16]; qpel_mc_func avg_rv30_tpel_pixels_tab[4][16]; |