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

Side by Side Diff: source/libvpx/vp9/encoder/x86/vp9_x86_csystemdependent.c

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11
12 #include "vpx_ports/config.h"
13 #include "vpx_ports/x86.h"
14 #include "vp9/encoder/vp9_variance.h"
15 #include "vp9/encoder/vp9_onyx_int.h"
16 #include "vp9/encoder/x86/vp9_dct_mmx.h"
17
18 // TODO(jimbankoski) Consider rewriting the c to take the same values rather
19 // than going through these pointer conversions
20 #if HAVE_MMX
21 void vp9_short_fdct8x4_mmx(short *input, short *output, int pitch) {
22 vp9_short_fdct4x4_mmx(input, output, pitch);
23 vp9_short_fdct4x4_mmx(input + 4, output + 16, pitch);
24 }
25
26 int vp9_mbblock_error_mmx_impl(short *coeff_ptr, short *dcoef_ptr, int dc);
27 int vp9_mbblock_error_mmx(MACROBLOCK *mb, int dc) {
28 short *coeff_ptr = mb->block[0].coeff;
29 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff;
30 return vp9_mbblock_error_mmx_impl(coeff_ptr, dcoef_ptr, dc);
31 }
32
33 int vp9_mbuverror_mmx_impl(short *s_ptr, short *d_ptr);
34 int vp9_mbuverror_mmx(MACROBLOCK *mb) {
35 short *s_ptr = &mb->coeff[256];
36 short *d_ptr = &mb->e_mbd.dqcoeff[256];
37 return vp9_mbuverror_mmx_impl(s_ptr, d_ptr);
38 }
39
40 void vp9_subtract_b_mmx_impl(unsigned char *z, int src_stride,
41 short *diff, unsigned char *predictor,
42 int pitch);
43 void vp9_subtract_b_mmx(BLOCK *be, BLOCKD *bd, int pitch) {
44 unsigned char *z = *(be->base_src) + be->src;
45 unsigned int src_stride = be->src_stride;
46 short *diff = &be->src_diff[0];
47 unsigned char *predictor = &bd->predictor[0];
48 vp9_subtract_b_mmx_impl(z, src_stride, diff, predictor, pitch);
49 }
50
51 #endif
52
53 #if HAVE_SSE2
54 int vp9_mbblock_error_xmm_impl(short *coeff_ptr, short *dcoef_ptr, int dc);
55 int vp9_mbblock_error_xmm(MACROBLOCK *mb, int dc) {
56 short *coeff_ptr = mb->block[0].coeff;
57 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff;
58 return vp9_mbblock_error_xmm_impl(coeff_ptr, dcoef_ptr, dc);
59 }
60
61 int vp9_mbuverror_xmm_impl(short *s_ptr, short *d_ptr);
62 int vp9_mbuverror_xmm(MACROBLOCK *mb) {
63 short *s_ptr = &mb->coeff[256];
64 short *d_ptr = &mb->e_mbd.dqcoeff[256];
65 return vp9_mbuverror_xmm_impl(s_ptr, d_ptr);
66 }
67
68 void vp9_subtract_b_sse2_impl(unsigned char *z, int src_stride,
69 short *diff, unsigned char *predictor,
70 int pitch);
71 void vp9_subtract_b_sse2(BLOCK *be, BLOCKD *bd, int pitch) {
72 unsigned char *z = *(be->base_src) + be->src;
73 unsigned int src_stride = be->src_stride;
74 short *diff = &be->src_diff[0];
75 unsigned char *predictor = &bd->predictor[0];
76 vp9_subtract_b_sse2_impl(z, src_stride, diff, predictor, pitch);
77 }
78
79 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698