summaryrefstree
path: root/vendor/etc/media_cliffs_v0/video_system_specs.json
blob: e96e2ed8ad55642bdd4e6b2ac9bb801bf623f545 (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
// 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": 0,
            "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,
            // 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
        },

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

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

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

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

        "QC2PostProcessingFilters": {
            "aisrFilter": [
                "c2.qti.aisr.filter",
                "c2.qti.aisr.filter.secure"
            ],
            "displayAdapterFilter": [
                "c2.qti.displayadapter.filter",
                "c2.qti.displayadapter.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": [
        ]
    }
}