Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
6ce515b9
Commit
6ce515b9
authored
10 years ago
by
Jingning Han
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix chrome valgrind warning due to the use of mismatched bsize"
parents
44eb577c
3cddd81c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
vp9/common/vp9_common_data.c
+7
-0
7 additions, 0 deletions
vp9/common/vp9_common_data.c
vp9/common/vp9_common_data.h
+1
-0
1 addition, 0 deletions
vp9/common/vp9_common_data.h
vp9/encoder/vp9_pickmode.c
+2
-1
2 additions, 1 deletion
vp9/encoder/vp9_pickmode.c
with
10 additions
and
1 deletion
vp9/common/vp9_common_data.c
+
7
−
0
View file @
6ce515b9
...
...
@@ -107,6 +107,13 @@ const TX_SIZE max_txsize_lookup[BLOCK_SIZES] = {
TX_32X32
,
TX_32X32
,
TX_32X32
,
TX_32X32
};
const
BLOCK_SIZE
txsize_to_bsize
[
TX_SIZES
]
=
{
BLOCK_4X4
,
// TX_4X4
BLOCK_8X8
,
// TX_8X8
BLOCK_16X16
,
// TX_16X16
BLOCK_32X32
,
// TX_32X32
};
const
TX_SIZE
tx_mode_to_biggest_tx_size
[
TX_MODES
]
=
{
TX_4X4
,
// ONLY_4X4
TX_8X8
,
// ALLOW_8X8
...
...
This diff is collapsed.
Click to expand it.
vp9/common/vp9_common_data.h
+
1
−
0
View file @
6ce515b9
...
...
@@ -29,6 +29,7 @@ extern const int num_pels_log2_lookup[BLOCK_SIZES];
extern
const
PARTITION_TYPE
partition_lookup
[][
BLOCK_SIZES
];
extern
const
BLOCK_SIZE
subsize_lookup
[
PARTITION_TYPES
][
BLOCK_SIZES
];
extern
const
TX_SIZE
max_txsize_lookup
[
BLOCK_SIZES
];
extern
const
BLOCK_SIZE
txsize_to_bsize
[
TX_SIZES
];
extern
const
TX_SIZE
tx_mode_to_biggest_tx_size
[
TX_MODES
];
extern
const
BLOCK_SIZE
ss_size_lookup
[
BLOCK_SIZES
][
2
][
2
];
...
...
This diff is collapsed.
Click to expand it.
vp9/encoder/vp9_pickmode.c
+
2
−
1
View file @
6ce515b9
...
...
@@ -675,6 +675,7 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
int
i
,
j
;
const
int
width
=
num_4x4_blocks_wide_lookup
[
bsize
];
const
int
height
=
num_4x4_blocks_high_lookup
[
bsize
];
const
BLOCK_SIZE
bsize_tx
=
txsize_to_bsize
[
mbmi
->
tx_size
];
int
rate2
=
0
;
int64_t
dist2
=
0
;
...
...
@@ -700,7 +701,7 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
src_stride
,
&
pd
->
dst
.
buf
[
4
*
(
j
*
dst_stride
+
i
)],
dst_stride
,
i
,
j
,
0
);
model_rd_for_sb_y
(
cpi
,
bsize
,
x
,
xd
,
&
rate
,
&
dist
,
&
var_y
,
&
sse_y
);
model_rd_for_sb_y
(
cpi
,
bsize
_tx
,
x
,
xd
,
&
rate
,
&
dist
,
&
var_y
,
&
sse_y
);
rate2
+=
rate
;
dist2
+=
dist
;
++
block_idx
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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