Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Side by Side Diff: patched-ffmpeg-mt/libavcodec/dct.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698