/****************************************************************************** * * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ***************************************************************************** * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore */ /** ****************************************************************************** * * @file ihevce_rc_structs.h * * @brief * This file contains rc interface structures and prototypes * * @author * Ittiam * ****************************************************************************** */ #ifndef _IHEVCE_RC_STRUCTS_H_ #define _IHEVCE_RC_STRUCTS_H_ /*****************************************************************************/ /* Constant Macros */ /*****************************************************************************/ #define MAX_NUM_TEMPORAL_LAYERS 4 #define HALF_MAX_SCENE_ARRAY_QP MAX_SCENE_NUM / 2 /*moderate value of fsim to be passed when LAP is not enabled*/ #define MODERATE_FSIM_VALUE 110 #define MODERATE_LAP2_COMPLEXITY_Q7 25 /*also present in RATE CONTROL HEADER FILE with same name*/ #define MAX_LAP_COMPLEXITY_Q7 90 /*value of maximum variance in content used to generate offline model.*/ #define MAX_LAP_VAR 1000 #define AVG_LAP_VAR 400 /*buffer to store bit consumption between rdopt and entropy to calculate correction in entropy thread*/ #define NUM_BUF_RDOPT_ENT_CORRECT (NUM_FRMPROC_ENTCOD_BUFS + 1) //+(1<