Skip to content
Snippets Groups Projects

Rsi block access

Merged eugen.betke requested to merge k202107/libaec:rsi_block_access into master
Files
12
+ 12
0
@@ -126,6 +126,7 @@ struct aec_stream {
#define AEC_STREAM_ERROR (-2)
#define AEC_DATA_ERROR (-3)
#define AEC_MEM_ERROR (-4)
#define AEC_RSI_OFFSETS_ERROR (-5)
/************************/
/* Options for flushing */
@@ -150,16 +151,27 @@ struct aec_stream {
LIBAEC_DLL_EXPORTED int aec_encode_init(struct aec_stream *strm);
LIBAEC_DLL_EXPORTED int aec_encode(struct aec_stream *strm, int flush);
LIBAEC_DLL_EXPORTED int aec_encode_end(struct aec_stream *strm);
LIBAEC_DLL_EXPORTED int aec_encode_enable_offsets(struct aec_stream *strm);
LIBAEC_DLL_EXPORTED int aec_encode_count_offsets(struct aec_stream *strm, size_t *count);
LIBAEC_DLL_EXPORTED int aec_encode_get_offsets(struct aec_stream *strm, size_t *offsets, size_t offsets_count);
LIBAEC_DLL_EXPORTED int aec_decode_init(struct aec_stream *strm);
LIBAEC_DLL_EXPORTED int aec_decode(struct aec_stream *strm, int flush);
LIBAEC_DLL_EXPORTED int aec_decode_end(struct aec_stream *strm);
LIBAEC_DLL_EXPORTED int aec_decode_enable_offsets(struct aec_stream *strm);
LIBAEC_DLL_EXPORTED int aec_decode_count_offsets(struct aec_stream *strm, size_t *count);
LIBAEC_DLL_EXPORTED int aec_decode_get_offsets(struct aec_stream *strm, size_t *offsets, size_t offsets_count);
/***************************************************************/
/* Utility functions for encoding or decoding a memory buffer. */
/***************************************************************/
LIBAEC_DLL_EXPORTED int aec_buffer_encode(struct aec_stream *strm);
LIBAEC_DLL_EXPORTED int aec_buffer_decode(struct aec_stream *strm);
LIBAEC_DLL_EXPORTED int aec_buffer_seek(struct aec_stream *strm,
size_t byte_offset,
unsigned char bit_offset);
LIBAEC_DLL_EXPORTED int aec_read(struct aec_stream *strm, const size_t *offsets, size_t offsets_size, unsigned char* buf, size_t count, size_t offset);
LIBAEC_DLL_EXPORTED int aec_rsi_at(struct aec_stream *strm, const size_t *offsets, size_t offsets_size, size_t idx);
#ifdef __cplusplus
}
Loading