Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
a1689ed1
Commit
a1689ed1
authored
Dec 11, 2017
by
Jerome Jiang
Committed by
Gerrit Code Review
Dec 11, 2017
Browse files
Merge "Fix build warnings for gcc 6.3"
parents
14dbdd95
2a602f74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
vp8/encoder/rdopt.c
vp8/encoder/rdopt.c
+7
-12
No files found.
vp8/encoder/rdopt.c
View file @
a1689ed1
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "modecosts.h"
#include "modecosts.h"
#include "encodeintra.h"
#include "encodeintra.h"
#include "pickinter.h"
#include "pickinter.h"
#include "vp8/common/common.h"
#include "vp8/common/entropymode.h"
#include "vp8/common/entropymode.h"
#include "vp8/common/reconinter.h"
#include "vp8/common/reconinter.h"
#include "vp8/common/reconintra.h"
#include "vp8/common/reconintra.h"
...
@@ -959,19 +960,13 @@ static void rd_check_segment(VP8_COMP *cpi, MACROBLOCK *x, BEST_SEG_INFO *bsi,
...
@@ -959,19 +960,13 @@ static void rd_check_segment(VP8_COMP *cpi, MACROBLOCK *x, BEST_SEG_INFO *bsi,
vp8_variance_fn_ptr_t
*
v_fn_ptr
;
vp8_variance_fn_ptr_t
*
v_fn_ptr
;
ENTROPY_CONTEXT_PLANES
t_above
,
t_left
;
ENTROPY_CONTEXT_PLANES
t_above
,
t_left
;
ENTROPY_CONTEXT
*
ta
;
ENTROPY_CONTEXT
*
tl
;
ENTROPY_CONTEXT_PLANES
t_above_b
,
t_left_b
;
ENTROPY_CONTEXT_PLANES
t_above_b
,
t_left_b
;
ENTROPY_CONTEXT
*
ta_b
;
ENTROPY_CONTEXT
*
tl_b
;
memcpy
(
&
t_above
,
x
->
e_mbd
.
above_context
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
&
t_above
,
x
->
e_mbd
.
above_context
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
&
t_left
,
x
->
e_mbd
.
left_context
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
&
t_left
,
x
->
e_mbd
.
left_context
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
ta
=
(
ENTROPY_CONTEXT
*
)
&
t_above
;
vp8_zero
(
t_above_b
);
tl
=
(
ENTROPY_CONTEXT
*
)
&
t_left
;
vp8_zero
(
t_left_b
);
ta_b
=
(
ENTROPY_CONTEXT
*
)
&
t_above_b
;
tl_b
=
(
ENTROPY_CONTEXT
*
)
&
t_left_b
;
br
=
0
;
br
=
0
;
bd
=
0
;
bd
=
0
;
...
@@ -1151,13 +1146,13 @@ static void rd_check_segment(VP8_COMP *cpi, MACROBLOCK *x, BEST_SEG_INFO *bsi,
...
@@ -1151,13 +1146,13 @@ static void rd_check_segment(VP8_COMP *cpi, MACROBLOCK *x, BEST_SEG_INFO *bsi,
mode_selected
=
this_mode
;
mode_selected
=
this_mode
;
best_label_rd
=
this_rd
;
best_label_rd
=
this_rd
;
memcpy
(
ta_b
,
ta
_s
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
&
t_above_b
,
&
t_above
_s
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
tl_b
,
tl
_s
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
&
t_left_b
,
&
t_left
_s
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
}
}
}
/*for each 4x4 mode*/
}
/*for each 4x4 mode*/
memcpy
(
ta
,
ta
_b
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
&
t_above
,
&
t_above
_b
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
tl
,
tl
_b
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
memcpy
(
&
t_left
,
&
t_left
_b
,
sizeof
(
ENTROPY_CONTEXT_PLANES
));
labels2mode
(
x
,
labels
,
i
,
mode_selected
,
&
mode_mv
[
mode_selected
],
labels2mode
(
x
,
labels
,
i
,
mode_selected
,
&
mode_mv
[
mode_selected
],
bsi
->
ref_mv
,
x
->
mvcost
);
bsi
->
ref_mv
,
x
->
mvcost
);
...
...
Write
Preview
Markdown
is supported
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