mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-18 23:09:52 +02:00
Expose functions for managing non-image chunks on WebPAnimEncoder
Change-Id: Ie6376267eee6df3517417b6cadafcdf6112bd854
This commit is contained in:
@ -1589,4 +1589,23 @@ const char* WebPAnimEncoderGetError(WebPAnimEncoder* enc) {
|
||||
return enc->error_str_;
|
||||
}
|
||||
|
||||
WebPMuxError WebPAnimEncoderSetChunk(
|
||||
WebPAnimEncoder* enc, const char fourcc[4], const WebPData* chunk_data,
|
||||
int copy_data) {
|
||||
if (enc == NULL) return WEBP_MUX_INVALID_ARGUMENT;
|
||||
return WebPMuxSetChunk(enc->mux_, fourcc, chunk_data, copy_data);
|
||||
}
|
||||
|
||||
WebPMuxError WebPAnimEncoderGetChunk(
|
||||
const WebPAnimEncoder* enc, const char fourcc[4], WebPData* chunk_data) {
|
||||
if (enc == NULL) return WEBP_MUX_INVALID_ARGUMENT;
|
||||
return WebPMuxGetChunk(enc->mux_, fourcc, chunk_data);
|
||||
}
|
||||
|
||||
WebPMuxError WebPAnimEncoderDeleteChunk(
|
||||
WebPAnimEncoder* enc, const char fourcc[4]) {
|
||||
if (enc == NULL) return WEBP_MUX_INVALID_ARGUMENT;
|
||||
return WebPMuxDeleteChunk(enc->mux_, fourcc);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user