summaryrefslogtreecommitdiff
path: root/drivers/mxc/vpu-malone/Malone_Firmware/DecKLib/KernelIF/DecKernelLibCfg.h
blob: 8cee711dc10cd93f0dea5842a8e4e262cd3fcb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/***************************************************
  Copyright (c) 2015 Amphion Semiconductor Ltd
                All rights reserved.
 ***************************************************
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 ****************************************************

  Filename:        DecLibCfg.h
  Description:     Decoder Library Configuration
  Author:          Media IP FW team (Belfast & Shanghai)

 *******************************************************/

#ifndef _DECODER_LIB_CFG_H_
#define _DECODER_LIB_CFG_H_

/////////////////////////////////////////////////////////////////////////////////
//  Header files
/////////////////////////////////////////////////////////////////////////////////

#ifndef VPU_KERNEL_BUILD
#include "video_subsystem.h"
#endif
#include "mediaip_fw_types.h"

/////////////////////////////////////////////////////////////////////////////////
//  Global Macros
/////////////////////////////////////////////////////////////////////////////////

/* Local defines cast to those in global cfg file */
#define   DECODERLIB_MAX_MALONES           MEDIAIP_MAX_NUM_MALONES
#define   DECODERLIB_MAX_DBE_UNITS         0x2

/* These don't really need to be passed in the cfg methinks... */
#define   DECODERLIB_NUM_STREAMS           NUM_DECODER_STREAMS
#define   DECODERLIB_MAX_NUM_FRAMES        MAX_NUM_FRAMES_PER_STREAM
#if HEVC_JVT_MODEL < 92
#define   DECODERLIB_MAX_MBI_FRAMES        0x12
#else
#define   DECODERLIB_MAX_MBI_FRAMES        0x11
#endif
#define   DECODERLIB_MAX_DFE_AREAS         0x1
#define   DECODERLIB_MAX_NUM_OVLP_FRMS     1
#define   DECODERLIB_METADATA_AREA_NULL    0xFF
#define   DECODERLIB_NUM_EVENTS_PER_STREAM 4
#define   DECODERLIB_NUM_CMDS_PER_STREAM   4

#define   DECODERLIB_MAX_MVC_DPID          1
#define   DECODERLIB_MAX_MVC_TARGET_VIEWS  2
#define   DECODERLIB_MAX_MVC_VIEWS         4

#define   DECODERLIB_MAX_DPVS                0x1
#define   DECODERLIB_PIXIF_MAX_UPIX_TARGETS  0x2
#define   DECODERLIB_PIXIF_MAX_FBC_TARGETS   0x2
#define   DECODERLIB_MAX_STREAM_LEVELS       DECODERLIB_MAX_MVC_VIEWS


#define   DECODERLIB_MAX_STR_BUFFERS       DECODERLIB_MAX_STREAM_LEVELS
#define   DECODERLIB_RC4_CONTEXT_VALS      66

#if ( TARGET_LEVEL == HAPS ) || ( TARGET_LEVEL == SIMULATION )
#define   DECODERLIB_NUM_DBG_FIFOS 26
#else
#define   DECODERLIB_NUM_DBG_FIFOS 1
#endif

#ifdef DECLIB_ENABLE_DCP
#define   DECODERLIB_MAX_CQ_PER_MALONE     0x3
#else
#define   DECODERLIB_MAX_CQ_PER_MALONE     0x1
#endif

// Enable processing of PAFF streams
// If defined Field frame storage choice is made at a picture level
// otherwise it is made as a sequence level
//#define PIXIF_STORE_AS_PAFF

//-------------------------------------------------
// Some options for testing different HW Configs
//-------------------------------------------------
//#define FSLCACHE0_BYPASS
#define ALLOW_CHROMA_DP
#define ALLOW_MPS_ALIGN
#define ALLOW_OFFSET_FS
//#define FORCE_UNCACHED_8x8
//-------------------------------------------------

#endif /* _DECODER_LIB_CFG_H_ */

/* End of File */