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
75fca6ff
Commit
75fca6ff
authored
11 years ago
by
Jingning Han
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Reduce bmi buffer length from 16 to 4" into experimental
parents
f188bf1c
de735929
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
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vp9/common/vp9_blockd.h
+1
-1
vp9/common/vp9_blockd.h
vp9/encoder/vp9_encodeintra.c
+8
-19
vp9/encoder/vp9_encodeintra.c
with
9 additions
and
20 deletions
vp9/common/vp9_blockd.h
+
1
−
1
View file @
75fca6ff
...
...
@@ -254,7 +254,7 @@ typedef struct {
typedef
struct
{
MB_MODE_INFO
mbmi
;
union
b_mode_info
bmi
[
16
];
union
b_mode_info
bmi
[
4
];
}
MODE_INFO
;
struct
scale_factors
{
...
...
This diff is collapsed.
Click to expand it.
vp9/encoder/vp9_encodeintra.c
+
8
−
19
View file @
75fca6ff
...
...
@@ -31,19 +31,17 @@ int vp9_encode_intra(VP9_COMP *cpi, MACROBLOCK *x, int use_16x16_pred) {
}
else
{
int
i
;
for
(
i
=
0
;
i
<
16
;
i
++
)
{
x
->
e_mbd
.
mode_info_context
->
bmi
[
i
].
as_mode
.
first
=
B_DC_PRED
;
for
(
i
=
0
;
i
<
16
;
i
++
)
encode_intra4x4block
(
x
,
i
,
BLOCK_SIZE_MB16X16
);
}
}
return
vp9_get_mb_ss
(
x
->
plane
[
0
].
src_diff
);
}
// This function is used only by the firstpass encoding.
static
void
encode_intra4x4block
(
MACROBLOCK
*
x
,
int
ib
,
BLOCK_SIZE_TYPE
bsize
)
{
MACROBLOCKD
*
const
xd
=
&
x
->
e_mbd
;
TX_TYPE
tx_type
;
uint8_t
*
const
src
=
raster_block_offset_uint8
(
xd
,
bsize
,
0
,
ib
,
x
->
plane
[
0
].
src
.
buf
,
x
->
plane
[
0
].
src
.
stride
);
...
...
@@ -58,26 +56,17 @@ static void encode_intra4x4block(MACROBLOCK *x, int ib,
assert
(
ib
<
(
1
<<
(
bwl
+
bhl
)));
vp9_intra4x4_predict
(
&
x
->
e_mbd
,
ib
,
bsize
,
xd
->
mode_info_context
->
bmi
[
ib
].
as_mode
.
first
,
vp9_intra4x4_predict
(
&
x
->
e_mbd
,
ib
,
bsize
,
DC_PRED
,
dst
,
xd
->
plane
[
0
].
dst
.
stride
);
vp9_subtract_block
(
4
,
4
,
src_diff
,
4
<<
bwl
,
src
,
x
->
plane
[
0
].
src
.
stride
,
dst
,
xd
->
plane
[
0
].
dst
.
stride
);
tx_type
=
get_tx_type_4x4
(
&
x
->
e_mbd
,
ib
);
if
(
tx_type
!=
DCT_DCT
)
{
vp9_short_fht4x4
(
src_diff
,
coeff
,
4
<<
bwl
,
tx_type
);
x
->
quantize_b_4x4
(
x
,
ib
,
tx_type
,
16
);
vp9_short_iht4x4_add
(
BLOCK_OFFSET
(
xd
->
plane
[
0
].
dqcoeff
,
ib
,
16
),
dst
,
xd
->
plane
[
0
].
dst
.
stride
,
tx_type
);
}
else
{
x
->
fwd_txm4x4
(
src_diff
,
coeff
,
8
<<
bwl
);
x
->
quantize_b_4x4
(
x
,
ib
,
tx_type
,
16
);
vp9_inverse_transform_b_4x4_add
(
&
x
->
e_mbd
,
xd
->
plane
[
0
].
eobs
[
ib
],
BLOCK_OFFSET
(
xd
->
plane
[
0
].
dqcoeff
,
ib
,
16
),
dst
,
xd
->
plane
[
0
].
dst
.
stride
);
}
x
->
fwd_txm4x4
(
src_diff
,
coeff
,
8
<<
bwl
);
x
->
quantize_b_4x4
(
x
,
ib
,
DCT_DCT
,
16
);
vp9_inverse_transform_b_4x4_add
(
&
x
->
e_mbd
,
xd
->
plane
[
0
].
eobs
[
ib
],
BLOCK_OFFSET
(
xd
->
plane
[
0
].
dqcoeff
,
ib
,
16
),
dst
,
xd
->
plane
[
0
].
dst
.
stride
);
}
void
vp9_encode_intra16x16mby
(
VP9_COMMON
*
const
cm
,
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