This commit is contained in:
Anthony Minessale
2019-09-11 15:51:47 +00:00
committed by Andrey Volk
parent 34fcadbd53
commit ceb051af4e
821 changed files with 89961 additions and 48650 deletions

View File

@@ -8,8 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef VP8_ENCODER_ONYX_INT_H_
#define VP8_ENCODER_ONYX_INT_H_
#ifndef VPX_VP8_ENCODER_ONYX_INT_H_
#define VPX_VP8_ENCODER_ONYX_INT_H_
#include <stdio.h>
#include "vpx_config.h"
@@ -57,6 +57,9 @@ extern "C" {
#define VP8_TEMPORAL_ALT_REF !CONFIG_REALTIME_ONLY
/* vp8 uses 10,000,000 ticks/second as time stamp */
#define TICKS_PER_SEC 10000000
typedef struct {
int kf_indicated;
unsigned int frames_since_key;
@@ -257,6 +260,7 @@ typedef struct {
int count_mb_ref_frame_usage[MAX_REF_FRAMES];
int last_q[2];
} LAYER_CONTEXT;
typedef struct VP8_COMP {
@@ -510,6 +514,7 @@ typedef struct VP8_COMP {
int force_maxqp;
int frames_since_last_drop_overshoot;
int last_pred_err_mb;
// GF update for 1 pass cbr.
int gf_update_onepass_cbr;
@@ -695,6 +700,8 @@ typedef struct VP8_COMP {
// Use the static threshold from ROI settings.
int use_roi_static_threshold;
int ext_refresh_frame_flags_pending;
} VP8_COMP;
void vp8_initialize_enc(void);
@@ -714,8 +721,8 @@ void vp8_set_speed_features(VP8_COMP *cpi);
#if CONFIG_DEBUG
#define CHECK_MEM_ERROR(lval, expr) \
do { \
lval = (expr); \
if (!lval) \
(lval) = (expr); \
if (!(lval)) \
vpx_internal_error(&cpi->common.error, VPX_CODEC_MEM_ERROR, \
"Failed to allocate " #lval " at %s:%d", __FILE__, \
__LINE__); \
@@ -723,8 +730,8 @@ void vp8_set_speed_features(VP8_COMP *cpi);
#else
#define CHECK_MEM_ERROR(lval, expr) \
do { \
lval = (expr); \
if (!lval) \
(lval) = (expr); \
if (!(lval)) \
vpx_internal_error(&cpi->common.error, VPX_CODEC_MEM_ERROR, \
"Failed to allocate " #lval); \
} while (0)
@@ -733,4 +740,4 @@ void vp8_set_speed_features(VP8_COMP *cpi);
} // extern "C"
#endif
#endif // VP8_ENCODER_ONYX_INT_H_
#endif // VPX_VP8_ENCODER_ONYX_INT_H_