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
Xiph.Org
aom-rav1e
Commits
6f317229
Commit
6f317229
authored
Oct 13, 2015
by
hui su
Browse files
Fix compiler warnings
Change-Id: I761256a8100d83abf1b937f3739580237e3fad2a
parent
00170953
Changes
3
Show whitespace changes
Inline
Side-by-side
vp10/encoder/bitstream.c
View file @
6f317229
...
...
@@ -1355,10 +1355,10 @@ static int remux_tiles(uint8_t *dest, const int sz,
void
vp10_pack_bitstream
(
VP10_COMP
*
const
cpi
,
uint8_t
*
dest
,
size_t
*
size
)
{
uint8_t
*
data
=
dest
;
size_t
first_part_size
,
uncompressed_hdr_size
;
size_t
first_part_size
,
uncompressed_hdr_size
,
data_sz
;
struct
vpx_write_bit_buffer
wb
=
{
data
,
0
};
struct
vpx_write_bit_buffer
saved_wb
;
unsigned
int
max_tile
,
data_sz
;
unsigned
int
max_tile
;
#if CONFIG_MISC_FIXES
VP10_COMMON
*
const
cm
=
&
cpi
->
common
;
const
int
n_log2_tiles
=
cm
->
log2_tile_rows
+
cm
->
log2_tile_cols
;
...
...
vp10/encoder/bitstream.h
View file @
6f317229
...
...
@@ -18,7 +18,7 @@ extern "C" {
#include "vp10/encoder/encoder.h"
void
vp10_pack_bitstream
(
VP10_COMP
*
cpi
,
uint8_t
*
dest
,
size_t
*
size
);
void
vp10_pack_bitstream
(
VP10_COMP
*
const
cpi
,
uint8_t
*
dest
,
size_t
*
size
);
static
INLINE
int
vp10_preserve_existing_gf
(
VP10_COMP
*
cpi
)
{
return
!
cpi
->
multi_arf_allowed
&&
cpi
->
refresh_golden_frame
&&
...
...
vpx_dsp/psnrhvs.c
View file @
6f317229
...
...
@@ -191,7 +191,7 @@ static double calc_psnrhvs(const unsigned char *_src, int _systride,
for
(
i
=
0
;
i
<
8
;
i
++
)
{
for
(
j
=
0
;
j
<
8
;
j
++
)
{
float
err
;
err
=
fabs
(
dct_s_coef
[
i
*
8
+
j
]
-
dct_d_coef
[
i
*
8
+
j
]);
err
=
fabs
(
(
float
)(
dct_s_coef
[
i
*
8
+
j
]
-
dct_d_coef
[
i
*
8
+
j
])
)
;
if
(
i
!=
0
||
j
!=
0
)
err
=
err
<
s_mask
/
mask
[
i
][
j
]
?
0
:
err
-
s_mask
/
mask
[
i
][
j
];
ret
+=
(
err
*
_csf
[
i
][
j
])
*
(
err
*
_csf
[
i
][
j
]);
...
...
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