mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
Rename 'Add' APIs to 'Set'.
Change-Id: I10a836a5bc3c9207b6f7fa423bb64bc9bcac055b
This commit is contained in:
@ -336,7 +336,7 @@ WebPMuxError WebPMuxSetLoopCount(WebPMux* const mux, uint32_t loop_count) {
|
||||
return err;
|
||||
}
|
||||
|
||||
static WebPMuxError MuxAddFrameTileInternal(
|
||||
static WebPMuxError MuxSetFrameTileInternal(
|
||||
WebPMux* const mux, uint32_t nth,
|
||||
const WebPData* const image, const WebPData* const alpha,
|
||||
uint32_t x_offset, uint32_t y_offset, uint32_t duration,
|
||||
@ -428,22 +428,22 @@ static WebPMuxError MuxAddFrameTileInternal(
|
||||
|
||||
// TODO(urvang): Think about whether we need 'nth' while adding a frame or tile.
|
||||
|
||||
WebPMuxError WebPMuxAddFrame(WebPMux* const mux, uint32_t nth,
|
||||
WebPMuxError WebPMuxSetFrame(WebPMux* const mux, uint32_t nth,
|
||||
const WebPData* const image,
|
||||
const WebPData* const alpha,
|
||||
uint32_t x_offset, uint32_t y_offset,
|
||||
uint32_t duration, int copy_data) {
|
||||
return MuxAddFrameTileInternal(mux, nth, image, alpha,
|
||||
return MuxSetFrameTileInternal(mux, nth, image, alpha,
|
||||
x_offset, y_offset, duration,
|
||||
copy_data, kChunks[IDX_FRAME].tag);
|
||||
}
|
||||
|
||||
WebPMuxError WebPMuxAddTile(WebPMux* const mux, uint32_t nth,
|
||||
WebPMuxError WebPMuxSetTile(WebPMux* const mux, uint32_t nth,
|
||||
const WebPData* const image,
|
||||
const WebPData* const alpha,
|
||||
uint32_t x_offset, uint32_t y_offset,
|
||||
int copy_data) {
|
||||
return MuxAddFrameTileInternal(mux, nth, image, alpha,
|
||||
return MuxSetFrameTileInternal(mux, nth, image, alpha,
|
||||
x_offset, y_offset, 1,
|
||||
copy_data, kChunks[IDX_TILE].tag);
|
||||
}
|
||||
|
@ -274,7 +274,7 @@ WEBP_EXTERN(WebPMuxError) WebPMuxDeleteColorProfile(WebPMux* const mux);
|
||||
// WEBP_MUX_NOT_FOUND - If we have less than (nth-1) frames before adding.
|
||||
// WEBP_MUX_MEMORY_ERROR - on memory allocation error.
|
||||
// WEBP_MUX_OK - on success.
|
||||
WEBP_EXTERN(WebPMuxError) WebPMuxAddFrame(
|
||||
WEBP_EXTERN(WebPMuxError) WebPMuxSetFrame(
|
||||
WebPMux* const mux, uint32_t nth,
|
||||
const WebPData* const image, const WebPData* const alpha,
|
||||
uint32_t x_offset, uint32_t y_offset, uint32_t duration,
|
||||
@ -368,7 +368,7 @@ WEBP_EXTERN(WebPMuxError) WebPMuxGetLoopCount(const WebPMux* const mux,
|
||||
// WEBP_MUX_NOT_FOUND - If we have less than (nth-1) tiles before adding.
|
||||
// WEBP_MUX_MEMORY_ERROR - on memory allocation error.
|
||||
// WEBP_MUX_OK - on success.
|
||||
WEBP_EXTERN(WebPMuxError) WebPMuxAddTile(
|
||||
WEBP_EXTERN(WebPMuxError) WebPMuxSetTile(
|
||||
WebPMux* const mux, uint32_t nth,
|
||||
const WebPData* const image, const WebPData* const alpha,
|
||||
uint32_t x_offset, uint32_t y_offset,
|
||||
|
Reference in New Issue
Block a user