Home
last modified time | relevance | path

Searched refs:dstPixels (Results 1 – 25 of 67) sorted by relevance

123

/external/skqp/src/core/
DSkConvertPixels.cpp17 static bool rect_memcpy(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in rect_memcpy() argument
29 SkRectMemcpy(dstPixels, dstRB, in rect_memcpy()
34 static bool swizzle_or_premul(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in swizzle_or_premul() argument
63 fn((uint32_t*)dstPixels, (const uint32_t*)srcPixels, dstInfo.width()); in swizzle_or_premul()
64 dstPixels = SkTAddOffset<void>(dstPixels, dstRB); in swizzle_or_premul()
193 void SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in SkConvertPixels() argument
202 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels()
206 convert_with_pipeline(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps); in SkConvertPixels()
DSkBlurMask.cpp564 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth() local
565 SkAutoMaskFreeImage autoFreeDstPixels(dstPixels); in BlurGroundTruth()
619 uint8_t *outPixel = dstPixels + (x-pad)*dstWidth + y; // transposed output in BlurGroundTruth()
625 dst->fImage = dstPixels; in BlurGroundTruth()
631 dstPixels + pad*dst->fRowBytes + pad, dst->fRowBytes, in BlurGroundTruth()
637 dstPixels + pad*dst->fRowBytes + pad, dst->fRowBytes, in BlurGroundTruth()
650 dstPixels + pad*dst->fRowBytes + pad, in BlurGroundTruth()
652 SkMask::FreeImage(dstPixels); in BlurGroundTruth()
DSkConvertPixels.h16 void SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
/external/skia/docs/examples/
DImage_readPixels.cpp10 std::vector<int32_t> dstPixels; in draw() local
11 dstPixels.resize(height * width * 4); in draw()
15 if (image->readPixels(nullptr, info, &dstPixels.front(), width * 4, x, y)) { in draw()
16 SkPixmap dstPixmap(info, &dstPixels.front(), width * 4); in draw()
DPixmap_readPixels_2.cpp14 std::vector<int32_t> dstPixels; in draw() local
15 dstPixels.resize(image->height() * rowBytes); in draw()
16 pixmap.readPixels(info, &dstPixels.front(), rowBytes, offset, 0); in draw()
18 SkPixmap dstmap(info, &dstPixels.front(), rowBytes); in draw()
DBitmap_readPixels.cpp21 std::vector<int16_t> dstPixels; in draw() local
22 dstPixels.resize(height * width); in draw()
23 bitmap.readPixels(dstInfo, &dstPixels.front(), width * 2, 0, 0); in draw()
24 SkPixmap dstPixmap(dstInfo, &dstPixels.front(), width * 2); in draw()
DPixmap_readPixels.cpp23 std::vector<int32_t> dstPixels; in draw() local
24 dstPixels.resize(height * width * 2); in draw()
26 srcPixmap.readPixels(dstInfo, &dstPixels.front(), width * 2); in draw()
27 SkPixmap dstPixmap(dstInfo, &dstPixels.front(), width * 2); in draw()
DPixmap_readPixels_4.cpp14 std::vector<int32_t> dstPixels; in draw() local
15 dstPixels.resize(image->height() * rowBytes); in draw()
16 SkPixmap dstmap(info, &dstPixels.front(), rowBytes); in draw()
DPixmap_readPixels_3.cpp14 std::vector<int32_t> dstPixels; in draw() local
15 dstPixels.resize(image->height() * rowBytes); in draw()
16 SkPixmap dstmap(info, &dstPixels.front(), rowBytes); in draw()
DPixmap_scalePixels.cpp16 std::vector<int32_t> dstPixels; in draw() local
17 dstPixels.resize(image->height() * rowBytes); in draw()
18 SkPixmap dstmap(info, &dstPixels.front(), rowBytes); in draw()
/external/skia/src/core/
DSkConvertPixels.cpp17 static bool rect_memcpy(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in rect_memcpy() argument
29 SkRectMemcpy(dstPixels, dstRB, in rect_memcpy()
34 static bool swizzle_or_premul(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in swizzle_or_premul() argument
63 fn((uint32_t*)dstPixels, (const uint32_t*)srcPixels, dstInfo.width()); in swizzle_or_premul()
64 dstPixels = SkTAddOffset<void>(dstPixels, dstRB); in swizzle_or_premul()
221 bool SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in SkConvertPixels() argument
237 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels()
241 convert_with_pipeline(dstInfo, dstPixels, dstStride, srcInfo, srcPixels, srcStride, steps); in SkConvertPixels()
DSkBlurMask.cpp559 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth() local
560 SkAutoMaskFreeImage autoFreeDstPixels(dstPixels); in BlurGroundTruth()
614 uint8_t *outPixel = dstPixels + (x-pad)*dstWidth + y; // transposed output in BlurGroundTruth()
620 dst->fImage = dstPixels; in BlurGroundTruth()
626 dstPixels + pad*dst->fRowBytes + pad, dst->fRowBytes, in BlurGroundTruth()
632 dstPixels + pad*dst->fRowBytes + pad, dst->fRowBytes, in BlurGroundTruth()
645 dstPixels + pad*dst->fRowBytes + pad, in BlurGroundTruth()
647 SkMask::FreeImage(dstPixels); in BlurGroundTruth()
DSkConvertPixels.h17 const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
/external/skqp/tests/
DCopySurfaceTest.cpp40 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
42 dstPixels.get()[i] = ~i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
81 dstPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
172 uint32_t d = dstPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBitmapCopyTest.cpp175 SkPMColor dstPixels[16]; in DEF_TEST() local
193 clear_4x4_pixels(dstPixels); in DEF_TEST()
197 bool success = srcBM.readPixels(dstInfo, dstPixels, rowBytes, in DEF_TEST()
208 SkPMColor dstC = dstPixels[y*4+x]; in DEF_TEST()
/external/skia/tests/
DCopySurfaceTest.cpp45 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
47 dstPixels.get()[i] = ~i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
82 GrPixmap dstPM(ii, dstPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
189 uint32_t d = dstPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBitmapCopyTest.cpp171 SkPMColor dstPixels[16]; in DEF_TEST() local
189 clear_4x4_pixels(dstPixels); in DEF_TEST()
192 bool success = srcBM.readPixels(dstInfo, dstPixels, rowBytes, in DEF_TEST()
203 SkPMColor dstC = dstPixels[y*4+x]; in DEF_TEST()
/external/skqp/fuzz/
DFuzzEncoders.cpp90 std::vector<int32_t> dstPixels; in DEF_FUZZ() local
92 dstPixels.resize(img->height() * rowBytes); in DEF_FUZZ()
94 &dstPixels.front(), rowBytes); in DEF_FUZZ()
/external/skia/fuzz/
DFuzzEncoders.cpp90 std::vector<int32_t> dstPixels; in DEF_FUZZ() local
92 dstPixels.resize(img->height() * rowBytes); in DEF_FUZZ()
94 &dstPixels.front(), rowBytes); in DEF_FUZZ()
/external/skqp/docs/
DSkPixmap_Reference.bmh1222 #Method bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const
1249 std::vector<int32_t> dstPixels;
1250 dstPixels.resize(height * width * 2);
1252 srcPixmap.readPixels(dstInfo, &dstPixels.front(), width * 2);
1253 SkPixmap dstPixmap(dstInfo, &dstPixels.front(), width * 2);
1264 #Method bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX,
1267 Copies a Rect of pixels to dstPixels. Copy starts at (srcX, srcY), and does not
1288 #Param dstPixels destination pixel storage ##
1293 #Return true if pixels are copied to dstPixels ##
1305 std::vector<int32_t> dstPixels;
[all …]
/external/skqp/include/core/
DSkPixmap.h560 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const { in readPixels() argument
561 return this->readPixels(dstInfo, dstPixels, dstRowBytes, 0, 0); in readPixels()
590 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX,
/external/skia/include/core/
DSkPixmap.h563 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const { in readPixels() argument
564 return this->readPixels(dstInfo, dstPixels, dstRowBytes, 0, 0); in readPixels()
593 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX,
/external/skqp/gm/
Dencode-alpha-jpeg.cpp17 static inline void read_into_pixmap(SkPixmap* dst, SkImageInfo dstInfo, void* dstPixels, in read_into_pixmap() argument
19 dst->reset(dstInfo, dstPixels, dstInfo.minRowBytes()); in read_into_pixmap()
/external/skia/gm/
Dencode_alpha_jpeg.cpp26 static inline void read_into_pixmap(SkPixmap* dst, SkImageInfo dstInfo, void* dstPixels, in read_into_pixmap() argument
28 dst->reset(dstInfo, dstPixels, dstInfo.minRowBytes()); in read_into_pixmap()
/external/skia/src/gpu/
DGrDataUtils.h51 void GrTwoColorBC1Compress(const SkPixmap& pixmap, SkColor otherColor, char* dstPixels);

123