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

Side by Side Diff: patched-ffmpeg-mt/libavcodec/ppc/vc1dsp_altivec.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 * VC-1 and WMV3 decoder - DSP functions AltiVec-optimized 2 * VC-1 and WMV3 decoder - DSP functions AltiVec-optimized
3 * Copyright (c) 2006 Konstantin Shishkov 3 * Copyright (c) 2006 Konstantin Shishkov
4 * 4 *
5 * This file is part of FFmpeg. 5 * This file is part of FFmpeg.
6 * 6 *
7 * FFmpeg is free software; you can redistribute it and/or 7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version. 10 * version 2.1 of the License, or (at your option) any later version.
11 * 11 *
12 * FFmpeg is distributed in the hope that it will be useful, 12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details. 15 * Lesser General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Lesser General Public 17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software 18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */ 20 */
21 21
22 #include "libavcodec/dsputil.h" 22 #include "libavcodec/dsputil.h"
23 23
24 #include "util_altivec.h" 24 #include "util_altivec.h"
25 #include "dsputil_altivec.h"
25 26
26 // main steps of 8x8 transform 27 // main steps of 8x8 transform
27 #define STEP8(s0, s1, s2, s3, s4, s5, s6, s7, vec_rnd) \ 28 #define STEP8(s0, s1, s2, s3, s4, s5, s6, s7, vec_rnd) \
28 do { \ 29 do { \
29 t0 = vec_sl(vec_add(s0, s4), vec_2); \ 30 t0 = vec_sl(vec_add(s0, s4), vec_2); \
30 t0 = vec_add(vec_sl(t0, vec_1), t0); \ 31 t0 = vec_add(vec_sl(t0, vec_1), t0); \
31 t0 = vec_add(t0, vec_rnd); \ 32 t0 = vec_add(t0, vec_rnd); \
32 t1 = vec_sl(vec_sub(s0, s4), vec_2); \ 33 t1 = vec_sl(vec_sub(s0, s4), vec_2); \
33 t1 = vec_add(vec_sl(t1, vec_1), t1); \ 34 t1 = vec_add(vec_sl(t1, vec_1), t1); \
34 t1 = vec_add(t1, vec_rnd); \ 35 t1 = vec_add(t1, vec_rnd); \
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 ADD (dest, src1, perm1) dest += stride; 320 ADD (dest, src1, perm1) dest += stride;
320 ADD (dest, src2, perm0) dest += stride; 321 ADD (dest, src2, perm0) dest += stride;
321 ADD (dest, src3, perm1) 322 ADD (dest, src3, perm1)
322 } 323 }
323 324
324 325
325 void vc1dsp_init_altivec(DSPContext* dsp, AVCodecContext *avctx) { 326 void vc1dsp_init_altivec(DSPContext* dsp, AVCodecContext *avctx) {
326 dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec; 327 dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec;
327 dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec; 328 dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec;
328 } 329 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698