13d0407baSopenharmony_ci/* 23d0407baSopenharmony_ci * Copyright (C) 2021 HiHope Open Source Organization . 33d0407baSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 43d0407baSopenharmony_ci * you may not use this file except in compliance with the License. 53d0407baSopenharmony_ci * You may obtain a copy of the License at 63d0407baSopenharmony_ci * 73d0407baSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 83d0407baSopenharmony_ci * 93d0407baSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 103d0407baSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 113d0407baSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 123d0407baSopenharmony_ci * See the License for the specific language governing permissions and 133d0407baSopenharmony_ci * limitations under the License. 143d0407baSopenharmony_ci */ 153d0407baSopenharmony_ci 163d0407baSopenharmony_ci#ifndef Index_Ext_h 173d0407baSopenharmony_ci#define Index_Ext_h 183d0407baSopenharmony_ci 193d0407baSopenharmony_ci#include <OMX_Index.h> 203d0407baSopenharmony_ci 213d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_ENABLE_THUMBNAIL \ 223d0407baSopenharmony_ci "OMX.SEC.index.enableThumbnailMode" 233d0407baSopenharmony_ci#define ROCKCHIP_INDEX_CONFIG_VIDEO_INTRAPERIOD \ 243d0407baSopenharmony_ci "OMX.SEC.index.VideoIntraPeriod" 253d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_ENABLE_ANB \ 263d0407baSopenharmony_ci "OMX.rockchip.index.enableAndroidNativeBuffers" 273d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_GET_ANB_Usage \ 283d0407baSopenharmony_ci "OMX.rockchip.index.getAndroidNativeBufferUsage" 293d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_USE_ANB \ 303d0407baSopenharmony_ci "OMX.rockchip.index.useAndroidNativeBuffer2" 313d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_STORE_METADATA_BUFFER \ 323d0407baSopenharmony_ci "OMX.rockchip.index.storeMetaDataInBuffers" 333d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_STORE_ANW_BUFFER \ 343d0407baSopenharmony_ci "OMX.rockchip.index.storeANWBufferInMetadata" 353d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_PREPEND_SPSPPS_TO_IDR \ 363d0407baSopenharmony_ci "OMX.rockchip.index.prependSPSPPSToIDRFrames" 373d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_RKWFD \ 383d0407baSopenharmony_ci "OMX.rk.index.encoder.wifidisplay" 393d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_THUMBNAIL_CODECPROFILE \ 403d0407baSopenharmony_ci "OMX.rk.index.decoder.thumbnail.codecprofile" 413d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PREPARE_ADAPTIVE_PLAYBACK \ 423d0407baSopenharmony_ci "OMX.rockchip.index.prepareForAdaptivePlayback" 433d0407baSopenharmony_ci#define ROCKCHIP_INDEX_DESCRIBE_COLORFORMAT \ 443d0407baSopenharmony_ci "OMX.rockchip.index.describeColorFormat" 453d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_ROCKCHIP_DEC_EXTENSION_DIV3 \ 463d0407baSopenharmony_ci "OMX.rk.index.decoder.extension.div3" 473d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_ROCKCHIP_DEC_EXTENSION_USE_DTS \ 483d0407baSopenharmony_ci "OMX.rk.index.decoder.extension.useDts" 493d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_ROCKCHIP_DEC_EXTENSION_THUMBNAILCODECPROFILE \ 503d0407baSopenharmony_ci "OMX.rk.index.decoder.extension.thumbNailcodecProfile" 513d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_EXTENDED_VIDEO \ 523d0407baSopenharmony_ci "OMX.Topaz.index.param.extended_video" 533d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_DSECRIBECOLORASPECTS \ 543d0407baSopenharmony_ci "OMX.rockchip.index.describeColorAspects" 553d0407baSopenharmony_ci#define ROCKCHIP_INDEX_PARAM_ALLOCATENATIVEHANDLE \ 563d0407baSopenharmony_ci "OMX.rockchip.index.allocateNativeHandle" 573d0407baSopenharmony_ci 583d0407baSopenharmony_citypedef enum OMX_INDEXEXEXTTYPE { 593d0407baSopenharmony_ci OMX_IndexRockchipExtensions = 0x70000000, 603d0407baSopenharmony_ci OMX_IndexParamVideoHDRRockchipExtensions, 613d0407baSopenharmony_ci OMX_IndexParamEnableThumbnailMode = 0x7F000001, 623d0407baSopenharmony_ci OMX_IndexConfigVideoIntraPeriod = 0x7F000002, 633d0407baSopenharmony_ci OMX_IndexParamEnableAndroidBuffers = 0x7F000011, 643d0407baSopenharmony_ci OMX_IndexParamGetAndroidNativeBufferUsage = 0x7F000012, 653d0407baSopenharmony_ci OMX_IndexParamUseAndroidNativeBuffer = 0x7F000013, 663d0407baSopenharmony_ci OMX_IndexParamStoreMetaDataBuffer = 0x7F000014, 673d0407baSopenharmony_ci OMX_IndexParamPrependSPSPPSToIDR = 0x7F000015, 683d0407baSopenharmony_ci OMX_IndexRkEncExtendedWfdState = 0x7F000018, 693d0407baSopenharmony_ci OMX_IndexParamprepareForAdaptivePlayback = 0x7F000016, 703d0407baSopenharmony_ci OMX_IndexParamdescribeColorFormat = 0x7F000017, 713d0407baSopenharmony_ci OMX_IndexParamRkDecoderExtensionDiv3 = 0x7F050000, 723d0407baSopenharmony_ci OMX_IndexParamRkDecoderExtensionUseDts = 0x7F050001, 733d0407baSopenharmony_ci OMX_IndexParamRkDecoderExtensionThumbNailCodecProfile = 0x7F050002, 743d0407baSopenharmony_ci OMX_IndexParamRkEncExtendedVideo = 0x7F050003, 753d0407baSopenharmony_ci OMX_IndexParamRkDescribeColorAspects = 0x7F000062, 763d0407baSopenharmony_ci OMX_IndexParamAllocateNativeHandle = 0x7F00005D, 773d0407baSopenharmony_ci OMX_IndexParamStoreANWBuffer = 0x7F00006D, 783d0407baSopenharmony_ci 793d0407baSopenharmony_ci OMX_IndexParamAudioAndroidAc3 = OMX_IndexKhronosExtensions + 0x00400001, 803d0407baSopenharmony_ci OMX_IndexParamAudioAndroidOpus, 813d0407baSopenharmony_ci OMX_IndexParamAudioAndroidAacPresentation, 823d0407baSopenharmony_ci OMX_IndexParamAudioAndroidEac3, 833d0407baSopenharmony_ci OMX_IndexParamAudioProfileQuerySupported, 843d0407baSopenharmony_ci OMX_IndexParamVideoAndroidVp8Encoder = OMX_IndexKhronosExtensions + 0x00600007, 853d0407baSopenharmony_ci OMX_IndexParamSliceSegments, 863d0407baSopenharmony_ci OMX_IndexConfigAndroidIntraRefresh, 873d0407baSopenharmony_ci OMX_IndexParamAndroidVideoTemporalLayering, 883d0407baSopenharmony_ci OMX_IndexConfigAndroidVideoTemporalLayering, 893d0407baSopenharmony_ci OMX_IndexConfigAutoFramerateConversion = OMX_IndexKhronosExtensions + 0x00800000, 903d0407baSopenharmony_ci OMX_IndexConfigPriority, 913d0407baSopenharmony_ci OMX_IndexConfigOperatingRate, 923d0407baSopenharmony_ci OMX_IndexParamConsumerUsageBits, 933d0407baSopenharmony_ci} OMX_INDEXEXEXTTYPE; 943d0407baSopenharmony_ci 953d0407baSopenharmony_ci 963d0407baSopenharmony_ci#endif