summaryrefstree
path: root/vendor/etc/media_pineapple/video_system_specs.json
blob: 4be9910aa096d0e553fcfc4ebd3c91bcbf19fb55 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// If you modify this file,
//    1. Push it to /vendor/etc/media_pineapple/video_system_specs.json on the device
//    2. Kill media.hwcodec to get the new changed values.
// Note: Please do not use hexadecimal values 0x in this file.
{
    "Video": {
    // feature list used for enable/disable
        "Features": {
            // This is used for encoder color space conversion with custom matrix.
            // custom matrix is defined in kernel driver
            // this triggers to enable CSC to 709LR with custom matrix
            "enc_csc_custom_matrix": false,
            // encoder csc enable
            "enc_csc_enable": false
        },
        "Presets": {
            // control to force enable linear color format for encoder
            // if this is enable, then encoder will ask camera via
            // consumer flag to inform usage of linear color format.
            // it is used only for camera path. can't be used for non-camera producer case
            // it is bitmask:
            //  0: no override,
            //  1: enable 8 bit: linear format. 10 bit: compressed format
            //  2: 8 bit: compressed format. 10 bit: linear format
            //  3: 8 bit: linear format. 10 bit: linear format
            "enc_linear_color_format": 0,
            // override chroma qp offset value for 8 and 10 bits:
            // default: 0
            // allowed override value: -12
            "enc_chroma_qp_offset_10_bit": -12,
            "enc_chroma_qp_offset_8_bit": 0,
            // video certified version capability used for MediaCodec - MLVEC
            "vt_certified_version": 0,
            //encoder bitrate savings control (CAC) - content adaptive coding feature
            // it is bitmask.
            //  0x0: disable CAC
            //  0x1: 8 bit: enable.  10 bit: disable
            //  0x2: 8 bit: disable. 10 bit: enable
            //  0x3: 8 bit: enable.  10 bit: enable
            "enc_bitrate_savings": 3,
            // override default primaries to BT709 for >=UHD decode
            "default_primaries_override" : 1,
            // max input work count, max output work done in one dump file
            // if frame count in dump file is larger than max work count,
            // will dump in a new file
            // if set to 0, this feature is not enabled, all frames will dump
            // into one file.
            //This is debug feature, can slow down performance, work only for non secure case.
            "max_input_work_count_for_dump": 0,
            // Set max input dump count, max output work donw to limit dump file size.
            // It specifies number of input or output worked dumped.
            // Only keep last two dump files, remove all others.
            // No IDR cut for new file. If a few frames mosaic at beginning, it is expected.
            // A txt file is generated to record frame index,
            // frame size and frame type for every frame.
            // Name of txt file is like 20230512_142335_18.txt, 15 bytes system time, last session id.
            "max_output_work_done_for_dump": 0,
            // dump will begin from this timestamp, in us
            // like 3004355, this means dump from 3.004355s
            "timestamp_begin_to_dump": 0,
            // dump location, if not set, will use default location
            // dump location like /data/vendor/media/qc2/, absolute path
            // max dump location length should less than 128 bytes.
            "dump_location": 0,
            // create a new thread to execute vpp start
            // if set to a positive integer like 2000, main thread will wait for vpp start at most 2s
            // if set to 0, just execute vpp start in main thread.
            "vpp_max_retry_vpp_start_timeout": 0,
            // client can set thier own log mask by default
            "qc2_log_mask": 0,
            // Set the bufferpool fence wait time in case of decoder. The value is in milliseconds.
            // Default value of this wait time is 150ms, even if this value is not set in this file.
            // Lower wait time might increase the thread activity in some corner cases.
            // Higher wait time might affect stop latency in some cases.
            "dec_bufferpool_fence_wait_time_ms": 30
        },

        "ProsightModeBitrateTable": [
            // 2D-array of [min_mb, max_mb, bitrate]
            [3600, 8100, 120],
            [8100, 8640, 160],
            [8640, 32420, 245]
         ],

        "DolbyVision": {
            "profiles": [5, 8],
            "max_main_tier_level": 10,
            "max_high_tier_level": 10
        },

        // list of codec plugin libraries to be loaded into codec registry
        "QC2CodecPlugins": [
            "libqc2sdrplusfilter.so",
            "libqc2displayadapterfilter.so",
            "libqc2aisr2filter.so",
            "libqcodec2_imgtxrfilter.so",
            "libc2vividfilter.so",
            "libqcodec2_dolbydecoderfilter.so"
        ],

        "QC2PreProcessingFilters": [
            "libqcodec2_imgtxrfilter.so",
            "libqcodec2_streaminteg_filter.so",
            "libc2vividfilter.so"
        ],

        "QC2PostProcessingFilters": {
            "vppFilter": [
                "c2.qti.vpp.filter",
                "c2.qti.vpp.filter.secure"
            ],
            "aisrFilter": [
                "c2.qti.aisr.filter",
                "c2.qti.aisr.filter.secure"
            ],
            "displayAdapterFilter": [
                "c2.qti.displayadapter.filter",
                "c2.qti.displayadapter.filter.secure"
            ],
            "SdrPlus": [
                "c2.qti.sdrplus.filter",
                "c2.qti.sdrplus.filter.secure"
            ]


        },

        //
        // Put below optional codecs under "OptionalCodecs" to enable it
        // "c2.qti.dv.decoder",
        // "c2.qti.dv.decoder.secure",
        // "c2.qti.dv.encoder"
        //
        "OptionalCodecs": [
            "c2.qti.dv.decoder",
            "c2.qti.dv.decoder.secure"
        ]
    }
}