| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (I)DCT Transforms | 2 * (I)DCT Transforms |
| 3 * Copyright (c) 2009 Peter Ross <pross@xvid.org> | 3 * Copyright (c) 2009 Peter Ross <pross@xvid.org> |
| 4 * Copyright (c) 2010 Alex Converse <alex.converse@gmail.com> | 4 * Copyright (c) 2010 Alex Converse <alex.converse@gmail.com> |
| 5 * Copyright (c) 2010 Vitor Sessak | 5 * Copyright (c) 2010 Vitor Sessak |
| 6 * | 6 * |
| 7 * This file is part of FFmpeg. | 7 * This file is part of FFmpeg. |
| 8 * | 8 * |
| 9 * FFmpeg is free software; you can redistribute it and/or | 9 * FFmpeg is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * @file libavcodec/dct.c | 25 * @file libavcodec/dct.c |
| 26 * (Inverse) Discrete Cosine Transforms. These are also known as the | 26 * (Inverse) Discrete Cosine Transforms. These are also known as the |
| 27 * type II and type III DCTs respectively. | 27 * type II and type III DCTs respectively. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include <math.h> | 30 #include <math.h> |
| 31 #include "dsputil.h" | 31 #include "libavutil/mathematics.h" |
| 32 #include "fft.h" |
| 32 | 33 |
| 33 av_cold int ff_dct_init(DCTContext *s, int nbits, int inverse) | 34 av_cold int ff_dct_init(DCTContext *s, int nbits, int inverse) |
| 34 { | 35 { |
| 35 int n = 1 << nbits; | 36 int n = 1 << nbits; |
| 36 int i; | 37 int i; |
| 37 | 38 |
| 38 s->nbits = nbits; | 39 s->nbits = nbits; |
| 39 s->inverse = inverse; | 40 s->inverse = inverse; |
| 40 | 41 |
| 41 ff_init_ff_cos_tabs(nbits+2); | 42 ff_init_ff_cos_tabs(nbits+2); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 void ff_dct_calc(DCTContext *s, FFTSample *data) | 131 void ff_dct_calc(DCTContext *s, FFTSample *data) |
| 131 { | 132 { |
| 132 ff_dct_calc_c(s, data); | 133 ff_dct_calc_c(s, data); |
| 133 } | 134 } |
| 134 | 135 |
| 135 av_cold void ff_dct_end(DCTContext *s) | 136 av_cold void ff_dct_end(DCTContext *s) |
| 136 { | 137 { |
| 137 ff_rdft_end(&s->rdft); | 138 ff_rdft_end(&s->rdft); |
| 138 av_free(s->csc2); | 139 av_free(s->csc2); |
| 139 } | 140 } |
| OLD | NEW |