2012-11-02 19:22:57 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2010 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.
|
|
|
|
*/
|
|
|
|
|
2012-11-30 01:36:10 +01:00
|
|
|
#ifndef VP9_ENCODER_VP9_ENCODEFRAME_H_
|
|
|
|
#define VP9_ENCODER_VP9_ENCODEFRAME_H_
|
2012-11-02 19:22:57 +01:00
|
|
|
|
2015-04-02 22:57:22 +02:00
|
|
|
#include "vpx/vpx_integer.h"
|
|
|
|
|
2014-01-18 21:16:11 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-11-02 19:22:57 +01:00
|
|
|
struct macroblock;
|
2013-04-24 01:22:47 +02:00
|
|
|
struct yv12_buffer_config;
|
2014-03-13 01:29:37 +01:00
|
|
|
struct VP9_COMP;
|
2014-12-03 00:47:41 +01:00
|
|
|
struct ThreadData;
|
2012-11-02 19:22:57 +01:00
|
|
|
|
2014-05-02 00:14:39 +02:00
|
|
|
// Constants used in SOURCE_VAR_BASED_PARTITION
|
|
|
|
#define VAR_HIST_MAX_BG_VAR 1000
|
|
|
|
#define VAR_HIST_FACTOR 10
|
|
|
|
#define VAR_HIST_BINS (VAR_HIST_MAX_BG_VAR / VAR_HIST_FACTOR + 1)
|
|
|
|
#define VAR_HIST_LARGE_CUT_OFF 75
|
|
|
|
#define VAR_HIST_SMALL_CUT_OFF 45
|
|
|
|
|
2013-04-24 01:22:47 +02:00
|
|
|
void vp9_setup_src_planes(struct macroblock *x,
|
2016-07-27 05:43:23 +02:00
|
|
|
const struct yv12_buffer_config *src, int mi_row,
|
|
|
|
int mi_col);
|
2013-04-24 01:22:47 +02:00
|
|
|
|
2014-03-13 01:29:37 +01:00
|
|
|
void vp9_encode_frame(struct VP9_COMP *cpi);
|
|
|
|
|
2014-12-03 00:47:41 +01:00
|
|
|
void vp9_init_tile_data(struct VP9_COMP *cpi);
|
2016-07-27 05:43:23 +02:00
|
|
|
void vp9_encode_tile(struct VP9_COMP *cpi, struct ThreadData *td, int tile_row,
|
|
|
|
int tile_col);
|
2014-12-03 00:47:41 +01:00
|
|
|
|
2017-02-10 11:55:50 +01:00
|
|
|
void vp9_encode_sb_row(struct VP9_COMP *cpi, struct ThreadData *td,
|
|
|
|
int tile_row, int tile_col, int mi_row);
|
|
|
|
|
2017-02-13 19:16:42 +01:00
|
|
|
void vp9_set_variance_partition_thresholds(struct VP9_COMP *cpi, int q,
|
|
|
|
int content_state);
|
2015-02-09 19:21:17 +01:00
|
|
|
|
2014-01-18 21:16:11 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
#endif // VP9_ENCODER_VP9_ENCODEFRAME_H_
|