Rename 'Add' APIs to 'Set'.
Change-Id: I10a836a5bc3c9207b6f7fa423bb64bc9bcac055b
This commit is contained in:
parent
bbb0218fa5
commit
814a063925
@ -866,7 +866,7 @@ static int Process(const WebPMuxConfig* config) {
|
|||||||
WebPDataFree(&alpha);
|
WebPDataFree(&alpha);
|
||||||
ERROR_GOTO1("ERROR: Could not parse frame properties.\n", Err2);
|
ERROR_GOTO1("ERROR: Could not parse frame properties.\n", Err2);
|
||||||
}
|
}
|
||||||
err = WebPMuxAddFrame(mux, 0, &image, &alpha,
|
err = WebPMuxSetFrame(mux, 0, &image, &alpha,
|
||||||
x_offset, y_offset, duration, 1);
|
x_offset, y_offset, duration, 1);
|
||||||
WebPDataFree(&image);
|
WebPDataFree(&image);
|
||||||
WebPDataFree(&alpha);
|
WebPDataFree(&alpha);
|
||||||
@ -897,7 +897,7 @@ static int Process(const WebPMuxConfig* config) {
|
|||||||
WebPDataFree(&alpha);
|
WebPDataFree(&alpha);
|
||||||
ERROR_GOTO1("ERROR: Could not parse tile properties.\n", Err2);
|
ERROR_GOTO1("ERROR: Could not parse tile properties.\n", Err2);
|
||||||
}
|
}
|
||||||
err = WebPMuxAddTile(mux, 0, &image, &alpha, x_offset, y_offset, 1);
|
err = WebPMuxSetTile(mux, 0, &image, &alpha, x_offset, y_offset, 1);
|
||||||
WebPDataFree(&image);
|
WebPDataFree(&image);
|
||||||
WebPDataFree(&alpha);
|
WebPDataFree(&alpha);
|
||||||
if (err != WEBP_MUX_OK) {
|
if (err != WEBP_MUX_OK) {
|
||||||
|
@ -336,7 +336,7 @@ WebPMuxError WebPMuxSetLoopCount(WebPMux* const mux, uint32_t loop_count) {
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static WebPMuxError MuxAddFrameTileInternal(
|
static WebPMuxError MuxSetFrameTileInternal(
|
||||||
WebPMux* const mux, uint32_t nth,
|
WebPMux* const mux, uint32_t nth,
|
||||||
const WebPData* const image, const WebPData* const alpha,
|
const WebPData* const image, const WebPData* const alpha,
|
||||||
uint32_t x_offset, uint32_t y_offset, uint32_t duration,
|
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.
|
// 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 image,
|
||||||
const WebPData* const alpha,
|
const WebPData* const alpha,
|
||||||
uint32_t x_offset, uint32_t y_offset,
|
uint32_t x_offset, uint32_t y_offset,
|
||||||
uint32_t duration, int copy_data) {
|
uint32_t duration, int copy_data) {
|
||||||
return MuxAddFrameTileInternal(mux, nth, image, alpha,
|
return MuxSetFrameTileInternal(mux, nth, image, alpha,
|
||||||
x_offset, y_offset, duration,
|
x_offset, y_offset, duration,
|
||||||
copy_data, kChunks[IDX_FRAME].tag);
|
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 image,
|
||||||
const WebPData* const alpha,
|
const WebPData* const alpha,
|
||||||
uint32_t x_offset, uint32_t y_offset,
|
uint32_t x_offset, uint32_t y_offset,
|
||||||
int copy_data) {
|
int copy_data) {
|
||||||
return MuxAddFrameTileInternal(mux, nth, image, alpha,
|
return MuxSetFrameTileInternal(mux, nth, image, alpha,
|
||||||
x_offset, y_offset, 1,
|
x_offset, y_offset, 1,
|
||||||
copy_data, kChunks[IDX_TILE].tag);
|
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_NOT_FOUND - If we have less than (nth-1) frames before adding.
|
||||||
// WEBP_MUX_MEMORY_ERROR - on memory allocation error.
|
// WEBP_MUX_MEMORY_ERROR - on memory allocation error.
|
||||||
// WEBP_MUX_OK - on success.
|
// WEBP_MUX_OK - on success.
|
||||||
WEBP_EXTERN(WebPMuxError) WebPMuxAddFrame(
|
WEBP_EXTERN(WebPMuxError) WebPMuxSetFrame(
|
||||||
WebPMux* const mux, uint32_t nth,
|
WebPMux* const mux, uint32_t nth,
|
||||||
const WebPData* const image, const WebPData* const alpha,
|
const WebPData* const image, const WebPData* const alpha,
|
||||||
uint32_t x_offset, uint32_t y_offset, uint32_t duration,
|
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_NOT_FOUND - If we have less than (nth-1) tiles before adding.
|
||||||
// WEBP_MUX_MEMORY_ERROR - on memory allocation error.
|
// WEBP_MUX_MEMORY_ERROR - on memory allocation error.
|
||||||
// WEBP_MUX_OK - on success.
|
// WEBP_MUX_OK - on success.
|
||||||
WEBP_EXTERN(WebPMuxError) WebPMuxAddTile(
|
WEBP_EXTERN(WebPMuxError) WebPMuxSetTile(
|
||||||
WebPMux* const mux, uint32_t nth,
|
WebPMux* const mux, uint32_t nth,
|
||||||
const WebPData* const image, const WebPData* const alpha,
|
const WebPData* const image, const WebPData* const alpha,
|
||||||
uint32_t x_offset, uint32_t y_offset,
|
uint32_t x_offset, uint32_t y_offset,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user