xref: /aosp_15_r20/external/libavc/decoder/mvc/imvcd_defs.h (revision 495ae853bb871d1e5a258cb02c2cc13cde8ddb9a)
1 /******************************************************************************
2  *
3  * Copyright (C) 2021 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 #ifndef _IMVCD_DEFS_H_
22 #define _IMVCD_DEFS_H_
23 
24 #include <stdint.h>
25 
26 #include "ih264_typedefs.h"
27 #include "imvc_defs.h"
28 #include "ih264d_defs.h"
29 
30 #define MVC_MAX_REF_PICS MAX(16 * LOG2_MAX_NUM_VIEWS, 2 * H264_MAX_REF_PICS)
31 
32 /* Set to identify between actual ref pic with valid u1_pic_buf_id
33    and replicated IVP ref pic! Ensure that MAX_VAL_PIC_BUF_ID-MAX_NUM_VIEWS
34    is still greater than any possible value of u1_pic_buf_id */
35 #define IVP_PIC_BUF_ID UINT8_MAX
36 
37 #define MIN_BITSTREAMS_BUF_SIZE 256000
38 
39 #endif
40