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

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

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 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
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/vp6.c ('k') | source/patched-ffmpeg-mt/libavcodec/vp8.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * @file 2 * @file
3 * VP6 DSP-oriented functions 3 * VP6 DSP-oriented functions
4 * 4 *
5 * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org> 5 * Copyright (C) 2006 Aurelien Jacobs <aurel@gnuage.org>
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
11 * License as published by the Free Software Foundation; either 11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version. 12 * version 2.1 of the License, or (at your option) any later version.
13 * 13 *
14 * FFmpeg is distributed in the hope that it will be useful, 14 * FFmpeg is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details. 17 * Lesser General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU Lesser General Public 19 * You should have received a copy of the GNU Lesser General Public
20 * License along with FFmpeg; if not, write to the Free Software 20 * License along with FFmpeg; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 */ 22 */
23 23
24 #include "libavutil/common.h" 24 #include "libavutil/common.h"
25 #include "dsputil.h" 25 #include "vp56dsp.h"
26 26
27 27
28 void ff_vp6_filter_diag4_c(uint8_t *dst, uint8_t *src, int stride, 28 void ff_vp6_filter_diag4_c(uint8_t *dst, uint8_t *src, int stride,
29 const int16_t *h_weights, const int16_t *v_weights) 29 const int16_t *h_weights, const int16_t *v_weights)
30 { 30 {
31 int x, y; 31 int x, y;
32 int tmp[8*11]; 32 int tmp[8*11];
33 int *t = tmp; 33 int *t = tmp;
34 34
35 src -= stride; 35 src -= stride;
(...skipping 14 matching lines...) Expand all
50 for (x=0; x<8; x++) { 50 for (x=0; x<8; x++) {
51 dst[x] = av_clip_uint8(( t[x-8 ] * v_weights[0] 51 dst[x] = av_clip_uint8(( t[x-8 ] * v_weights[0]
52 + t[x ] * v_weights[1] 52 + t[x ] * v_weights[1]
53 + t[x+8 ] * v_weights[2] 53 + t[x+8 ] * v_weights[2]
54 + t[x+16] * v_weights[3] + 64) >> 7); 54 + t[x+16] * v_weights[3] + 64) >> 7);
55 } 55 }
56 dst += stride; 56 dst += stride;
57 t += 8; 57 t += 8;
58 } 58 }
59 } 59 }
OLDNEW
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/vp6.c ('k') | source/patched-ffmpeg-mt/libavcodec/vp8.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698