Home
last modified time | relevance | path

Searched refs:colorPrimaries (Results 1 - 19 of 19) sorted by relevance

/foundation/multimedia/av_codec/test/nativedemo/avmuxer/
H A Davmuxer_demo_common.c75 .colorPrimaries = 2,
89 .colorPrimaries = 2,
103 .colorPrimaries = 2,
117 .colorPrimaries = 9,
H A Davmuxer_demo_common.h37 int colorPrimaries; member
H A Davmuxer_demo_base.cpp548 videoParams->Set<Tag::VIDEO_COLOR_PRIMARIES>(static_cast<Plugins::ColorPrimary>(param->colorPrimaries)); in AddVideoTrack()
H A Dnative_avmuxer_demo.c138 OH_AVFormat_SetIntValue(formatVideo, OH_MD_KEY_COLOR_PRIMARIES, param->colorPrimaries); in AddTrackVideo()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/heif_impl/heif_parser/box/
H A Ditem_property_color_box.h50 HeifNclxColorProfile(uint16_t colorPrimaries, uint16_t transferCharacteristics, in HeifNclxColorProfile() argument
52 : colorPrimaries_(colorPrimaries), transferCharacteristics_(transferCharacteristics), in HeifNclxColorProfile()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/
H A Ditem_property_color_box.cpp41 uint16_t colorPrimaries = reader.Read16(); in ParseContent() local
45 colorProfile_ = std::make_shared<HeifNclxColorProfile>(colorPrimaries, transferCharacteristics, in ParseContent()
/foundation/multimedia/av_codec/test/fuzztest/audiomuxer_fuzzer/
H A Daudio_muxer_demo.cpp170 param.colorPrimaries = COLOR_PRIMARIES_2; in InitFormatParam()
190 param.colorPrimaries = COLOR_PRIMARIES_9; in InitFormatParam()
277 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_COLOR_PRIMARIES, param.colorPrimaries); in AddTrack()
305 OH_AVFormat_SetIntValue(trackFormat, OH_MD_KEY_COLOR_PRIMARIES, param.colorPrimaries); in AddCoverTrack()
H A Daudio_muxer_demo.h54 int32_t colorPrimaries; member
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/heif_impl/
H A DHeifDecoder.h49 uint16_t colorPrimaries = 0; member
/foundation/multimedia/av_codec/services/services/codec/server/
H A Dcodec_param_checker.cpp499 int32_t colorPrimaries;
500 bool colorPrimariesExist = format.GetIntValue(Tag::VIDEO_COLOR_PRIMARIES, colorPrimaries);
504 PrintParam(colorPrimariesExist, Tag::VIDEO_COLOR_PRIMARIES, colorPrimaries);
506 if (colorPrimaries < static_cast<int32_t>(ColorPrimary::COLOR_PRIMARY_BT709) ||
507 colorPrimaries > static_cast<int32_t>(ColorPrimary::COLOR_PRIMARY_P3D65)) {
508 AVCODEC_LOGE("Param invalid, %{public}s: %{public}d", Tag::VIDEO_COLOR_PRIMARIES, colorPrimaries);
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_format_helper.h52 uint8_t colorPrimaries = 0x02; member
H A Dffmpeg_format_helper.cpp720 ColorPrimary colorPrimaries = FFMpegConverter::ConvertFFMpegToOHColorPrimaries(avStream.codecpar->color_primaries); in ParseColorBoxInfo() local
721 format.Set<Tag::VIDEO_COLOR_PRIMARIES>(colorPrimaries); in ParseColorBoxInfo()
741 ColorPrimary colorPrimaries = FFMpegConverter::ConvertFFMpegToOHColorPrimaries( in ParseHevcInfo() local
742 static_cast<AVColorPrimaries>(parse.colorPrimaries)); in ParseHevcInfo()
743 format.Set<Tag::VIDEO_COLOR_PRIMARIES>(colorPrimaries); in ParseHevcInfo()
H A Dffmpeg_demuxer_plugin.cpp1198 parse.colorPrimaries = streamParser_->GetColorPrimaries(); in ParseHEVCMetadataInfo()
/foundation/multimedia/av_codec/test/unittest/avsource_test/
H A Davsource_unit_test.h93 int32_t colorPrimaries = 0; member
H A Davsource_unit_test.cpp175 formatVal_.colorPrimaries = 0; in ResetFormatValue()
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.cpp430 ColorPrimary colorPrimaries = ColorPrimary::UNSPECIFIED; in SetCodecParameterColor() local
434 trackDesc->Get<Tag::VIDEO_COLOR_PRIMARIES>(colorPrimaries); in SetCodecParameterColor()
439 " range %{public}d,", colorPrimaries, colorTransfer, colorMatrixCoeff, colorRange); in SetCodecParameterColor()
441 auto colorPri = ColorPrimary2AVColorPrimaries(colorPrimaries); in SetCodecParameterColor()
443 "failed to match color primary %{public}d", colorPrimaries); in SetCodecParameterColor()
492 uint8_t colorPrimaries = hevcParser_->GetColorPrimaries(); in SetCodecParameterColorByParser() local
496 " range %{public}d,", colorPrimaries, colorTransfer, colorMatrixCoeff, colorRange); in SetCodecParameterColorByParser()
498 auto colorPri = ColorPrimary2AVColorPrimaries(static_cast<ColorPrimary>(colorPrimaries)); in SetCodecParameterColorByParser()
500 "failed to match color primary %{public}d", colorPrimaries); in SetCodecParameterColorByParser()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/
H A DHeifDecoderImpl.cpp388 info->nclxColor.colorPrimaries = nclx->GetColorPrimaries(); in SetColorSpaceInfo()
1140 imageInfo_.nclxColor.colorPrimaries == BT2020_PRIMARIES) { in getHdrType()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_decoder.cpp1533 return ColorUtils::CicpToColorSpace(info.nclxColor.colorPrimaries, info.nclxColor.transferCharacteristics, in HeapMemAlloc()
2069 gainmap = ColorUtils::CicpToColorSpace(gainmapInfo.nclxColor.colorPrimaries, in HeapMemAlloc()
2076 hdr = ColorUtils::CicpToColorSpace(tmapInfo.nclxColor.colorPrimaries, in HeapMemAlloc()
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dproc_test.cpp1115 int32_t colorPrimaries; in HWTEST_F() local
1143 ASSERT_FALSE(OH_AVFormat_GetIntValue(trackFormatFirst, OH_MD_KEY_COLOR_PRIMARIES, &colorPrimaries)); in HWTEST_F()

Completed in 27 milliseconds