Commit 43486e7b authored by Zoe Liu's avatar Zoe Liu
Browse files

Remove hard-coded value for MAX_EXT_ARFS

Change-Id: If44394e363cc443e46c31d91c8e03a85d91b1a92
parent 3d429dc3
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
#ifndef AV1_ENCODER_FIRSTPASS_H_ #ifndef AV1_ENCODER_FIRSTPASS_H_
#define AV1_ENCODER_FIRSTPASS_H_ #define AV1_ENCODER_FIRSTPASS_H_
#include "av1/common/enums.h"
#include "av1/common/onyxc_int.h"
#include "av1/encoder/lookahead.h" #include "av1/encoder/lookahead.h"
#include "av1/encoder/ratectrl.h" #include "av1/encoder/ratectrl.h"
...@@ -45,10 +47,10 @@ typedef struct { ...@@ -45,10 +47,10 @@ typedef struct {
// NOTE: Currently each BFG contains one backward ref (BWF) frame plus a certain // NOTE: Currently each BFG contains one backward ref (BWF) frame plus a certain
// number of bi-predictive frames. // number of bi-predictive frames.
#define BFG_INTERVAL 2 #define BFG_INTERVAL 2
// The maximum number of extra ALT_REF's // The maximum number of extra ALTREF's except ALTREF_FRAME
// NOTE: This number cannot be greater than 2 or the reference frame buffer will // NOTE: REF_FRAMES indicates the maximum number of frames that may be buffered
// overflow. // to serve as references. Currently REF_FRAMES == 8.
#define MAX_EXT_ARFS 2 #define MAX_EXT_ARFS (REF_FRAMES - BWDREF_FRAME - 1)
#define MIN_EXT_ARF_INTERVAL 4 #define MIN_EXT_ARF_INTERVAL 4
#define MIN_ZERO_MOTION 0.95 #define MIN_ZERO_MOTION 0.95
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment