Lines Matching defs:width
96 int width = 100;
98 int rowBytes = width * 4;
102 OH_Drawing_BitmapBuild(bitmap1, width, height, &cFormat);
115 EXPECT_TRUE(width_ == width || width_ == 0);
122 int rowBytes2 = width * 4 + 1;
127 EXPECT_TRUE(width_ == width || width_ == 0);
144 int width = 100;
146 int rowBytes = width * 4;
147 uint8_t *pixels = new uint8_t[width * height * 4];
148 OH_Drawing_Image_Info imageInfo{width, height, COLOR_FORMAT_ALPHA_8, ALPHA_FORMAT_UNKNOWN};
158 // 4. OH_Drawing_BitmapCreateFromPixels the width of the first parameter OH_Drawing_Image_Info is 0
159 imageInfo.width = 0;
163 imageInfo.width = width;
185 int width = 48;
187 int rowBytes = width * 4;
188 uint8_t *pixels = new uint8_t[width * height * 4];
189 OH_Drawing_Image_Info imageInfo{width, height, COLOR_FORMAT_ALPHA_8, ALPHA_FORMAT_UNKNOWN};
195 uint8_t *pixels2 = new uint8_t[width * 47 * 4];
201 uint8_t *pixels3 = new uint8_t[width * height * 4];
223 int width = 48;
225 int rowBytes = width * 4;
226 uint8_t *pixels = new uint8_t[width * height * 4];
227 OH_Drawing_Image_Info imageInfo{width, height, COLOR_FORMAT_ALPHA_8, ALPHA_FORMAT_UNKNOWN};
229 imageInfo.width = -1;
260 int width = 1000000;
262 int rowBytes = width * 4;
266 OH_Drawing_BitmapBuild(bitmap1, width, height, &cFormat);
279 EXPECT_TRUE(width_ == width || width_ == 0);
286 int rowBytes2 = width * 4 + 1;
291 EXPECT_TRUE(width_ == width || width_ == 0);
322 int width = 4096;
324 int rowBytes = width * 4;
328 OH_Drawing_BitmapBuild(bitmap1, width, height, &cFormat);
341 EXPECT_TRUE(width_ == width || width_ == 0);
348 int rowBytes2 = width * 4 + 1;
353 EXPECT_TRUE(width_ == width || width_ == 0);
370 const unsigned int width = 500;
391 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat);
414 const unsigned int width = 500;
433 OH_Drawing_BitmapBuild(bitmap, width, 0, &bitmapFormat);
434 OH_Drawing_BitmapBuild(bitmap, width, height, nullptr);
448 const unsigned int width = 500;
469 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat);
486 OH_Drawing_BitmapBuild(bitmap2, width, height, &cFormat);
489 uint32_t rowBytes = width * height * 4;
495 OH_Drawing_BitmapBuild(bitmap3, width, height, &bitmapFormat);
511 const unsigned int width = 4096;
532 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat);
558 uint32_t width = 100;
560 OH_Drawing_BitmapBuild(cBitmap, width, height, &cFormat);
562 OH_Drawing_Image_Info imageInfo1{width, height, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
563 void *pixels1 = new uint32_t[width * height];
566 bool res = OH_Drawing_BitmapReadPixels(cBitmap, &imageInfo1, pixels1, width * 4, 0, 0);
592 EXPECT_EQ(width, imageInfo->width);
611 uint32_t width = 100;
613 OH_Drawing_BitmapBuild(cBitmap, width, height, &cFormat);
668 uint32_t width = 4096;
670 OH_Drawing_BitmapBuild(cBitmap, width, height, &cFormat);
672 OH_Drawing_Image_Info imageInfo1{width, height, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
673 void *pixels1 = new uint32_t[width * height];
676 bool res = OH_Drawing_BitmapReadPixels(cBitmap, &imageInfo1, pixels1, width * 4, 0, 0);
681 EXPECT_EQ(w, width);
702 EXPECT_EQ(width, imageInfo->width);
718 const unsigned int width = 500;
726 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat);
727 OH_Drawing_Image_Info imageInfo{width, height, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
728 void *pixels = new uint32_t[width * height];
731 bool res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, pixels, width * 4, 0, 0);
750 const unsigned int width = 500;
758 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat);
759 OH_Drawing_Image_Info imageInfo{width, height, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
760 void *pixels = new uint32_t[width * height];
763 bool res = OH_Drawing_BitmapReadPixels(nullptr, &imageInfo, pixels, width * 4, 0, 0);
767 res = OH_Drawing_BitmapReadPixels(bitmap, nullptr, pixels, width * 4, 0, 0);
771 res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, nullptr, width * 4, 0, 0);
779 res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, pixels, width * 4, 0, 1);
783 res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, pixels, width * 4, 1, 0);
812 const unsigned int width = 500;
818 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat);
822 void *pixels = new uint32_t[width * height];
823 bool res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, pixels, width * 4, 0, 0);
827 OH_Drawing_Image_Info imageInfo2{width, 1, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
828 res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo2, pixels, width * 4, 0, 0);
840 OH_Drawing_Image_Info imageInfo4{width, height, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
841 res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo4, pixels, width * 3, 0, 0);
845 OH_Drawing_Image_Info imageInfo5{width, height, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
846 res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo5, pixels, width * 4, 1000, 0);
850 OH_Drawing_Image_Info imageInfo6{width, height, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
851 res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo6, pixels, width * 4, 0, 1000);
864 const unsigned int width = 4096;
872 OH_Drawing_BitmapBuild(bitmap, width, height, &bitmapFormat);
873 OH_Drawing_Image_Info imageInfo{width, height, COLOR_FORMAT_RGBA_8888, ALPHA_FORMAT_UNPREMUL};
874 void *pixels = new uint32_t[width * height];
877 bool res = OH_Drawing_BitmapReadPixels(bitmap, &imageInfo, pixels, width * 4, 0, 0);