|
Packit |
9c6abc |
// Copyright 2016 Google Inc. All Rights Reserved.
|
|
Packit |
9c6abc |
//
|
|
Packit |
9c6abc |
// Use of this source code is governed by a BSD-style license
|
|
Packit |
9c6abc |
// that can be found in the COPYING file in the root of the source
|
|
Packit |
9c6abc |
// tree. An additional intellectual property rights grant can be found
|
|
Packit |
9c6abc |
// in the file PATENTS. All contributing project authors may
|
|
Packit |
9c6abc |
// be found in the AUTHORS file in the root of the source tree.
|
|
Packit |
9c6abc |
// -----------------------------------------------------------------------------
|
|
Packit |
9c6abc |
//
|
|
Packit |
9c6abc |
// Internal header for animation related functions.
|
|
Packit |
9c6abc |
//
|
|
Packit |
9c6abc |
// Author: Hui Su (huisu@google.com)
|
|
Packit |
9c6abc |
|
|
Packit |
9c6abc |
#ifndef WEBP_MUX_ANIMI_H_
|
|
Packit |
9c6abc |
#define WEBP_MUX_ANIMI_H_
|
|
Packit |
9c6abc |
|
|
Packit |
9c6abc |
#include "src/webp/mux.h"
|
|
Packit |
9c6abc |
|
|
Packit |
9c6abc |
#ifdef __cplusplus
|
|
Packit |
9c6abc |
extern "C" {
|
|
Packit |
9c6abc |
#endif
|
|
Packit |
9c6abc |
|
|
Packit |
9c6abc |
// Picks the optimal rectangle between two pictures, starting with initial
|
|
Packit |
9c6abc |
// values of offsets and dimensions that are passed in. The initial
|
|
Packit |
9c6abc |
// values will be clipped, if necessary, to make sure the rectangle is
|
|
Packit |
9c6abc |
// within the canvas. "use_argb" must be true for both pictures.
|
|
Packit |
9c6abc |
// Parameters:
|
|
Packit |
9c6abc |
// prev_canvas, curr_canvas - (in) two input pictures to compare.
|
|
Packit |
9c6abc |
// is_lossless, quality - (in) encoding settings.
|
|
Packit |
9c6abc |
// x_offset, y_offset, width, height - (in/out) rectangle between the two
|
|
Packit |
9c6abc |
// input pictures.
|
|
Packit |
9c6abc |
// Returns true on success.
|
|
Packit |
9c6abc |
int WebPAnimEncoderRefineRect(
|
|
Packit |
9c6abc |
const struct WebPPicture* const prev_canvas,
|
|
Packit |
9c6abc |
const struct WebPPicture* const curr_canvas,
|
|
Packit |
9c6abc |
int is_lossless, float quality, int* const x_offset, int* const y_offset,
|
|
Packit |
9c6abc |
int* const width, int* const height);
|
|
Packit |
9c6abc |
|
|
Packit |
9c6abc |
#ifdef __cplusplus
|
|
Packit |
9c6abc |
} // extern "C"
|
|
Packit |
9c6abc |
#endif
|
|
Packit |
9c6abc |
|
|
Packit |
9c6abc |
#endif /* WEBP_MUX_ANIMI_H_ */
|