• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright (C) 2018 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *****************************************************************************
18  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19 */
20 /*!
21 ******************************************************************************
22 * \file ihevce_frame_process_utils.h
23 *
24 * \brief
25 *    This file contains declarations of top level functions related to frame
26 *    processing
27 *
28 * \date
29 *    18/09/2012
30 *
31 * \author
32 *    Ittiam
33 *
34 ******************************************************************************
35 */
36 
37 #ifndef _IHEVCE_FRAME_PROCESS_UTILS_H_
38 #define _IHEVCE_FRAME_PROCESS_UTILS_H_
39 
40 /*****************************************************************************/
41 /* Constant Macros                                                           */
42 /*****************************************************************************/
43 
44 #define C1 13317 /* This value is twice of (0.01*255)^2 in Q11*/
45 #define C2 119854 /* This value is twice of (0.03*255)^2 in Q11*/
46 
47 /*****************************************************************************/
48 /* Function Macros                                                           */
49 /*****************************************************************************/
50 
51 /*****************************************************************************/
52 /* Typedefs                                                                  */
53 /*****************************************************************************/
54 
55 /*****************************************************************************/
56 /* Enums                                                                     */
57 /*****************************************************************************/
58 
59 /*****************************************************************************/
60 /* Structure                                                                 */
61 /*****************************************************************************/
62 
63 /*****************************************************************************/
64 /* Extern Variable Declarations                                              */
65 /*****************************************************************************/
66 
67 /*****************************************************************************/
68 /* Extern Function Declarations                                              */
69 /*****************************************************************************/
70 
71 WORD32 ihevce_get_cur_frame_qp(
72     WORD32 static_params_frame_qp,
73     WORD32 slice_type,
74     WORD32 temporal_id,
75     WORD32 min_qp,
76     WORD32 max_qp,
77     rc_quant_t *ps_rc_quant_ctxt);
78 
79 void ihevce_fill_sei_payload(
80     enc_ctxt_t *ps_enc_ctxt,
81     ihevce_lap_enc_buf_t *ps_curr_inp,
82     frm_proc_ent_cod_ctxt_t *ps_curr_out);
83 
84 void ihevce_dyn_bitrate(void *pv_hle_ctxt, void *pv_dyn_bitrate_prms);
85 
86 #endif /* _IHEVCE_FRAME_PROCESS_UTILS_H_ */
87