HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 476 - 500 of 1029) sorted by null

<<11121314151617181920>>

  /external/skia/tests/
DeferredDisplayListTest.cpp 209 // Create a bitmap that we can readback into
212 SkBitmap bitmap; local
213 bitmap.allocPixels(imageInfo);
231 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0);
283 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0);
287 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0);
291 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0)
456 SkBitmap bitmap; local
    [all...]
PathOpsBuilderConicTest.cpp 64 SkBitmap bitmap; local
65 comparePaths(reporter, __FUNCTION__ , regionResult, builderResult, bitmap);
66 comparePaths(reporter, __FUNCTION__ , regionResult, opResult, bitmap);
135 SkBitmap bitmap; local
136 failed = !!comparePaths(reporter, __FUNCTION__, path, dummy, bitmap);
    [all...]
PathOpsConicIntersectionTest.cpp 87 SkBitmap bitmap; local
91 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul(
93 SkCanvas canvas(bitmap);
113 sk_tool_utils::EncodeImageToFile(filename.c_str(), bitmap,
122 SkBitmap bitmap; local
129 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul(
132 SkCanvas canvas(bitmap);
155 sk_tool_utils::EncodeImageToFile(filename.c_str(), bitmap,
266 SkBitmap bitmap; local
267 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul
    [all...]
SurfaceSemaphoreTest.cpp 38 void check_pixels(skiatest::Reporter* reporter, const SkBitmap& bitmap) {
39 const uint32_t* canvasPixels = static_cast<const uint32_t*>(bitmap.getPixels());
106 SkBitmap bitmap; local
107 bitmap.allocPixels(childII);
108 childSurface->readPixels(bitmap, 0, 0);
110 check_pixels(reporter, bitmap);
  /external/skqp/bench/
BitmapBench.cpp 29 const bool fForceUpdate; //bitmap marked as dirty before each draw. forces bitmap to be updated on device cache
50 fName.set("bitmap");
88 const SkBitmap& bitmap = fBitmap; variable
89 const SkScalar x0 = SkIntToScalar(-bitmap.width() / 2);
90 const SkScalar y0 = SkIntToScalar(-bitmap.height() / 2);
97 bitmap.notifyPixelsChanged();
99 canvas->drawBitmap(bitmap, x, y, &paint);
  /external/skqp/fuzz/
fuzz.cpp 207 static void dump_png(SkBitmap bitmap) {
209 sk_tool_utils::EncodeImageToFile(FLAGS_dump[0], bitmap, SkEncodedImageFormat::kPNG, 100);
236 SkBitmap bitmap; local
240 if (!bitmap.tryAllocPixelsFlags(decodeInfo, SkBitmap::kZeroPixels_AllocFlag)) {
248 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options)) {
274 void* dst = bitmap.getAddr(0, 0);
275 size_t rowBytes = bitmap.rowBytes();
314 codec->getScanlines(bitmap.getAddr(0, startY), linesToRead, bitmap.rowBytes())
472 SkBitmap bitmap; local
492 SkBitmap bitmap; local
563 SkBitmap bitmap; local
    [all...]
  /external/skqp/samplecode/
SampleColorFilter.cpp 87 SkBitmap bitmap; local
88 bitmap.allocN32Pixels(n, n);
89 bitmap.eraseColor(SK_ColorTRANSPARENT);
91 SkCanvas canvas(bitmap);
107 return bitmap;
SamplePath.cpp 65 SkBitmap bitmap; local
66 bitmap.allocN32Pixels(300, 200);
68 SkCanvas canvas(bitmap);
SampleRegion.cpp 24 SkBitmap bitmap; local
25 bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2));
26 bitmap.eraseColor(SK_ColorTRANSPARENT);
37 SkCanvas c(bitmap);
47 canvas->drawBitmap(bitmap, 0, 0, nullptr);
52 canvas->drawBitmap(bitmap, SkIntToScalar(2*width), 0, nullptr);
  /external/skqp/src/core/
SkPixmap.cpp 263 SkBitmap bitmap; local
264 if (!bitmap.installPixels(*srcPtr)) {
267 bitmap.setIsVolatile(true); // so we don't try to cache it
277 surface->getCanvas()->drawBitmapRect(bitmap, SkRect::MakeIWH(dst.width(), dst.height()),
  /external/skqp/src/image/
SkImage_Raster.cpp 242 SkBitmap bitmap; local
243 if (!bitmap.tryAllocPixels(info)) {
247 void* dst = bitmap.getPixels();
254 SkRectMemcpy(dst, bitmap.rowBytes(), src, fBitmap.rowBytes(), bitmap.rowBytes(),
257 bitmap.setImmutable();
258 return MakeFromBitmap(bitmap);
330 bool SkImage_Raster::onAsLegacyBitmap(SkBitmap* bitmap, LegacyBitmapMode mode) const {
332 // When we're a snapshot from a surface, our bitmap may not be marked immutable
338 bitmap->setInfo(fBitmap.info(), fBitmap.rowBytes())
    [all...]
  /external/skqp/src/pdf/
SkPDFBitmap.cpp 96 // Clamp the range to the edge of the bitmap.
162 static void bitmap_to_pdf_pixels(const SkBitmap& bitmap, SkWStream* out) {
163 if (!bitmap.getPixels()) {
164 size_t size = pixel_count(bitmap) *
165 pdf_color_component_count(bitmap.colorType());
170 const SkBitmap& bm = supported_colortype(bitmap, &copy);
238 static void bitmap_alpha_to_a8(const SkBitmap& bitmap, SkWStream* out) {
239 if (!bitmap.getPixels()) {
240 fill_stream(out, '\xFF', pixel_count(bitmap));
244 const SkBitmap& bm = supported_colortype(bitmap, &copy)
283 SkBitmap bitmap; local
    [all...]
SkPDFShader.cpp 46 // in pattern cell space (no scaling on the bitmap, though there may be
60 // For tiling modes, the bounds should be extended to include the bitmap,
61 // otherwise the bitmap gets clipped out and the shader is empty and awful.
63 // or not the main bitmap is in it.
79 // Translate the canvas so that the bitmap origin is at (0, 0).
85 // If the bitmap is out of bounds (i.e. clamp mode where we only see the
121 SkBitmap bitmap; local
125 // to just make a bitmap from the image.
126 if (!SkPDFUtils::ToBitmap(image, &bitmap)) {
127 bitmap.allocN32Pixels(image->width(), image->height())
    [all...]
SkPDFUtils.cpp 367 SkBitmap bitmap; local
368 if(as_IB(img)->getROPixels(&bitmap, nullptr)) {
369 SkASSERT(bitmap.dimensions() == img->dimensions());
370 SkASSERT(!bitmap.drawsNothing());
371 *dst = std::move(bitmap);
  /external/skqp/src/utils/
SkCanvasStateUtils.cpp 198 // we currently only work for bitmap backed devices
267 SkBitmap bitmap; local
277 bitmap.installPixels(SkImageInfo::Make(layerState.width, layerState.height,
281 SkASSERT(!bitmap.empty());
282 SkASSERT(!bitmap.isNull());
284 std::unique_ptr<SkCanvas> canvas(new SkCanvas(bitmap));
  /external/skqp/tests/
BlendTest.cpp 185 // Read the result into a bitmap.
186 SkBitmap bitmap; local
187 REPORTER_ASSERT(reporter, bitmap.tryAllocPixels(SkImageInfo::Make(
191 surface->readPixels(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes(), 0, 0));
194 REPORTER_ASSERT(reporter, bitmap.getColor(outPoint.x(), outPoint.y()) ==
196 REPORTER_ASSERT(reporter, bitmap.getColor(inPoint.x(), inPoint.y()) ==
DeferredDisplayListTest.cpp 94 // Create a bitmap that we can readback into
97 SkBitmap bitmap; local
98 bitmap.allocPixels(imageInfo);
124 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0);
174 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0);
178 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0);
182 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0)
334 SkBitmap bitmap; local
    [all...]
PathOpsBuilderConicTest.cpp 64 SkBitmap bitmap; local
65 comparePaths(reporter, __FUNCTION__ , regionResult, builderResult, bitmap);
66 comparePaths(reporter, __FUNCTION__ , regionResult, opResult, bitmap);
135 SkBitmap bitmap; local
136 failed = !!comparePaths(reporter, __FUNCTION__, path, dummy, bitmap);
    [all...]
PathOpsConicIntersectionTest.cpp 87 SkBitmap bitmap; local
91 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul(
93 SkCanvas canvas(bitmap);
113 sk_tool_utils::EncodeImageToFile(filename.c_str(), bitmap,
122 SkBitmap bitmap; local
129 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul(
132 SkCanvas canvas(bitmap);
155 sk_tool_utils::EncodeImageToFile(filename.c_str(), bitmap,
266 SkBitmap bitmap; local
267 bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul
    [all...]
SurfaceSemaphoreTest.cpp 38 void check_pixels(skiatest::Reporter* reporter, const SkBitmap& bitmap) {
39 const uint32_t* canvasPixels = static_cast<const uint32_t*>(bitmap.getPixels());
106 SkBitmap bitmap; local
107 bitmap.allocPixels(childII);
108 childSurface->readPixels(bitmap, 0, 0);
110 check_pixels(reporter, bitmap);
  /external/syslinux/gpxe/src/net/udp/
slam.c 30 #include <gpxe/bitmap.h>
71 * representation of the received-blocks bitmap, looking something
143 /** Block bitmap */
144 struct bitmap bitmap; member in struct:slam_request
158 bitmap_free ( &slam->bitmap );
276 first_block = bitmap_first_gap ( &slam->bitmap );
282 if ( bitmap_test ( &slam->bitmap,
452 /* Discard and reset the bitmap */
453 bitmap_free ( &slam->bitmap );
    [all...]
  /external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
TensorFlowImageClassifier.java 19 import android.graphics.Bitmap;
127 public List<Recognition> recognizeImage(final Bitmap bitmap) {
134 bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());
TensorFlowObjectDetectionAPIModel.java 19 import android.graphics.Bitmap;
135 public List<Recognition> recognizeImage(final Bitmap bitmap) {
142 bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());
TensorFlowYoloDetector.java 19 import android.graphics.Bitmap;
134 public List<Recognition> recognizeImage(final Bitmap bitmap) {
143 bitmap.getPixels(intValues, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());
168 final int gridWidth = bitmap.getWidth() / blockSize;
169 final int gridHeight = bitmap.getHeight() / blockSize;
205 Math.min(bitmap.getWidth() - 1, xPos + w / 2)
    [all...]
  /external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/env/
ImageUtils.java 18 import android.graphics.Bitmap;
55 * Saves a Bitmap object to disk for analysis.
57 * @param bitmap The bitmap to save.
59 public static void saveBitmap(final Bitmap bitmap) {
60 saveBitmap(bitmap, "preview.png");
64 * Saves a Bitmap object to disk for analysis.
66 * @param bitmap The bitmap to save
    [all...]

Completed in 994 milliseconds

<<11121314151617181920>>