• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 HiHope Open Source Organization .
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef Index_Ext_h
17 #define Index_Ext_h
18 
19 #include <OMX_Index.h>
20 
21 #define ROCKCHIP_INDEX_PARAM_ENABLE_THUMBNAIL \
22     "OMX.SEC.index.enableThumbnailMode"
23 #define ROCKCHIP_INDEX_CONFIG_VIDEO_INTRAPERIOD \
24     "OMX.SEC.index.VideoIntraPeriod"
25 #define ROCKCHIP_INDEX_PARAM_ENABLE_ANB    \
26     "OMX.rockchip.index.enableAndroidNativeBuffers"
27 #define ROCKCHIP_INDEX_PARAM_GET_ANB_Usage  \
28     "OMX.rockchip.index.getAndroidNativeBufferUsage"
29 #define ROCKCHIP_INDEX_PARAM_USE_ANB      \
30     "OMX.rockchip.index.useAndroidNativeBuffer2"
31 #define ROCKCHIP_INDEX_PARAM_STORE_METADATA_BUFFER  \
32     "OMX.rockchip.index.storeMetaDataInBuffers"
33 #define ROCKCHIP_INDEX_PARAM_STORE_ANW_BUFFER   \
34     "OMX.rockchip.index.storeANWBufferInMetadata"
35 #define ROCKCHIP_INDEX_PARAM_PREPEND_SPSPPS_TO_IDR  \
36     "OMX.rockchip.index.prependSPSPPSToIDRFrames"
37 #define ROCKCHIP_INDEX_PARAM_RKWFD  \
38     "OMX.rk.index.encoder.wifidisplay"
39 #define ROCKCHIP_INDEX_PARAM_THUMBNAIL_CODECPROFILE \
40     "OMX.rk.index.decoder.thumbnail.codecprofile"
41 #define ROCKCHIP_INDEX_PREPARE_ADAPTIVE_PLAYBACK \
42     "OMX.rockchip.index.prepareForAdaptivePlayback"
43 #define ROCKCHIP_INDEX_DESCRIBE_COLORFORMAT \
44     "OMX.rockchip.index.describeColorFormat"
45 #define ROCKCHIP_INDEX_PARAM_ROCKCHIP_DEC_EXTENSION_DIV3  \
46     "OMX.rk.index.decoder.extension.div3"
47 #define ROCKCHIP_INDEX_PARAM_ROCKCHIP_DEC_EXTENSION_USE_DTS \
48     "OMX.rk.index.decoder.extension.useDts"
49 #define ROCKCHIP_INDEX_PARAM_ROCKCHIP_DEC_EXTENSION_THUMBNAILCODECPROFILE  \
50     "OMX.rk.index.decoder.extension.thumbNailcodecProfile"
51 #define ROCKCHIP_INDEX_PARAM_EXTENDED_VIDEO \
52     "OMX.Topaz.index.param.extended_video"
53 #define ROCKCHIP_INDEX_PARAM_DSECRIBECOLORASPECTS \
54     "OMX.rockchip.index.describeColorAspects"
55 #define ROCKCHIP_INDEX_PARAM_ALLOCATENATIVEHANDLE \
56     "OMX.rockchip.index.allocateNativeHandle"
57 
58 typedef enum OMX_INDEXEXEXTTYPE {
59     OMX_IndexRockchipExtensions = 0x70000000,
60     OMX_IndexParamVideoHDRRockchipExtensions,
61     OMX_IndexParamEnableThumbnailMode = 0x7F000001,
62     OMX_IndexConfigVideoIntraPeriod = 0x7F000002,
63     OMX_IndexParamEnableAndroidBuffers = 0x7F000011,
64     OMX_IndexParamGetAndroidNativeBufferUsage = 0x7F000012,
65     OMX_IndexParamUseAndroidNativeBuffer = 0x7F000013,
66     OMX_IndexParamStoreMetaDataBuffer = 0x7F000014,
67     OMX_IndexParamPrependSPSPPSToIDR = 0x7F000015,
68     OMX_IndexRkEncExtendedWfdState = 0x7F000018,
69     OMX_IndexParamprepareForAdaptivePlayback = 0x7F000016,
70     OMX_IndexParamdescribeColorFormat = 0x7F000017,
71     OMX_IndexParamRkDecoderExtensionDiv3 = 0x7F050000,
72     OMX_IndexParamRkDecoderExtensionUseDts = 0x7F050001,
73     OMX_IndexParamRkDecoderExtensionThumbNailCodecProfile  = 0x7F050002,
74     OMX_IndexParamRkEncExtendedVideo = 0x7F050003,
75     OMX_IndexParamRkDescribeColorAspects = 0x7F000062,
76     OMX_IndexParamAllocateNativeHandle = 0x7F00005D,
77     OMX_IndexParamStoreANWBuffer = 0x7F00006D,
78 
79     OMX_IndexParamAudioAndroidAc3 = OMX_IndexKhronosExtensions + 0x00400001,
80     OMX_IndexParamAudioAndroidOpus,
81     OMX_IndexParamAudioAndroidAacPresentation,
82     OMX_IndexParamAudioAndroidEac3,
83     OMX_IndexParamAudioProfileQuerySupported,
84     OMX_IndexParamVideoAndroidVp8Encoder = OMX_IndexKhronosExtensions + 0x00600007,
85     OMX_IndexParamSliceSegments,
86     OMX_IndexConfigAndroidIntraRefresh,
87     OMX_IndexParamAndroidVideoTemporalLayering,
88     OMX_IndexConfigAndroidVideoTemporalLayering,
89     OMX_IndexConfigAutoFramerateConversion = OMX_IndexKhronosExtensions + 0x00800000,
90     OMX_IndexConfigPriority,
91     OMX_IndexConfigOperatingRate,
92     OMX_IndexParamConsumerUsageBits,
93 } OMX_INDEXEXEXTTYPE;
94 
95 
96 #endif