/foundation/multimedia/player_framework/test/unittest/screen_capture_test/screen_capture_unittest/src/ |
H A D | screen_capture_unit_test_exclude.cpp | 668 int32_t videoSourceId = 0; in HWTEST_F() local 669 EXPECT_EQ(MSERR_OK, recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_RGBA, videoSourceId)); in HWTEST_F() 671 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncoder(videoSourceId, VideoCodecFormat::H264)); in HWTEST_F() 672 EXPECT_EQ(MSERR_OK, recorder->SetVideoSize(videoSourceId, 720, 1280)); in HWTEST_F() 673 EXPECT_EQ(MSERR_OK, recorder->SetVideoFrameRate(videoSourceId, 30)); in HWTEST_F() 674 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncodingBitRate(videoSourceId, 2000000)); in HWTEST_F() 679 sptr<OHOS::Surface> consumer = recorder->GetSurface(videoSourceId); in HWTEST_F() 722 int32_t videoSourceId = 0; in HWTEST_F() local 723 EXPECT_EQ(MSERR_OK, recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_RGBA, videoSourceId)); in HWTEST_F() 725 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncoder(videoSourceId, VideoCodecForma in HWTEST_F() 770 int32_t videoSourceId = 0; HWTEST_F() local 1551 int32_t videoSourceId = 0; HWTEST_F() local 1612 int32_t videoSourceId = 0; HWTEST_F() local 1672 int32_t videoSourceId = 0; HWTEST_F() local 1737 int32_t videoSourceId = 0; HWTEST_F() local 1788 int32_t videoSourceId = 0; HWTEST_F() local 1849 int32_t videoSourceId = 0; HWTEST_F() local 1908 int32_t videoSourceId = 0; HWTEST_F() local [all...] |
H A D | screen_capture_unit_test_state.cpp | 1188 int32_t videoSourceId = 0; in HWTEST_F() local 1189 EXPECT_EQ(MSERR_OK, recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_RGBA, videoSourceId)); in HWTEST_F() 1191 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncoder(videoSourceId, VideoCodecFormat::H264)); in HWTEST_F() 1192 EXPECT_EQ(MSERR_OK, recorder->SetVideoSize(videoSourceId, 720, 1080)); in HWTEST_F() 1193 EXPECT_EQ(MSERR_OK, recorder->SetVideoFrameRate(videoSourceId, 30)); in HWTEST_F() 1194 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncodingBitRate(videoSourceId, 2000000)); in HWTEST_F() 1199 sptr<OHOS::Surface> consumer = recorder->GetSurface(videoSourceId); in HWTEST_F() 1249 int32_t videoSourceId = 0; in HWTEST_F() local 1250 EXPECT_EQ(MSERR_OK, recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_RGBA, videoSourceId)); in HWTEST_F() 1252 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncoder(videoSourceId, VideoCodecForma in HWTEST_F() 1303 int32_t videoSourceId = 0; HWTEST_F() local 1360 int32_t videoSourceId = 0; HWTEST_F() local [all...] |
H A D | screen_capture_unit_test.cpp | 1927 int32_t videoSourceId = 0; in HWTEST_F() local 1928 EXPECT_EQ(MSERR_OK, recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_RGBA, videoSourceId)); in HWTEST_F() 1930 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncoder(videoSourceId, VideoCodecFormat::H264)); in HWTEST_F() 1931 EXPECT_EQ(MSERR_OK, recorder->SetVideoSize(videoSourceId, 720, 1280)); in HWTEST_F() 1932 EXPECT_EQ(MSERR_OK, recorder->SetVideoFrameRate(videoSourceId, 30)); in HWTEST_F() 1933 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncodingBitRate(videoSourceId, 2000000)); in HWTEST_F() 1938 sptr<OHOS::Surface> consumer = recorder->GetSurface(videoSourceId); in HWTEST_F() 1971 int32_t videoSourceId = 0; in HWTEST_F() local 1972 EXPECT_EQ(MSERR_OK, recorder->SetVideoSource(VIDEO_SOURCE_SURFACE_RGBA, videoSourceId)); in HWTEST_F() 1974 EXPECT_EQ(MSERR_OK, recorder->SetVideoEncoder(videoSourceId, VideoCodecForma in HWTEST_F() [all...] |
/foundation/multimedia/camera_framework/interfaces/inner_api/native/test/ |
H A D | camera_video.cpp | 56 int32_t videoSourceId, int32_t width, int32_t height) in ConfigureVideoParams() 62 if (recorder->SetVideoEncoder(videoSourceId, Media::H264)) { in ConfigureVideoParams() 67 if (recorder->SetVideoSize(videoSourceId, width, height)) { in ConfigureVideoParams() 72 if (recorder->SetVideoFrameRate(videoSourceId, frameRate)) { in ConfigureVideoParams() 77 if (recorder->SetVideoEncodingBitRate(videoSourceId, encodingBitRate)) { in ConfigureVideoParams() 82 if (recorder->SetCaptureRate(videoSourceId, captureRate)) { in ConfigureVideoParams() 120 int32_t &videoSourceId, int32_t width, int32_t height) in CreateAndConfigureRecorder() 131 if (recorder->SetVideoSource(Media::VIDEO_SOURCE_SURFACE_ES, videoSourceId)) { in CreateAndConfigureRecorder() 146 if (!ConfigureVideoParams(recorder, videoSourceId, width, height)) { in CreateAndConfigureRecorder() 368 int32_t videoSourceId in main() local 55 ConfigureVideoParams(const std::shared_ptr<Recorder> &recorder, int32_t videoSourceId, int32_t width, int32_t height) ConfigureVideoParams() argument 119 CreateAndConfigureRecorder(std::shared_ptr<Recorder> &recorder, int32_t &videoSourceId, int32_t width, int32_t height) CreateAndConfigureRecorder() argument [all...] |
/foundation/multimedia/player_framework/test/fuzztest/common/ |
H A D | test_recorder.cpp | 147 recorder->SetVideoSource(recorderConfig.vSource, recorderConfig.videoSourceId); in SetVideoSource() 193 recorder->SetDataSource(dataType, recorderConfig.videoSourceId); in SetDataSource() 250 recorder->SetVideoEncoder(recorderConfig.videoSourceId, recorderConfig.videoFormat); in SetVideoEncoder() 255 recorder->SetVideoSize(recorderConfig.videoSourceId, recorderConfig.width, recorderConfig.height); in SetVideoSize() 260 recorder->SetVideoFrameRate(recorderConfig.videoSourceId, recorderConfig.frameRate); in SetVideoFrameRate() 265 recorder->SetVideoEncodingBitRate(recorderConfig.videoSourceId, recorderConfig.videoEncodingBitRate); in SetVideoEncodingBitRate() 270 recorder->SetCaptureRate(recorderConfig.videoSourceId, fps); in SetCaptureRate() 285 producerSurface = recorder->GetSurface(recorderConfig.videoSourceId); in GetSurface()
|
H A D | aw_common.h | 52 int32_t videoSourceId = 0;
member
|
/foundation/arkui/ace_engine/frameworks/core/components/camera/standard_system/ |
H A D | camera.cpp | 98 int32_t videoSourceId = 0; in CreateRecorder() local 105 if ((ret = recorder->SetVideoSource(videoSource, videoSourceId)) != ERR_OK) { in CreateRecorder() 117 if ((ret = recorder->SetVideoEncoder(videoSourceId, encoder)) != ERR_OK) { in CreateRecorder() 121 if ((ret = recorder->SetVideoSize(videoSourceId, width, height)) != ERR_OK) { in CreateRecorder() 125 if ((ret = recorder->SetVideoFrameRate(videoSourceId, FRAME_RATE)) != ERR_OK) { in CreateRecorder() 129 if ((ret = recorder->SetVideoEncodingBitRate(videoSourceId, RATE)) != ERR_OK) { in CreateRecorder() 133 if ((ret = recorder->SetCaptureRate(videoSourceId, FPS)) != ERR_OK) { in CreateRecorder() 157 videoSourceId_ = videoSourceId; in CreateRecorder()
|
/foundation/multimedia/player_framework/frameworks/native/recorder/test/unittest/src/ |
H A D | recorder_mock.cpp | 320 producerSurface_ = recorder_->GetSurface(recorderConfig.videoSourceId); in RequesetBuffer() 523 int32_t ret = recorder_->SetVideoEncoder(recorderConfig.videoSourceId, in CameraServicesForVideo() 527 ret = recorder_->SetVideoSize(recorderConfig.videoSourceId, in CameraServicesForVideo() 531 ret = recorder_->SetVideoFrameRate(recorderConfig.videoSourceId, recorderConfig.frameRate); in CameraServicesForVideo() 534 ret = recorder_->SetVideoEncodingBitRate(recorderConfig.videoSourceId, in CameraServicesForVideo() 563 ret = recorder_->SetVideoSource(recorderConfig.vSource, recorderConfig.videoSourceId); in SetAudVidFormat() 573 ret = recorder_->SetVideoEnableTemporalScale(recorderConfig.videoSourceId, recorderConfig.enableTemporalScale); in SetAudVidFormat() 592 ret = recorder_->SetVideoSource(recorderConfig.vSource, recorderConfig.videoSourceId); in SetFormat() 596 ret = recorder_->SetVideoEnableTemporalScale(recorderConfig.videoSourceId, recorderConfig.enableTemporalScale); in SetFormat()
|
H A D | recorder_unit_test.cpp | 1469 recorder_->SetDataSource(DataSourceType::METADATA, g_videoRecorderConfig.videoSourceId));
in HWTEST_F()
|
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetvideoframerate_fuzzer/ |
H A D | recordersetvideoframerate_fuzzer.cpp | 57 g_videoRecorderConfig.videoSourceId = *reinterpret_cast<int32_t *>(data); in RecorderSetVideoFrameRateFuzz()
|
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetvideosize_fuzzer/ |
H A D | recordersetvideosize_fuzzer.cpp | 56 g_videoRecorderConfig.videoSourceId = *reinterpret_cast<int32_t *>(data); in RecorderSetVideoSizeFuzz()
|
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetvideoencoder_fuzzer/ |
H A D | recordersetvideoencoder_fuzzer.cpp | 62 g_videoRecorderConfig.videoSourceId = *reinterpret_cast<int32_t *>(data); in RecorderSetVideoEncoderFuzz()
|
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetdatasource_fuzzer/ |
H A D | recordersetdatasource_fuzzer.cpp | 54 g_videoRecorderConfig.videoSourceId = *reinterpret_cast<int32_t *>(data); in FuzzRecorderSetDataSource()
|
/foundation/multimedia/player_framework/test/fuzztest/recorder_fuzztest/recordersetvideosource_fuzzer/ |
H A D | recordersetvideosource_fuzzer.cpp | 54 g_videoRecorderConfig.videoSourceId = *reinterpret_cast<int32_t *>(data); in FuzzRecorderSetVideoSource()
|
/foundation/multimedia/player_framework/frameworks/native/recorder/test/unittest/include/ |
H A D | recorder_mock.h | 84 int32_t videoSourceId = 0; member
|