Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
5b63c279
Commit
5b63c279
authored
Aug 11, 2014
by
Jingning Han
Committed by
Gerrit Code Review
Aug 11, 2014
Browse files
Merge "Integrate fast txfm and quant path into skip_recode system"
parents
9da4cd94
8684c232
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
5b63c279
...
...
@@ -3573,6 +3573,9 @@ static void encode_superblock(VP9_COMP *cpi, TOKENEXTRA **t, int output_enabled,
cpi
->
oxcf
.
aq_mode
!=
CYCLIC_REFRESH_AQ
&&
cpi
->
sf
.
allow_skip_recode
;
if
(
!
x
->
skip_recode
&&
!
cpi
->
sf
.
use_nonrd_pick_mode
)
vpx_memset
(
x
->
skip_txfm
,
0
,
sizeof
(
x
->
skip_txfm
));
x
->
skip_optimize
=
ctx
->
is_coded
;
ctx
->
is_coded
=
1
;
x
->
use_lp32x32fdct
=
cpi
->
sf
.
use_lp32x32fdct
;
...
...
vp9/encoder/vp9_encodemb.c
View file @
5b63c279
...
...
@@ -475,22 +475,22 @@ static void encode_block(int plane, int block, BLOCK_SIZE plane_bsize,
return
;
}
if
(
x
->
skip_
txfm
[
plane
]
==
0
)
{
// full forward transform and quantization
if
(
!
x
->
skip_recode
)
{
if
(
!
x
->
skip_
recode
)
{
if
(
x
->
skip_txfm
[
plane
]
==
0
)
{
// full forward transform and quantization
if
(
x
->
quant_fp
)
vp9_xform_quant_fp
(
x
,
plane
,
block
,
plane_bsize
,
tx_size
);
else
vp9_xform_quant
(
x
,
plane
,
block
,
plane_bsize
,
tx_size
);
}
else
if
(
x
->
skip_txfm
[
plane
]
==
2
)
{
// fast path forward transform and quantization
vp9_xform_quant_dc
(
x
,
plane
,
block
,
plane_bsize
,
tx_size
);
}
else
{
// skip forward transform
p
->
eobs
[
block
]
=
0
;
*
a
=
*
l
=
0
;
return
;
}
}
else
if
(
x
->
skip_txfm
[
plane
]
==
2
)
{
// fast path forward transform and quantization
vp9_xform_quant_dc
(
x
,
plane
,
block
,
plane_bsize
,
tx_size
);
}
else
{
// skip forward transform
p
->
eobs
[
block
]
=
0
;
*
a
=
*
l
=
0
;
return
;
}
if
(
x
->
optimize
&&
(
!
x
->
skip_recode
||
!
x
->
skip_optimize
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment