/foundation/multimedia/player_framework/frameworks/native/video_editor/test/unittest/codec/video/encoder/ |
H A D | video_encoder_engine_test.cpp | 59 auto videoFormat = OH_AVFormat_Create(); in HWTEST_F() local 62 auto engine = IVideoEncoderEngine::Create(fd, videoFormat, cb); in HWTEST_F() 64 OH_AVFormat_Destroy(videoFormat); in HWTEST_F() 67 // Test when videoFormat is nullptr then Create returns nullptr. 80 auto videoFormat = OH_AVFormat_Create(); in HWTEST_F() local 82 std::shared_ptr<IVideoEncoderEngine> engine = IVideoEncoderEngine::Create(fd, videoFormat, cb); in HWTEST_F() 84 OH_AVFormat_Destroy(videoFormat); in HWTEST_F()
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/media_manager/ |
H A D | mpeg_manager.cpp | 177 Format videoFormat; in InitVideoCodec() local 179 videoFormat.PutIntValue(Tag::VIDEO_COLOR_RANGE, static_cast<int32_t>(codecInfo.colorRange)); in InitVideoCodec() 180 videoFormat.PutIntValue(Tag::VIDEO_COLOR_PRIMARIES, static_cast<int32_t>(codecInfo.colorPrimary)); in InitVideoCodec() 181 videoFormat.PutIntValue(Tag::VIDEO_COLOR_TRC, static_cast<int32_t>(codecInfo.colorTransferCharacter)); in InitVideoCodec() 182 videoFormat.PutIntValue(Tag::MEDIA_LEVEL, codecInfo.level); in InitVideoCodec() 183 videoFormat.PutIntValue(Tag::MEDIA_PROFILE, codecInfo.profile); in InitVideoCodec() 185 videoFormat.PutIntValue(Tag::VIDEO_ENCODE_BITRATE_MODE, codecInfo.bitMode); in InitVideoCodec() 186 videoFormat.PutIntValue(Tag::VIDEO_PIXEL_FORMAT, static_cast<int32_t>(PixelFormat::PIX_FMT_NV12)); in InitVideoCodec() 187 videoFormat.PutStringValue(Tag::MIME_TYPE, codecInfo.mimeType); in InitVideoCodec() 188 videoFormat in InitVideoCodec() [all...] |
/foundation/CastEngine/castengine_wifi_display/services/codec/src/ |
H A D | video_source_encoder.cpp | 129 MediaAVCodec::Format videoFormat; in ConfigEncoder() local 132 videoFormat.PutStringValue("codec_mime", "video/avc"); in ConfigEncoder() 135 videoFormat.PutStringValue("codec_mime", "video/hevc"); in ConfigEncoder() 141 videoFormat.PutIntValue("pixel_format", configure.pixleFormat_); in ConfigEncoder() 142 videoFormat.PutLongValue("max_input_size", MAX_YUV420_BUFFER_SIZE); in ConfigEncoder() 143 videoFormat.PutIntValue("width", configure.videoWidth_); in ConfigEncoder() 144 videoFormat.PutIntValue("height", configure.videoHeight_); in ConfigEncoder() 145 videoFormat.PutIntValue("frame_rate", configure.frameRate_); in ConfigEncoder() 146 videoFormat.PutIntValue("bitrate", SCREEN_CAPTURE_ENCODE_BITRATE); in ConfigEncoder() 147 int32_t ret = videoEncoder_->Configure(videoFormat); in ConfigEncoder() [all...] |
/foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/ |
H A D | video_param_test.cpp | 142 uint8_t videoFormat = 1; in HWTEST_F() local 143 videoParam_->SetVideoFormat(videoFormat); in HWTEST_F() 145 EXPECT_EQ(videoFormat, actual); in HWTEST_F() 158 uint8_t videoFormat = DEFAULT_VIDEO_FORMAT; in HWTEST_F() local 167 videoParam.SetVideoFormat(videoFormat); in HWTEST_F() 191 uint8_t videoFormat = DEFAULT_VIDEO_FORMAT; in HWTEST_F() local 200 videoParam.SetVideoFormat(videoFormat); in HWTEST_F() 222 uint8_t videoFormat = DEFAULT_VIDEO_FORMAT; in HWTEST_F() local 238 j[KEY_COLOR_FORMAT] = videoFormat; in HWTEST_F()
|
/foundation/multimedia/player_framework/frameworks/native/video_editor/codec/video/encoder/ |
H A D | video_encoder_engine.cpp | 29 OH_AVFormat* videoFormat, std::weak_ptr<VideoEncodeCallback> cb) in Create() 36 if (videoFormat == nullptr) { in Create() 37 MEDIA_LOGE("create video encoder for video [%{public}d] failed, the parameter videoFormat is nullptr.", fd); in Create() 42 auto error = engine->Init(videoFormat); in Create() 28 Create(int fd, OH_AVFormat* videoFormat, std::weak_ptr<VideoEncodeCallback> cb) Create() argument
|
H A D | video_encoder_engine_impl.h | 45 VEFError Init(OH_AVFormat* videoFormat);
|
H A D | video_encoder_engine_impl.cpp | 44 VEFError VideoEncoderEngineImpl::Init(OH_AVFormat* videoFormat) in Init() argument
|
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetvideoencoder_fuzzer/ |
H A D | recordersetvideoencoder_fuzzer.cpp | 49 g_videoRecorderConfig.videoFormat = MPEG4; in RecorderSetVideoEncoderFuzz() 63 int32_t videoFormat = abs((ProduceRandomNumberCrypt()) % (videoCodecFormatList)); in RecorderSetVideoEncoderFuzz() local 64 g_videoRecorderConfig.videoFormat = videoCodecFormats[videoFormat]; in RecorderSetVideoEncoderFuzz()
|
/foundation/multimedia/av_codec/test/moduletest/muxer/NativeAPI/ |
H A D | NativeAVMuxerStablityTest.cpp | 169 OH_AVFormat* videoFormat = OH_AVFormat_Create(); in AddVideoTrack() local 170 if (videoFormat == NULL) { in AddVideoTrack() 181 OH_AVFormat_SetBuffer(videoFormat, OH_MD_KEY_CODEC_CONFIG, buffer, extraSize); in AddVideoTrack() 184 OH_AVFormat_SetStringValue(videoFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_VIDEO_MPEG4); in AddVideoTrack() 185 OH_AVFormat_SetIntValue(videoFormat, OH_MD_KEY_PIXEL_FORMAT, AV_PIXEL_FORMAT_YUVI420); in AddVideoTrack() 186 OH_AVFormat_SetIntValue(videoFormat, OH_MD_KEY_WIDTH, WIDTH); in AddVideoTrack() 187 OH_AVFormat_SetIntValue(videoFormat, OH_MD_KEY_HEIGHT, HEIGHT); in AddVideoTrack() 188 OH_AVFormat_SetLongValue(videoFormat, OH_MD_KEY_BITRATE, VIDEO_BITRATE); in AddVideoTrack() 191 muxerDemo->NativeAddTrack(handle, &trackId, videoFormat); in AddVideoTrack() 192 OH_AVFormat_Destroy(videoFormat); in AddVideoTrack() 330 OH_AVFormat* videoFormat = OH_AVFormat_Create(); AddVideoTrackByFd() local 358 OH_AVFormat* videoFormat = OH_AVFormat_Create(); AddVideoTrackH264ByFd() local [all...] |
H A D | NativeAVMuxerFunctionTest.cpp | 96 OH_AVFormat* videoFormat = OH_AVFormat_Create(); in AddVideoTrack() local 97 if (videoFormat == NULL) { in AddVideoTrack() 107 OH_AVFormat_SetBuffer(videoFormat, OH_MD_KEY_CODEC_CONFIG, buffer, extraSize); in AddVideoTrack() 109 OH_AVFormat_SetStringValue(videoFormat, OH_MD_KEY_CODEC_MIME, OH_AVCODEC_MIMETYPE_VIDEO_MPEG4); in AddVideoTrack() 110 OH_AVFormat_SetIntValue(videoFormat, OH_MD_KEY_WIDTH, WIDTH); in AddVideoTrack() 111 OH_AVFormat_SetIntValue(videoFormat, OH_MD_KEY_HEIGHT, HEIGHT); in AddVideoTrack() 112 OH_AVFormat_SetLongValue(videoFormat, OH_MD_KEY_BITRATE, VIDEO_BITRATE); in AddVideoTrack() 115 muxerDemo->NativeAddTrack(handle, &trackId, videoFormat); in AddVideoTrack() 116 OH_AVFormat_Destroy(videoFormat); in AddVideoTrack() 317 OH_AVFormat* videoFormat in AddVideoTrackByFd() local 552 OH_AVFormat* videoFormat = OH_AVFormat_Create(); AddVideoTrackH264ByFd() local [all...] |
/foundation/multimedia/player_framework/frameworks/native/recorder/test/unittest/src/ |
H A D | recorder_unit_test.cpp | 152 g_videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 170 g_videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 205 g_videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 253 g_videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 270 g_videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 291 g_videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 312 videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 340 videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 362 videoRecorderConfig.videoFormat = H264;
in HWTEST_F() 391 videoRecorderConfig.videoFormat in HWTEST_F() [all...] |
/foundation/multimedia/media_foundation/src/capi/ |
H A D | native_avformat.cpp | 54 OH_AVFormat *videoFormat = new (std::nothrow) OH_AVFormat(); in OH_AVFormat_CreateVideoFormat() local 55 FALSE_RETURN_V_MSG_E(videoFormat != nullptr, nullptr, "new format is nullptr!"); in OH_AVFormat_CreateVideoFormat() 56 videoFormat->format_.PutStringValue(Tag::MIME_TYPE, mimeType); in OH_AVFormat_CreateVideoFormat() 57 videoFormat->format_.PutIntValue(Tag::VIDEO_WIDTH, width); in OH_AVFormat_CreateVideoFormat() 58 videoFormat->format_.PutIntValue(Tag::VIDEO_HEIGHT, height); in OH_AVFormat_CreateVideoFormat() 59 return videoFormat; in OH_AVFormat_CreateVideoFormat()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/src/distributedcameramgr/ |
H A D | dcamera_sink_data_process.cpp | 215 Videoformat videoFormat; in GetPipelineFormat() local 218 videoFormat = Videoformat::RGBA_8888; in GetPipelineFormat() 221 videoFormat = Videoformat::NV21; in GetPipelineFormat() 224 return videoFormat; in GetPipelineFormat()
|
/foundation/CastEngine/castengine_wifi_display/services/common/ |
H A D | common.cpp | 35 void Common::SetVideoTrack(VideoTrack &videoTrack, VideoFormat videoFormat) in SetVideoTrack() argument 37 switch (videoFormat) { in SetVideoTrack()
|
H A D | common.h | 26 static void SetVideoTrack(VideoTrack &videoTrack, VideoFormat videoFormat);
|
/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/ |
H A D | camera_video.cpp | 189 int32_t videoFormat = CAMERA_FORMAT_YUV_420_SP; in main() local 212 videoFormat = atoi(argv[videoFormatIndex]); in main() 304 videoFormat = CAMERA_FORMAT_YUV_420_SP; in main() 307 videoFormat = videoFormats[0]; in main() 330 MEDIA_DEBUG_LOG("videoFormat: %{public}d, videoWidth: %{public}d, videoHeight: %{public}d", in main() 331 videoFormat, videoWidth, videoHeight); in main() 384 videoSurface->SetUserData(CameraManager::surfaceFormat, std::to_string(videoFormat)); in main() 394 VideoProfile videoprofile = VideoProfile(static_cast<CameraFormat>(videoFormat), videosize, videoframerates); in main()
|
/foundation/CastEngine/castengine_wifi_display/services/impl/screen_capture/ |
H A D | screen_capture_def.h | 32 VideoFormat videoFormat = VIDEO_1280X720_30; member
|
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregion_test.cpp | 401 uint8_t videoFormat = VIDEO_DATA_FORMAT_YUVI420; in HWTEST_F() local 404 screenRegion_->videoParam_->SetVideoFormat(videoFormat); in HWTEST_F() 409 videoFormat = VIDEO_DATA_FORMAT_RGBA8888; in HWTEST_F() 411 screenRegion_->videoParam_->SetVideoFormat(videoFormat); in HWTEST_F() 415 videoFormat = VIDEO_DATA_FORMAT_NV21; in HWTEST_F() 417 screenRegion_->videoParam_->SetVideoFormat(videoFormat); in HWTEST_F()
|
/foundation/CastEngine/castengine_wifi_display/services/impl/wfd/ |
H A D | wfd_session_def.h | 66 VideoFormat videoFormat = VIDEO_1920X1080_30; member 80 VideoFormat videoFormat = VIDEO_1920X1080_30; member
|
/foundation/distributedhardware/distributed_screen/services/common/utils/src/ |
H A D | video_param.cpp | 95 void VideoParam::SetVideoFormat(uint8_t videoFormat) in SetVideoFormat() argument 97 videoFormat_ = videoFormat; in SetVideoFormat()
|
/foundation/multimedia/player_framework/frameworks/native/video_editor/codec/ |
H A D | video_encoder_engine.h | 40 static std::shared_ptr<IVideoEncoderEngine> Create(int fd, OH_AVFormat* videoFormat,
|
/foundation/multimedia/media_lite/services/recorder_lite/impl/include/ |
H A D | recorder_source.h | 47 VideoCodecFormat videoFormat = HEVC; member
|
/foundation/multimedia/player_framework/test/fuzztest/common/ |
H A D | aw_common.h | 69 VideoCodecFormat videoFormat = MPEG4;
member
|
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetlocation_fuzzer/ |
H A D | recordersetlocation_fuzzer.cpp | 48 g_videoRecorderConfig.videoFormat = MPEG4; in FuzzRecorderSetLocation()
|
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetvideoframerate_fuzzer/ |
H A D | recordersetvideoframerate_fuzzer.cpp | 48 g_videoRecorderConfig.videoFormat = MPEG4; in RecorderSetVideoFrameRateFuzz()
|