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
19d42de3
Commit
19d42de3
authored
11 years ago
by
Deb Mukherjee
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Adds a source variance computation function"
parents
0497b8d7
dbea726d
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
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
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
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
vp9/common/vp9_common_data.c
+3
-0
vp9/common/vp9_common_data.c
vp9/common/vp9_common_data.h
+1
-0
vp9/common/vp9_common_data.h
vp9/encoder/vp9_encodeframe.c
+19
-2
vp9/encoder/vp9_encodeframe.c
with
23 additions
and
2 deletions
vp9/common/vp9_common_data.c
+
3
−
0
View file @
19d42de3
...
...
@@ -35,6 +35,9 @@ const int num_8x8_blocks_high_lookup[BLOCK_SIZE_TYPES] =
const
int
size_group_lookup
[
BLOCK_SIZE_TYPES
]
=
{
0
,
0
,
0
,
1
,
1
,
1
,
2
,
2
,
2
,
3
,
3
,
3
,
3
};
const
int
num_pels_log2_lookup
[
BLOCK_SIZE_TYPES
]
=
{
4
,
5
,
5
,
6
,
7
,
7
,
8
,
9
,
9
,
10
,
11
,
11
,
12
};
const
PARTITION_TYPE
partition_lookup
[][
BLOCK_SIZE_TYPES
]
=
{
{
// 4X4
...
...
This diff is collapsed.
Click to expand it.
vp9/common/vp9_common_data.h
+
1
−
0
View file @
19d42de3
...
...
@@ -22,6 +22,7 @@ extern const int num_8x8_blocks_high_lookup[BLOCK_SIZE_TYPES];
extern
const
int
num_4x4_blocks_high_lookup
[
BLOCK_SIZE_TYPES
];
extern
const
int
num_4x4_blocks_wide_lookup
[
BLOCK_SIZE_TYPES
];
extern
const
int
size_group_lookup
[
BLOCK_SIZE_TYPES
];
extern
const
int
num_pels_log2_lookup
[
BLOCK_SIZE_TYPES
];
extern
const
PARTITION_TYPE
partition_lookup
[][
BLOCK_SIZE_TYPES
];
...
...
This diff is collapsed.
Click to expand it.
vp9/encoder/vp9_encodeframe.c
+
19
−
2
View file @
19d42de3
...
...
@@ -60,8 +60,25 @@ static void adjust_act_zbin(VP9_COMP *cpi, MACROBLOCK *x);
* Eventually this should be replaced by custom no-reference routines,
* which will be faster.
*/
static
const
uint8_t
VP9_VAR_OFFS
[
16
]
=
{
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
};
static
const
uint8_t
VP9_VAR_OFFS
[
64
]
=
{
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
};
static
unsigned
int
get_sb_variance
(
VP9_COMP
*
cpi
,
MACROBLOCK
*
x
,
BLOCK_SIZE_TYPE
bs
)
{
unsigned
int
var
,
sse
;
var
=
cpi
->
fn_ptr
[
bs
].
vf
(
x
->
plane
[
0
].
src
.
buf
,
x
->
plane
[
0
].
src
.
stride
,
VP9_VAR_OFFS
,
0
,
&
sse
);
return
var
>>
num_pels_log2_lookup
[
bs
];
}
// Original activity measure from Tim T's code.
static
unsigned
int
tt_activity_measure
(
VP9_COMP
*
cpi
,
MACROBLOCK
*
x
)
{
...
...
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