5d011cb278
Add palette mode for keyframe luma channel. Palette mode is enabled when using "--tune-content=screen" in encoding config parameters. on screen_content testset: +6.89% on derlr : +0.00% Design doc (WIP): https://goo.gl/lD4yJw Change-Id: Ib368b216bfd3ea21c6c27436934ad87afdaa6f88
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2015 The WebM project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef VP10_ENCODER_PALETTE_H_
|
|
#define VP10_ENCODER_PALETTE_H_
|
|
|
|
#include "vp10/common/blockd.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void vp10_insertion_sort(double *data, int n);
|
|
void vp10_calc_indices(const double *data, const double *centroids,
|
|
uint8_t *indices, int n, int k, int dim);
|
|
int vp10_k_means(const double *data, double *centroids, uint8_t *indices,
|
|
uint8_t *pre_indices, int n, int k, int dim, int max_itr);
|
|
int vp10_count_colors(const uint8_t *src, int stride, int rows, int cols);
|
|
#if CONFIG_VP9_HIGHBITDEPTH
|
|
int vp10_count_colors_highbd(const uint8_t *src8, int stride, int rows,
|
|
int cols, int bit_depth);
|
|
#endif // CONFIG_VP9_HIGHBITDEPTH
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif /* VP10_ENCODER_PALETTE_H_ */
|