Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a66121d9
Commit
a66121d9
authored
Apr 02, 2017
by
Rostislav Pehlivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opus_rc: add macros for checkpoint rollback
Signed-off-by:
Rostislav Pehlivanov
<
atomnuker@gmail.com
>
parent
6d0b62a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
opus_rc.h
libavcodec/opus_rc.h
+14
-0
No files found.
libavcodec/opus_rc.h
View file @
a66121d9
...
...
@@ -109,4 +109,18 @@ void ff_opus_rc_dec_raw_init(OpusRangeCoder *rc, const uint8_t *rightend, ui
void
ff_opus_rc_enc_end
(
OpusRangeCoder
*
rc
,
uint8_t
*
dst
,
int
size
);
void
ff_opus_rc_enc_init
(
OpusRangeCoder
*
rc
);
#define OPUS_RC_CHECKPOINT_UPDATE(rc) \
rc_rollback_bits = opus_rc_tell_frac(rc); \
rc_rollback_ctx = *rc
#define OPUS_RC_CHECKPOINT_SPAWN(rc) \
uint32_t rc_rollback_bits = opus_rc_tell_frac(rc); \
OpusRangeCoder rc_rollback_ctx = *rc \
#define OPUS_RC_CHECKPOINT_BITS(rc) \
(opus_rc_tell_frac(rc) - rc_rollback_bits)
#define OPUS_RC_CHECKPOINT_ROLLBACK(rc) \
memcpy(rc, &rc_rollback_ctx, sizeof(OpusRangeCoder)); \
#endif
/* AVCODEC_OPUS_RC_H */
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