Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
12c1b180
Commit
12c1b180
authored
12 years ago
by
Scott LaVarnway
Committed by
Gerrit Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Added rtcd support vp8_sad16x3 and vp8_sad3x16" into experimental
parents
97096f5f
d36ecb42
v1.14.0-linphone
1.4.X
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m29-baseline
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
vp9-preview
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
vp8/common/findnearmv.c
+20
-3
vp8/common/findnearmv.c
vp8/common/rtcd_defs.sh
+9
-0
vp8/common/rtcd_defs.sh
vp8/common/sadmxn.h
+37
-0
vp8/common/sadmxn.h
vp8/encoder/sad_c.c
+1
-43
vp8/encoder/sad_c.c
vp8/vp8_common.mk
+1
-0
vp8/vp8_common.mk
with
68 additions
and
46 deletions
vp8/common/findnearmv.c
+
20
−
3
View file @
12c1b180
...
...
@@ -10,7 +10,7 @@
#include
"findnearmv.h"
#include
"vp8/
encoder/variance
.h"
#include
"vp8/
common/sadmxn
.h"
#include
<limits.h>
const
unsigned
char
vp8_mbsplit_offset
[
4
][
16
]
=
{
...
...
@@ -199,6 +199,23 @@ vp8_prob *vp8_mv_ref_probs(VP8_COMMON *pc,
}
#if CONFIG_NEWBESTREFMV
unsigned
int
vp8_sad3x16_c
(
const
unsigned
char
*
src_ptr
,
int
src_stride
,
const
unsigned
char
*
ref_ptr
,
int
ref_stride
,
int
max_sad
)
{
return
sad_mx_n_c
(
src_ptr
,
src_stride
,
ref_ptr
,
ref_stride
,
3
,
16
);
}
unsigned
int
vp8_sad16x3_c
(
const
unsigned
char
*
src_ptr
,
int
src_stride
,
const
unsigned
char
*
ref_ptr
,
int
ref_stride
,
int
max_sad
)
{
return
sad_mx_n_c
(
src_ptr
,
src_stride
,
ref_ptr
,
ref_stride
,
16
,
3
);
}
/* check a list of motion vectors by sad score using a number rows of pixels
* above and a number cols of pixels in the left to select the one with best
* score to use as ref motion vector
...
...
@@ -261,10 +278,10 @@ void vp8_find_best_ref_mvs(MACROBLOCKD *xd,
sad
=
0
;
if
(
xd
->
up_available
)
sad
+=
vp8_sad16x3
_c
(
above_src
,
xd
->
dst
.
y_stride
,
sad
+=
vp8_sad16x3
(
above_src
,
xd
->
dst
.
y_stride
,
above_ref
+
offset
,
ref_y_stride
,
INT_MAX
);
if
(
xd
->
left_available
)
sad
+=
vp8_sad3x16
_c
(
left_src
,
xd
->
dst
.
y_stride
,
sad
+=
vp8_sad3x16
(
left_src
,
xd
->
dst
.
y_stride
,
left_ref
+
offset
,
ref_y_stride
,
INT_MAX
);
// Add the entry to our list and then resort the list on score.
sad_scores
[
i
]
=
sad
;
...
...
This diff is collapsed.
Click to expand it.
vp8/common/rtcd_defs.sh
+
9
−
0
View file @
12c1b180
...
...
@@ -174,6 +174,15 @@ vp8_loop_filter_simple_bh_sse2=vp8_loop_filter_bhs_sse2
vp8_loop_filter_simple_bh_media
=
vp8_loop_filter_bhs_armv6
vp8_loop_filter_simple_bh_neon
=
vp8_loop_filter_bhs_neon
#
# sad 16x3, 3x16
#
prototype unsigned int vp8_sad16x3
"const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, int max_sad"
specialize vp8_sad16x3
prototype unsigned int vp8_sad3x16
"const unsigned char *src_ptr, int src_stride, const unsigned char *ref_ptr, int ref_stride, int max_sad"
specialize vp8_sad3x16
#
# Encoder functions below this point.
#
...
...
This diff is collapsed.
Click to expand it.
vp8/common/sadmxn.h
0 → 100644
+
37
−
0
View file @
12c1b180
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef __INC_SAD_H
#define __INC_SAD_H
static
__inline
unsigned
int
sad_mx_n_c
(
const
unsigned
char
*
src_ptr
,
int
src_stride
,
const
unsigned
char
*
ref_ptr
,
int
ref_stride
,
int
m
,
int
n
)
{
int
r
,
c
;
unsigned
int
sad
=
0
;
for
(
r
=
0
;
r
<
n
;
r
++
)
{
for
(
c
=
0
;
c
<
m
;
c
++
)
{
sad
+=
abs
(
src_ptr
[
c
]
-
ref_ptr
[
c
]);
}
src_ptr
+=
src_stride
;
ref_ptr
+=
ref_stride
;
}
return
sad
;
}
#endif
This diff is collapsed.
Click to expand it.
vp8/encoder/sad_c.c
+
1
−
43
View file @
12c1b180
...
...
@@ -10,33 +10,10 @@
#include
<stdlib.h>
#include
"vp8/common/sadmxn.h"
#include
"vpx_ports/config.h"
#include
"vpx/vpx_integer.h"
static
__inline
unsigned
int
sad_mx_n_c
(
const
unsigned
char
*
src_ptr
,
int
src_stride
,
const
unsigned
char
*
ref_ptr
,
int
ref_stride
,
int
m
,
int
n
)
{
int
r
,
c
;
unsigned
int
sad
=
0
;
for
(
r
=
0
;
r
<
n
;
r
++
)
{
for
(
c
=
0
;
c
<
m
;
c
++
)
{
sad
+=
abs
(
src_ptr
[
c
]
-
ref_ptr
[
c
]);
}
src_ptr
+=
src_stride
;
ref_ptr
+=
ref_stride
;
}
return
sad
;
}
unsigned
int
vp8_sad32x32_c
(
const
unsigned
char
*
src_ptr
,
int
src_stride
,
const
unsigned
char
*
ref_ptr
,
...
...
@@ -97,25 +74,6 @@ unsigned int vp8_sad4x4_c(
return
sad_mx_n_c
(
src_ptr
,
src_stride
,
ref_ptr
,
ref_stride
,
4
,
4
);
}
#if CONFIG_NEWBESTREFMV
unsigned
int
vp8_sad3x16_c
(
const
unsigned
char
*
src_ptr
,
int
src_stride
,
const
unsigned
char
*
ref_ptr
,
int
ref_stride
,
int
max_sad
){
return
sad_mx_n_c
(
src_ptr
,
src_stride
,
ref_ptr
,
ref_stride
,
3
,
16
);
}
unsigned
int
vp8_sad16x3_c
(
const
unsigned
char
*
src_ptr
,
int
src_stride
,
const
unsigned
char
*
ref_ptr
,
int
ref_stride
,
int
max_sad
){
return
sad_mx_n_c
(
src_ptr
,
src_stride
,
ref_ptr
,
ref_stride
,
16
,
3
);
}
#endif
void
vp8_sad32x32x3_c
(
const
unsigned
char
*
src_ptr
,
int
src_stride
,
const
unsigned
char
*
ref_ptr
,
...
...
This diff is collapsed.
Click to expand it.
vp8/vp8_common.mk
+
1
−
0
View file @
12c1b180
...
...
@@ -53,6 +53,7 @@ VP8_COMMON_SRCS-yes += common/reconintra.h
VP8_COMMON_SRCS-yes
+=
common/reconintra4x4.h
VP8_COMMON_SRCS-yes
+=
common/rtcd.c
VP8_COMMON_SRCS-yes
+=
common/rtcd_defs.sh
VP8_COMMON_SRCS-yes
+=
common/sadmxn.h
VP8_COMMON_SRCS-yes
+=
common/seg_common.h
VP8_COMMON_SRCS-yes
+=
common/seg_common.c
VP8_COMMON_SRCS-yes
+=
common/setupintrarecon.h
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets