Home
last modified time | relevance | path

Searched refs:videoFormat (Results 1 - 25 of 54) sorted by relevance

123

/foundation/multimedia/player_framework/frameworks/native/video_editor/test/unittest/codec/video/encoder/
H A Dvideo_encoder_engine_test.cpp59 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 Dmpeg_manager.cpp177 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 Dvideo_source_encoder.cpp129 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 Dvideo_param_test.cpp142 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 Dvideo_encoder_engine.cpp29 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 Dvideo_encoder_engine_impl.h45 VEFError Init(OH_AVFormat* videoFormat);
H A Dvideo_encoder_engine_impl.cpp44 VEFError VideoEncoderEngineImpl::Init(OH_AVFormat* videoFormat) in Init() argument
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetvideoencoder_fuzzer/
H A Drecordersetvideoencoder_fuzzer.cpp49 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 DNativeAVMuxerStablityTest.cpp169 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 DNativeAVMuxerFunctionTest.cpp96 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 Drecorder_unit_test.cpp152 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 Dnative_avformat.cpp54 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 Ddcamera_sink_data_process.cpp215 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 Dcommon.cpp35 void Common::SetVideoTrack(VideoTrack &videoTrack, VideoFormat videoFormat) in SetVideoTrack() argument
37 switch (videoFormat) { in SetVideoTrack()
H A Dcommon.h26 static void SetVideoTrack(VideoTrack &videoTrack, VideoFormat videoFormat);
/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/
H A Dcamera_video.cpp189 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 Dscreen_capture_def.h32 VideoFormat videoFormat = VIDEO_1280X720_30; member
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/2.0/src/
H A Dscreenregion_test.cpp401 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 Dwfd_session_def.h66 VideoFormat videoFormat = VIDEO_1920X1080_30; member
80 VideoFormat videoFormat = VIDEO_1920X1080_30; member
/foundation/distributedhardware/distributed_screen/services/common/utils/src/
H A Dvideo_param.cpp95 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 Dvideo_encoder_engine.h40 static std::shared_ptr<IVideoEncoderEngine> Create(int fd, OH_AVFormat* videoFormat,
/foundation/multimedia/media_lite/services/recorder_lite/impl/include/
H A Drecorder_source.h47 VideoCodecFormat videoFormat = HEVC; member
/foundation/multimedia/player_framework/test/fuzztest/common/
H A Daw_common.h69 VideoCodecFormat videoFormat = MPEG4; member
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetlocation_fuzzer/
H A Drecordersetlocation_fuzzer.cpp48 g_videoRecorderConfig.videoFormat = MPEG4; in FuzzRecorderSetLocation()
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetvideoframerate_fuzzer/
H A Drecordersetvideoframerate_fuzzer.cpp48 g_videoRecorderConfig.videoFormat = MPEG4; in RecorderSetVideoFrameRateFuzz()

Completed in 12 milliseconds

123