Home
last modified time | relevance | path

Searched refs:SnapShotUtils (Results 1 - 6 of 6) sorted by relevance

/foundation/window/window_manager/snapshot/test/unittest/
H A Dsnapshot_utils_test.cpp73 ASSERT_EQ(true, SnapShotUtils::CheckFileNameValid(defaultFile_)); in HWTEST_F()
84 ASSERT_EQ(true, SnapShotUtils::CheckFileNameValid(fileName)); in HWTEST_F()
95 ASSERT_EQ(false, SnapShotUtils::CheckFileNameValid(fileName1)); in HWTEST_F()
97 ASSERT_EQ(false, SnapShotUtils::CheckFileNameValid(fileName2)); in HWTEST_F()
99 ASSERT_EQ(false, SnapShotUtils::CheckFileNameValid(fileName3)); in HWTEST_F()
101 ASSERT_EQ(false, SnapShotUtils::CheckFileNameValid(fileName4)); in HWTEST_F()
103 ASSERT_EQ(false, SnapShotUtils::CheckFileNameValid(fileName5)); in HWTEST_F()
105 ASSERT_EQ(false, SnapShotUtils::CheckFileNameValid(fileName6)); in HWTEST_F()
117 EXPECT_FALSE(SnapShotUtils::RGBA8888ToRGB888(rgba8888Buf, nullptr, RGBA8888BUF_SIZE)); in HWTEST_F()
118 EXPECT_FALSE(SnapShotUtils in HWTEST_F()
[all...]
H A Dsnapshot_display_test.cpp117 imgPath[i] = SnapShotUtils::GenerateFileName("jpeg", i); in HWTEST_F()
146 imgPath[i] = SnapShotUtils::GenerateFileName("jpeg", i); in HWTEST_F()
248 imgPath[i] = SnapShotUtils::GenerateFileName("png", i); in HWTEST_F()
/foundation/window/window_manager/snapshot/src/
H A Dsnapshot_utils.cpp83 void SnapShotUtils::PrintUsage(const std::string& cmdLine) in PrintUsage()
89 std::string SnapShotUtils::GenerateFileName(std::string fileType, int offset) in GenerateFileName()
111 bool SnapShotUtils::CheckFileNameValid(const std::string& fileName, std::string fileType) in CheckFileNameValid()
149 bool SnapShotUtils::CheckWHValid(int32_t param) in CheckWHValid()
154 bool SnapShotUtils::CheckWidthAndHeightValid(int32_t w, int32_t h) in CheckWidthAndHeightValid()
159 bool SnapShotUtils::CheckParamValid(const WriteToJpegParam& param) in CheckParamValid()
191 bool SnapShotUtils::RGBA8888ToRGB888(const uint8_t* rgba8888Buf, uint8_t* rgb888Buf, int32_t size) in RGBA8888ToRGB888()
206 bool SnapShotUtils::RGB565ToRGB888(const uint8_t* rgb565Buf, uint8_t* rgb888Buf, int32_t size) in RGB565ToRGB888()
225 bool SnapShotUtils::WriteRgb888ToJpeg(FILE* file, uint32_t width, uint32_t height, const uint8_t* data) in WriteRgb888ToJpeg()
270 bool SnapShotUtils
[all...]
H A Dsnapshot_display.cpp46 if (!SnapShotUtils::ProcessArgs(argc, argv, cmdArguments)) { in main()
76 ret = SnapShotUtils::SaveSnapShot(cmdArguments.fileName, *pixelMap, cmdArguments.fileType); in main()
78 ret = SnapShotUtils::WriteToJpegWithPixelMap(cmdArguments.fileName, *pixelMap); in main()
107 if (!SnapShotUtils::CheckWidthAndHeightValid(cmdArguments.width, cmdArguments.height)) { in GetScreenshotByCmdArguments()
/foundation/window/window_manager/snapshot/include/
H A Dsnapshot_utils.h47 class SnapShotUtils { class
49 SnapShotUtils() = default;
50 ~SnapShotUtils() = default;
/foundation/window/window_manager/test/demo/
H A Ddemo_snapshot_virtual_screen.cpp104 bool ret = SnapShotUtils::WriteToJpegWithPixelMap(FILE_NAME + std::to_string(fileIndex) + ".jpeg", *pixelMap); in main()

Completed in 4 milliseconds