// Copyright 2016 Google Inc. All Rights Reserved.1//2// Use of this source code is governed by a BSD-style license3// that can be found in the COPYING file in the root of the source4// tree. An additional intellectual property rights grant can be found5// in the file PATENTS. All contributing project authors may6// be found in the AUTHORS file in the root of the source tree.7// -----------------------------------------------------------------------------8//9// Internal header for animation related functions.10//11// Author: Hui Su ([email protected])1213#ifndef WEBP_MUX_ANIMI_H_14#define WEBP_MUX_ANIMI_H_1516#include "src/webp/mux.h"1718#ifdef __cplusplus19extern "C" {20#endif2122// Picks the optimal rectangle between two pictures, starting with initial23// values of offsets and dimensions that are passed in. The initial24// values will be clipped, if necessary, to make sure the rectangle is25// within the canvas. "use_argb" must be true for both pictures.26// Parameters:27// prev_canvas, curr_canvas - (in) two input pictures to compare.28// is_lossless, quality - (in) encoding settings.29// x_offset, y_offset, width, height - (in/out) rectangle between the two30// input pictures.31// Returns true on success.32int WebPAnimEncoderRefineRect(33const struct WebPPicture* const prev_canvas,34const struct WebPPicture* const curr_canvas,35int is_lossless, float quality, int* const x_offset, int* const y_offset,36int* const width, int* const height);3738#ifdef __cplusplus39} // extern "C"40#endif4142#endif // WEBP_MUX_ANIMI_H_434445