Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
fc838a04
Commit
fc838a04
authored
Apr 27, 2016
by
Alex Converse
Browse files
buf_ans: Misc cleanup.
Change-Id: I18a3ef2ee6cdda57abcd27683b30b4e3136182c0
parent
bd76fc04
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp10/encoder/bitstream.c
View file @
fc838a04
...
...
@@ -28,7 +28,9 @@
#include "vp10/common/seg_common.h"
#include "vp10/common/tile_common.h"
#if CONFIG_ANS
#include "vp10/encoder/buf_ans.h"
#endif // CONFIG_ANS
#include "vp10/encoder/cost.h"
#include "vp10/encoder/bitstream.h"
#include "vp10/encoder/encodemv.h"
...
...
vp10/encoder/buf_ans.h
View file @
fc838a04
...
...
@@ -52,7 +52,7 @@ static INLINE void buf_ans_write_reset(struct BufAnsCoder *const c) {
}
static
INLINE
void
buf_uabs_write
(
struct
BufAnsCoder
*
const
c
,
uint8_t
val
,
AnsP8
prob
)
{
uint8_t
val
,
AnsP8
prob
)
{
assert
(
c
->
offset
<=
c
->
size
);
if
(
c
->
offset
==
c
->
size
)
{
vp10_buf_ans_grow
(
c
);
...
...
@@ -85,7 +85,8 @@ static INLINE void buf_ans_flush(const struct BufAnsCoder *const c,
sym
.
cum_prob
=
c
->
buf
[
offset
].
val_start
;
rans_write
(
ans
,
&
sym
);
}
else
{
uabs_write
(
ans
,
c
->
buf
[
offset
].
val_start
,
c
->
buf
[
offset
].
prob
);
uabs_write
(
ans
,
(
uint8_t
)
c
->
buf
[
offset
].
val_start
,
(
AnsP8
)
c
->
buf
[
offset
].
prob
);
}
}
}
...
...
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