• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015 Google Inc. All Rights Reserved.
2 //
3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the COPYING file in the root of the source
5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree.
8 // -----------------------------------------------------------------------------
9 //
10 // Author: Mislav Bradac (mislavm@google.com)
11 //
12 
13 #ifndef WEBP_ENC_DELTA_PALETTIZATION_ENC_H_
14 #define WEBP_ENC_DELTA_PALETTIZATION_ENC_H_
15 
16 #include "src/webp/encode.h"
17 #include "src/enc/vp8li_enc.h"
18 
19 // Replaces enc->argb_[] input by a palettizable approximation of it,
20 // and generates optimal enc->palette_[].
21 // This function can revert enc->use_palette_ / enc->use_predict_ flag
22 // if delta-palettization is not producing expected saving.
23 WebPEncodingError WebPSearchOptimalDeltaPalette(VP8LEncoder* const enc);
24 
25 #endif  // WEBP_ENC_DELTA_PALETTIZATION_ENC_H_
26