Signed-off-by: hwx1255622 <hechunrui@huawei.com>

Change-Id: I4989ce9bc3766ec684539224f6f179f07dcd09b9
This commit is contained in:
hwx1255622 2024-04-24 11:16:18 +08:00
parent 60a38134e9
commit dbe948bfa1
9 changed files with 70 additions and 70 deletions

View File

@ -36,7 +36,7 @@ ohos_moduletest_suite("HatsHdfCodecBenchmarkTest") {
external_deps = [
"c_utils:utils",
"drivers_interface_codec:codec_idl_headers",
"drivers_interface_codec:libcodec_proxy_2.0",
"drivers_interface_codec:libcodec_proxy_3.0",
"drivers_interface_display:display_buffer_idl_headers",
"drivers_interface_display:display_composer_idl_headers",
"drivers_interface_display:libdisplay_buffer_hdi_impl",

View File

@ -14,13 +14,13 @@
*/
#include <gtest/gtest.h>
#include <benchmark/benchmark.h>
#include "v2_0/codec_callback_service.h"
#include "v2_0/icodec_callback.h"
#include "v2_0/icodec_component_manager.h"
#include "v3_0/codec_callback_service.h"
#include "v3_0/icodec_callback.h"
#include "v3_0/icodec_component_manager.h"
using namespace std;
using namespace testing::ext;
using OHOS::sptr;
using namespace OHOS::HDI::Codec::V2_0;
using namespace OHOS::HDI::Codec::V3_0;
constexpr int64_t APP_DATA = 3;
namespace {
class CodecBenchmarkManagerTest : public benchmark::Fixture {

View File

@ -24,9 +24,9 @@
#include <vector>
#include <benchmark/benchmark.h>
#include "codec_omx_ext.h"
#include "v2_0/codec_callback_service.h"
#include "v2_0/icodec_component.h"
#include "v2_0/icodec_component_manager.h"
#include "v3_0/codec_callback_service.h"
#include "v3_0/icodec_component.h"
#include "v3_0/icodec_component_manager.h"
#include "v1_0/display_composer_type.h"
#include "v1_0/display_buffer_type.h"
#include "v1_0/include/idisplay_buffer.h"
@ -40,7 +40,7 @@ using namespace std;
using namespace testing::ext;
using OHOS::sptr;
using OHOS::HDI::Base::NativeBuffer;
using namespace OHOS::HDI::Codec::V2_0;
using namespace OHOS::HDI::Codec::V3_0;
using namespace OHOS::HDI::Display::Buffer::V1_0;
using namespace OHOS::HDI::Display::Composer::V1_0;
namespace {
@ -58,7 +58,7 @@ static IDisplayBuffer *gralloc_ = nullptr;
static sptr<ICodecComponent> component_ = nullptr;
static sptr<ICodecCallback> callback_ = nullptr;
static sptr<ICodecComponentManager> manager_ = nullptr;
static OHOS::HDI::Codec::V2_0::CodecVersionType version_;
static OHOS::HDI::Codec::V3_0::CodecVersionType version_;
static inline std::string compName_ = "";
class CodecBenchmarkOmxTest : public benchmark::Fixture {
@ -280,8 +280,8 @@ BENCHMARK_F(CodecBenchmarkOmxTest, ComponentTunnelRequest)(benchmark::State &sta
int32_t ret;
const int32_t tunneledComp = TUNNELECOMP;
const uint32_t tunneledPort = TUNNELEDPORT;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_INPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_INPUT;
for (auto _ : state) {
ret = component_->ComponentTunnelRequest(outputIndex, tunneledComp, tunneledPort,
tunnelSetup, tunnelSetup);

View File

@ -13,13 +13,13 @@
* limitations under the License.
*/
#include "v2_0/codec_callback_service.h"
#include "v3_0/codec_callback_service.h"
#include <hdf_base.h>
namespace OHOS {
namespace HDI {
namespace Codec {
namespace V2_0 {
namespace V3_0 {
int32_t CodecCallbackService::EventHandler(CodecEventType event, const EventInfo &info)
{
(void)event;
@ -40,7 +40,7 @@ int32_t CodecCallbackService::FillBufferDone(int64_t appData, const OmxCodecBuff
(void)buffer;
return HDF_SUCCESS;
}
} // V2_0
} // V3_0
} // Codec
} // HDI
} // OHOS

View File

@ -13,15 +13,15 @@
* limitations under the License.
*/
#ifndef OHOS_HDI_CODEC_V2_0_CODECCALLBACKSERVICE_H
#define OHOS_HDI_CODEC_V2_0_CODECCALLBACKSERVICE_H
#ifndef OHOS_HDI_CODEC_V3_0_CODECCALLBACKSERVICE_H
#define OHOS_HDI_CODEC_V3_0_CODECCALLBACKSERVICE_H
#include "v2_0/icodec_callback.h"
#include "v3_0/icodec_callback.h"
namespace OHOS {
namespace HDI {
namespace Codec {
namespace V2_0 {
namespace V3_0 {
class CodecCallbackService : public ICodecCallback {
public:
CodecCallbackService() = default;
@ -30,9 +30,9 @@ public:
int32_t EmptyBufferDone(int64_t appData, const OmxCodecBuffer &buffer) override;
int32_t FillBufferDone(int64_t appData, const OmxCodecBuffer &buffer) override;
};
} // V2_0
} // V3_0
} // Codec
} // HDI
} // OHOS
#endif // OHOS_HDI_CODEC_V2_0_CODECCALLBACKSERVICE_H
#endif // OHOS_HDI_CODEC_V3_0_CODECCALLBACKSERVICE_H

View File

@ -38,7 +38,7 @@ ohos_moduletest_suite("HatsHdfTestComponentCodecAdditionalTest") {
external_deps = [
"c_utils:utils",
"drivers_interface_codec:codec_idl_headers",
"drivers_interface_codec:libcodec_proxy_2.0",
"drivers_interface_codec:libcodec_proxy_3.0",
"drivers_interface_display:display_buffer_idl_headers",
"drivers_interface_display:display_composer_idl_headers",
"drivers_interface_display:libdisplay_buffer_hdi_impl",

View File

@ -13,13 +13,13 @@
* limitations under the License.
*/
#include "v2_0/codec_callback_service.h"
#include "v3_0/codec_callback_service.h"
#include <hdf_base.h>
namespace OHOS {
namespace HDI {
namespace Codec {
namespace V2_0 {
namespace V3_0 {
int32_t CodecCallbackService::EventHandler(CodecEventType event, const EventInfo &info)
{
(void)event;
@ -40,7 +40,7 @@ int32_t CodecCallbackService::FillBufferDone(int64_t appData, const OmxCodecBuff
(void)buffer;
return HDF_SUCCESS;
}
} // namespace V2_0
} // namespace V3_0
} // namespace Codec
} // namespace HDI
} // namespace OHOS

View File

@ -13,15 +13,15 @@
* limitations under the License.
*/
#ifndef OHOS_HDI_CODEC_V2_0_CODECCALLBACKSERVICE_H
#define OHOS_HDI_CODEC_V2_0_CODECCALLBACKSERVICE_H
#ifndef OHOS_HDI_CODEC_V3_0_CODECCALLBACKSERVICE_H
#define OHOS_HDI_CODEC_V3_0_CODECCALLBACKSERVICE_H
#include "v2_0/icodec_callback.h"
#include "v3_0/icodec_callback.h"
namespace OHOS {
namespace HDI {
namespace Codec {
namespace V2_0 {
namespace V3_0 {
class CodecCallbackService : public ICodecCallback {
public:
CodecCallbackService() = default;
@ -30,9 +30,9 @@ public:
int32_t EmptyBufferDone(int64_t appData, const OmxCodecBuffer &buffer) override;
int32_t FillBufferDone(int64_t appData, const OmxCodecBuffer &buffer) override;
};
} // V2_0
} // V3_0
} // Codec
} // HDI
} // OHOS
#endif // OHOS_HDI_CODEC_V1_0_CODECCALLBACKSERVICE_H
#endif // OHOS_HDI_CODEC_V3_0_CODECCALLBACKSERVICE_H

View File

@ -13,12 +13,12 @@
* limitations under the License.
*/
#include "codec_omx_ext.h"
#include "v2_0/codec_callback_service.h"
#include "v3_0/codec_callback_service.h"
#include "v1_0/display_buffer_type.h"
#include "v1_0/display_composer_type.h"
#include "v2_0/icodec_callback.h"
#include "v2_0/icodec_component.h"
#include "v2_0/icodec_component_manager.h"
#include "v3_0/icodec_callback.h"
#include "v3_0/icodec_component.h"
#include "v3_0/icodec_component_manager.h"
#include "v1_0/include/idisplay_buffer.h"
#include <OMX_Component.h>
#include <OMX_Core.h>
@ -34,7 +34,7 @@
using namespace std;
using namespace testing::ext;
using OHOS::sptr;
using namespace OHOS::HDI::Codec::V2_0;
using namespace OHOS::HDI::Codec::V3_0;
namespace {
constexpr CodecType TYPE = CodecType::VIDEO_ENCODER;
constexpr AvCodecRole ROLE = MEDIA_ROLETYPE_VIDEO_AVC;
@ -910,8 +910,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest001, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1;
const uint32_t tunneledPort = 1;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_INPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_INPUT;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -930,8 +930,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest002, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_INPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_INPUT;
ret = g_component->ComponentTunnelRequest(INPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -950,8 +950,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest003, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_OUTPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_OUTPUT;
ret = g_component->ComponentTunnelRequest(INPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -970,8 +970,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest004, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_OUTPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_OUTPUT;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -990,8 +990,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest005, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_OUTPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_OUTPUT;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1010,8 +1010,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest006, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_OUTPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_OUTPUT;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1030,8 +1030,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest007, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_OUTPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_OUTPUT;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1050,8 +1050,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest008, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_OUTPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_OUTPUT;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1070,8 +1070,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest009, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_OUTPUT;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_OUTPUT;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1091,8 +1091,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest010, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_UNSPECIFIED;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_UNSPECIFIED;
ret = g_component->ComponentTunnelRequest(INPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1112,8 +1112,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest011, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_KHRONOS_EXTENSIONS;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_KHRONOS_EXTENSIONS;
ret = g_component->ComponentTunnelRequest(INPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1133,8 +1133,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest012, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_VENDOR_START_UNUSED;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_VENDOR_START_UNUSED;
ret = g_component->ComponentTunnelRequest(INPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1153,8 +1153,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest013, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_MAX;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_MAX;
ret = g_component->ComponentTunnelRequest(INPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1174,8 +1174,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest014, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_UNSPECIFIED;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_UNSPECIFIED;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1195,8 +1195,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest015, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_KHRONOS_EXTENSIONS;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_KHRONOS_EXTENSIONS;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1216,8 +1216,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest016, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_VENDOR_START_UNUSED;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_VENDOR_START_UNUSED;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);
@ -1236,8 +1236,8 @@ HWTEST_F(CodecComponentTestAdditional, testComponentTunnelRequest017, Function |
ASSERT_EQ(ret, HDF_SUCCESS);
const int32_t tunneledComp = 1002;
const uint32_t tunneledPort = 101;
OHOS::HDI::Codec::V2_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V2_0::CODEC_BUFFER_SUPPLY_MAX;
OHOS::HDI::Codec::V3_0::CodecTunnelSetupType tunnelSetup;
tunnelSetup.supplier = OHOS::HDI::Codec::V3_0::CODEC_BUFFER_SUPPLY_MAX;
ret = g_component->ComponentTunnelRequest(OUTPUT_INDEX, tunneledComp, tunneledPort, tunnelSetup, tunnelSetup);
ASSERT_NE(ret, HDF_SUCCESS);