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
569ca37d
Commit
569ca37d
authored
11 years ago
by
Dmitry Kovalev
Browse files
Options
Downloads
Patches
Plain Diff
Moving plane_block_idx from vp9_blockd.h to vp9_quantize.c.
Change-Id: Ib8af21f2e7f603c2fb407e5d15a3bba64b545b49
parent
31c97c2b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vp9/common/vp9_blockd.h
+0
-26
0 additions, 26 deletions
vp9/common/vp9_blockd.h
vp9/encoder/vp9_quantize.c
+26
-0
26 additions, 0 deletions
vp9/encoder/vp9_quantize.c
with
26 additions
and
26 deletions
vp9/common/vp9_blockd.h
+
0
−
26
View file @
569ca37d
...
@@ -362,32 +362,6 @@ static INLINE TX_SIZE get_uv_tx_size(const MB_MODE_INFO *mbmi) {
...
@@ -362,32 +362,6 @@ static INLINE TX_SIZE get_uv_tx_size(const MB_MODE_INFO *mbmi) {
return
MIN
(
mbmi
->
txfm_size
,
max_uv_txsize_lookup
[
mbmi
->
sb_type
]);
return
MIN
(
mbmi
->
txfm_size
,
max_uv_txsize_lookup
[
mbmi
->
sb_type
]);
}
}
struct
plane_block_idx
{
int
plane
;
int
block
;
};
// TODO(jkoleszar): returning a struct so it can be used in a const context,
// expect to refactor this further later.
static
INLINE
struct
plane_block_idx
plane_block_idx
(
int
y_blocks
,
int
b_idx
)
{
const
int
v_offset
=
y_blocks
*
5
/
4
;
struct
plane_block_idx
res
;
if
(
b_idx
<
y_blocks
)
{
res
.
plane
=
0
;
res
.
block
=
b_idx
;
}
else
if
(
b_idx
<
v_offset
)
{
res
.
plane
=
1
;
res
.
block
=
b_idx
-
y_blocks
;
}
else
{
assert
(
b_idx
<
y_blocks
*
3
/
2
);
res
.
plane
=
2
;
res
.
block
=
b_idx
-
v_offset
;
}
return
res
;
}
static
BLOCK_SIZE_TYPE
get_plane_block_size
(
BLOCK_SIZE_TYPE
bsize
,
static
BLOCK_SIZE_TYPE
get_plane_block_size
(
BLOCK_SIZE_TYPE
bsize
,
const
struct
macroblockd_plane
*
pd
)
{
const
struct
macroblockd_plane
*
pd
)
{
BLOCK_SIZE_TYPE
bs
=
ss_size_lookup
[
bsize
]
BLOCK_SIZE_TYPE
bs
=
ss_size_lookup
[
bsize
]
...
...
This diff is collapsed.
Click to expand it.
vp9/encoder/vp9_quantize.c
+
26
−
0
View file @
569ca37d
...
@@ -152,6 +152,32 @@ void vp9_quantize_b_32x32_c(int16_t *coeff_ptr, intptr_t n_coeffs,
...
@@ -152,6 +152,32 @@ void vp9_quantize_b_32x32_c(int16_t *coeff_ptr, intptr_t n_coeffs,
*
eob_ptr
=
eob
+
1
;
*
eob_ptr
=
eob
+
1
;
}
}
struct
plane_block_idx
{
int
plane
;
int
block
;
};
// TODO(jkoleszar): returning a struct so it can be used in a const context,
// expect to refactor this further later.
static
INLINE
struct
plane_block_idx
plane_block_idx
(
int
y_blocks
,
int
b_idx
)
{
const
int
v_offset
=
y_blocks
*
5
/
4
;
struct
plane_block_idx
res
;
if
(
b_idx
<
y_blocks
)
{
res
.
plane
=
0
;
res
.
block
=
b_idx
;
}
else
if
(
b_idx
<
v_offset
)
{
res
.
plane
=
1
;
res
.
block
=
b_idx
-
y_blocks
;
}
else
{
assert
(
b_idx
<
y_blocks
*
3
/
2
);
res
.
plane
=
2
;
res
.
block
=
b_idx
-
v_offset
;
}
return
res
;
}
void
vp9_regular_quantize_b_4x4
(
MACROBLOCK
*
mb
,
int
b_idx
,
TX_TYPE
tx_type
,
void
vp9_regular_quantize_b_4x4
(
MACROBLOCK
*
mb
,
int
b_idx
,
TX_TYPE
tx_type
,
int
y_blocks
)
{
int
y_blocks
)
{
MACROBLOCKD
*
const
xd
=
&
mb
->
e_mbd
;
MACROBLOCKD
*
const
xd
=
&
mb
->
e_mbd
;
...
...
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