Home
last modified time | relevance | path

Searched refs:SkImageInfo (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/external/skia/tests/
DImageIsOpaqueTest.cpp21 static void test_flatten(skiatest::Reporter* reporter, const SkImageInfo& info) { in test_flatten()
33 SkImageInfo info2 = SkImageInfo::Make(0xB8, 0xB8, (SkColorType) 0xB8, (SkAlphaType) 0xB8); in test_flatten()
65 SkImageInfo info = SkImageInfo::Make(100, 200, in DEF_TEST()
82 SkImageInfo infoTransparent = SkImageInfo::MakeN32Premul(5, 5); in DEF_TEST()
86 SkImageInfo infoOpaque = SkImageInfo::MakeN32(5, 5, kOpaque_SkAlphaType); in DEF_TEST()
95 SkImageInfo infoTransparent = SkImageInfo::MakeN32Premul(5, 5); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
99 SkImageInfo infoOpaque = SkImageInfo::MakeN32(5, 5, kOpaque_SkAlphaType); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
120 SkImageInfo::MakeN32Premul(1, 1), in DEF_TEST()
137 SkImageInfo::MakeA8(1, 1), (uint8_t*)&pmColors, 1})->isAlphaOnly() == true); in DEF_TEST()
DPixelRefTest.cpp21 SkImageInfo info; in test_dont_leak_install()
24 info = SkImageInfo::MakeN32Premul(0, 0); in test_dont_leak_install()
31 info = SkImageInfo::MakeN32Premul(10, 10); in test_dont_leak_install()
38 info = SkImageInfo::MakeN32Premul(-10, -10); in test_dont_leak_install()
48 SkImageInfo info = SkImageInfo::MakeN32Premul(0, 0); in test_install()
55 info = SkImageInfo::MakeN32Premul(10, 10); in test_install()
70 SkImageInfo info = SkImageInfo::MakeN32Premul(10, 10); in DEF_TEST()
DBitmapTest.cpp14 const SkImageInfo info = SkImageInfo::MakeN32Premul(10, 10); in test_peekpixels()
24 bm.setInfo(SkImageInfo::MakeN32Premul(10, 10)); in test_peekpixels()
42 const SkImageInfo info = SkImageInfo::MakeN32Premul(width, height); in test_bigalloc()
54 const SkImageInfo info = SkImageInfo::MakeN32Premul(width, height); in test_allocpixels()
91 SkImageInfo info = SkImageInfo::MakeA8(width, 1); in test_bigwidth()
112 bool setConf = bm.setInfo(SkImageInfo::MakeN32Premul(width, height)); in DEF_TEST()
153 bm.allocPixels(SkImageInfo::Make(1, 1, ct, kPremul_SkAlphaType)); in test_erasecolor_premul()
189 bm.allocPixels(SkImageInfo::Make(13, 17, type.fCT, type.fAT)); in DEF_TEST()
205 bm.allocPixels(SkImageInfo::Make(1, 1, kRGBA_F16_SkColorType, kPremul_SkAlphaType)); in DEF_TEST()
DImageTest.cpp40 SkImageInfo read_pixels_info(SkImage* image) { in read_pixels_info()
42 return SkImageInfo::MakeS32(image->width(), image->height(), image->alphaType()); in read_pixels_info()
45 return SkImageInfo::MakeN32(image->width(), image->height(), image->alphaType()); in read_pixels_info()
81 const SkImageInfo info = SkImageInfo::MakeN32(20, 20, kOpaque_SkAlphaType); in create_image()
86 static sk_sp<SkData> create_image_data(SkImageInfo* info) { in create_image_data()
87 *info = SkImageInfo::MakeN32(20, 20, kOpaque_SkAlphaType); in create_image_data()
99 SkImageInfo info; in create_data_image()
105 const SkImageInfo info = SkImageInfo::MakeN32(maxTextureSize + 1, 32, kOpaque_SkAlphaType); in create_image_large()
135 SkImageInfo info; in create_rasterproc_image()
141 SkImageInfo info; in create_codec_image()
[all …]
DImageNewShaderTest.cpp45 SkSurface* destinationSurface, SkImageInfo& info) { in run_shader_test()
104 SkImageInfo info = SkImageInfo::MakeN32Premul(5, 5); in DEF_TEST()
115 SkImageInfo info = SkImageInfo::MakeN32Premul(5, 5); in gpu_to_gpu()
124 SkImageInfo info = SkImageInfo::MakeN32Premul(5, 5); in gpu_to_raster()
133 SkImageInfo info = SkImageInfo::MakeN32Premul(5, 5); in raster_to_gpu()
DPremulAlphaRoundTripTest.cpp59 const SkImageInfo info = SkImageInfo::Make(bmp.width(), bmp.height(), in fill_canvas()
69 const SkImageInfo info = SkImageInfo::Make(256, 256, gUnpremul[upmaIdx].fColorType, in test_premul_alpha_roundtrip()
100 const SkImageInfo info = SkImageInfo::MakeN32Premul(256, 256); in DEF_TEST()
108 const SkImageInfo info = SkImageInfo::MakeN32Premul(256, 256); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/include/core/
DSkMallocPixelRef.h29 static SkMallocPixelRef* NewDirect(const SkImageInfo&, void* addr,
42 static SkMallocPixelRef* NewAllocate(const SkImageInfo& info,
48 static SkMallocPixelRef* NewZeroed(const SkImageInfo& info,
66 static SkMallocPixelRef* NewWithProc(const SkImageInfo& info,
81 static SkMallocPixelRef* NewWithData(const SkImageInfo& info,
90 SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) override;
95 SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) override;
100 SkMallocPixelRef(const SkImageInfo&, void* addr, size_t rb, SkColorTable*,
111 const SkImageInfo&,
121 SkMallocPixelRef(const SkImageInfo&, void* addr, size_t rb, SkColorTable*,
DSkImageInfo.h181 struct SK_API SkImageInfo { struct
183 SkImageInfo() in SkImageInfo() argument
191 static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at,
193 return SkImageInfo(width, height, ct, at, std::move(cs));
199 static SkImageInfo MakeN32(int width, int height, SkAlphaType at,
207 static SkImageInfo MakeS32(int width, int height, SkAlphaType at);
212 static SkImageInfo MakeN32Premul(int width, int height, sk_sp<SkColorSpace> cs = nullptr) {
216 static SkImageInfo MakeN32Premul(const SkISize& size) { in MakeN32Premul() argument
220 static SkImageInfo MakeA8(int width, int height) { in MakeA8() argument
224 static SkImageInfo MakeUnknown(int width, int height) { in MakeUnknown() argument
[all …]
DSkImageGenerator.h53 const SkImageInfo& getInfo() const { return fInfo; } in getInfo()
84 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
91 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
138 sk_sp<GrTextureProxy> generateTexture(GrContext*, const SkImageInfo& info,
159 bool tryGenerateBitmap(SkBitmap* bm, const SkImageInfo& info, SkBitmap::Allocator* allocator);
166 SkImageGenerator(const SkImageInfo& info, uint32_t uniqueId = kNeedNewImageUniqueID);
170 virtual bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
181 virtual sk_sp<GrTextureProxy> onGenerateTexture(GrContext*, const SkImageInfo&,
186 const SkImageInfo fInfo;
DSkSurface.h41 static sk_sp<SkSurface> MakeRasterDirect(const SkImageInfo&, void* pixels, size_t rowBytes,
48 …static sk_sp<SkSurface> MakeRasterDirectReleaseProc(const SkImageInfo&, void* pixels, size_t rowBy…
61 static sk_sp<SkSurface> MakeRaster(const SkImageInfo&, size_t rowBytes, const SkSurfaceProps*);
66 static sk_sp<SkSurface> MakeRaster(const SkImageInfo& info,
78 return MakeRaster(SkImageInfo::MakeN32Premul(width, height), props);
136 static sk_sp<SkSurface> MakeRenderTarget(GrContext*, SkBudgeted, const SkImageInfo&,
141 const SkImageInfo& info, int sampleCount, in MakeRenderTarget()
147 static sk_sp<SkSurface> MakeRenderTarget(GrContext* gr, SkBudgeted b, const SkImageInfo& info) { in MakeRenderTarget()
247 sk_sp<SkSurface> makeSurface(const SkImageInfo&);
295 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
[all …]
DSkBitmap.h82 const SkImageInfo& info() const { return fInfo; } in info()
239 bool setInfo(const SkImageInfo&, size_t rowBytes = 0);
247 … bool SK_WARN_UNUSED_RESULT tryAllocPixels(const SkImageInfo&, SkPixelRefFactory*, SkColorTable*);
249 void allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, SkColorTable* ctable) { in allocPixels()
263 bool SK_WARN_UNUSED_RESULT tryAllocPixels(const SkImageInfo& info, size_t rowBytes);
265 void allocPixels(const SkImageInfo& info, size_t rowBytes) { in allocPixels()
271 bool SK_WARN_UNUSED_RESULT tryAllocPixels(const SkImageInfo& info) { in tryAllocPixels()
275 void allocPixels(const SkImageInfo& info) { in allocPixels()
280 SkImageInfo info = SkImageInfo::MakeN32(width, height,
286 SkImageInfo info = SkImageInfo::MakeN32(width, height,
[all …]
/external/skia/include/codec/
DSkCodec.h112 const SkImageInfo& getInfo() const { return fSrcInfo; } in getInfo()
348 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*,
355 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
417 Result startIncrementalDecode(const SkImageInfo& dstInfo, void* dst, size_t rowBytes,
420 Result startIncrementalDecode(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, in startIncrementalDecode()
425 Result startIncrementalDecode(const SkImageInfo& dstInfo, void* dst, size_t rowBytes) { in startIncrementalDecode()
486 Result startScanlineDecode(const SkImageInfo& dstInfo, const SkCodec::Options* options,
493 Result startScanlineDecode(const SkImageInfo& dstInfo);
669 const SkImageInfo&,
695 virtual Result onGetPixels(const SkImageInfo& info,
[all …]
DSkEncodedInfo.h120 SkImageInfo makeImageInfo(int width, int height, sk_sp<SkColorSpace> colorSpace) const { in makeImageInfo()
124 return SkImageInfo::Make(width, height, kGray_8_SkColorType, in makeImageInfo()
128 return SkImageInfo::Make(width, height, kN32_SkColorType, in makeImageInfo()
133 return SkImageInfo::Make(width, height, kIndex_8_SkColorType, in makeImageInfo()
143 return SkImageInfo::Make(width, height, kN32_SkColorType, in makeImageInfo()
149 return SkImageInfo::Make(width, height, kN32_SkColorType, in makeImageInfo()
153 return SkImageInfo::MakeUnknown(); in makeImageInfo()
DSkAndroidCodec.h49 const SkImageInfo& getInfo() const { return fInfo; } in getInfo()
245 SkCodec::Result getAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
255 SkCodec::Result getAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
257 SkCodec::Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels()
271 virtual SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pixels,
278 const SkImageInfo& fInfo;
/external/skia/gm/
Dimagemasksubset.cpp29 MaskGenerator(const SkImageInfo& info) : INHERITED(info) {} in MaskGenerator()
31 bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor*, in onGetPixels()
37 SkImageInfo surfaceInfo = info; in onGetPixels()
50 using MakerT = sk_sp<SkImage>(*)(SkCanvas*, const SkImageInfo&);
53 [](SkCanvas*, const SkImageInfo& info) -> sk_sp<SkImage> { in __anon1ef734410202()
58 [](SkCanvas* c, const SkImageInfo& info) -> sk_sp<SkImage> { in __anon1ef734410302()
67 [](SkCanvas*, const SkImageInfo& info) -> sk_sp<SkImage> { in __anon1ef734410402()
79 const SkImageInfo info = SkImageInfo::MakeA8(kSize.width(), kSize.height());
/external/skia/src/codec/
DSkGifCodec.h42 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&,
51 uint64_t onGetFillValue(const SkImageInfo&) const override;
56 Result onStartIncrementalDecode(const SkImageInfo& /*dstInfo*/, void*, size_t,
69 void initializeColorTable(const SkImageInfo& dstInfo, size_t frameIndex);
75 Result prepareToDecode(const SkImageInfo& dstInfo, SkPMColor* inputColorPtr,
87 void initializeSwizzler(const SkImageInfo& dstInfo, size_t frameIndex);
122 void applyXformRow(const SkImageInfo& dstInfo, void* dst, const uint8_t* src) const;
129 SkGifCodec(const SkEncodedInfo&, const SkImageInfo&, SkGifImageReader*);
DSkPngCodec.h47 SkPngCodec(const SkEncodedInfo&, const SkImageInfo&, SkStream*, SkPngChunkReader*,
50 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*, int*)
54 uint64_t onGetFillValue(const SkImageInfo&) const override;
75 Result onStartIncrementalDecode(const SkImageInfo& dstInfo, void* pixels, size_t rowBytes,
104 bool createColorTable(const SkImageInfo& dstInfo, int* ctableCount);
106 bool initializeXforms(const SkImageInfo& dstInfo, const Options&, SkPMColor* colorPtr,
108 void initializeSwizzler(const SkImageInfo& dstInfo, const Options&, bool skipFormatConversion);
109 void allocateStorage(const SkImageInfo& dstInfo);
DSkBmpStandardCodec.h49 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
57 SkCodec::Result onPrepareToDecode(const SkImageInfo& dstInfo,
62 uint64_t onGetFillValue(const SkImageInfo&) const override;
77 void initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts);
79 int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
87 void decodeIcoMask(SkStream* stream, const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes);
DSkBmpRLECodec.h46 Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
50 SkCodec::Result onPrepareToDecode(const SkImageInfo& dstInfo,
77 const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
83 const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
89 int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
91 int decodeRLE(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes);
DSkJpegCodec.h47 Result onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes, const Options&,
112 bool setOutputColorSpace(const SkImageInfo& dst);
114 void initializeSwizzler(const SkImageInfo& dstInfo, const Options& options,
116 void allocateStorage(const SkImageInfo& dstInfo);
117 int readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count, const Options&);
123 Result onStartScanlineDecode(const SkImageInfo& dstInfo, const Options& options,
/external/skia/src/core/
DSkConvertPixels.cpp21 static inline bool can_memcpy(const SkImageInfo& dstInfo, const SkImageInfo& srcInfo) { in can_memcpy()
54 void swizzle_and_multiply(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in swizzle_and_multiply()
55 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { in swizzle_and_multiply()
90 static inline bool optimized_color_xform(const SkImageInfo& dstInfo, const SkImageInfo& srcInfo, in optimized_color_xform()
120 static inline void apply_color_xform(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in apply_color_xform()
121 const SkImageInfo& srcInfo, const void* srcPixels, in apply_color_xform()
163 void do_index8(const SkImageInfo& dstInfo, T* dstPixels, size_t dstRB, in do_index8()
164 const SkImageInfo& srcInfo, const uint8_t* srcPixels, size_t srcRB, in do_index8()
168 SkImageInfo srcInfo8888 = srcInfo.makeColorType(kN32_SkColorType).makeWH(count, 1); in do_index8()
169 SkImageInfo dstInfoCT = dstInfo.makeWH(count, 1); in do_index8()
[all …]
DSkMallocPixelRef.cpp18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { in is_valid()
40 SkMallocPixelRef* SkMallocPixelRef::NewDirect(const SkImageInfo& info, in NewDirect()
52 const SkImageInfo& info, in NewUsing()
90 SkMallocPixelRef* SkMallocPixelRef::NewAllocate(const SkImageInfo& info, in NewAllocate()
97 SkMallocPixelRef* SkMallocPixelRef::NewZeroed(const SkImageInfo& info, in NewZeroed()
103 SkMallocPixelRef* SkMallocPixelRef::NewWithProc(const SkImageInfo& info, in NewWithProc()
122 SkMallocPixelRef* SkMallocPixelRef::NewWithData(const SkImageInfo& info, in NewWithData()
147 SkMallocPixelRef::SkMallocPixelRef(const SkImageInfo& info, void* storage, in SkMallocPixelRef()
169 SkMallocPixelRef::SkMallocPixelRef(const SkImageInfo& info, void* storage, in SkMallocPixelRef()
217 SkPixelRef* SkMallocPixelRef::PRFactory::create(const SkImageInfo& info, size_t rowBytes, in create()
[all …]
DSkAutoPixmapStorage.h26 bool tryAlloc(const SkImageInfo&);
35 void alloc(const SkImageInfo&);
41 static size_t AllocSize(const SkImageInfo& info, size_t* rowBytes);
55 void reset(const SkImageInfo& info, const void* addr, size_t rb, SkColorTable* ctable = NULL) {
59 void reset(const SkImageInfo& info) { in reset()
DSkDevice.h28 SkBaseDevice(const SkImageInfo&, const SkSurfaceProps&);
34 const SkImageInfo& imageInfo() const { return fInfo; } in imageInfo()
72 bool writePixels(const SkImageInfo&, const void*, size_t rowBytes, int x, int y);
266 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y);
272 virtual sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&);
281 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int x, int y);
289 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int x, int y);
294 static SkPixelGeometry AdjustGeometry(const SkImageInfo&, TileUsage, SkPixelGeometry,
298 CreateInfo(const SkImageInfo& info, in CreateInfo()
306 CreateInfo(const SkImageInfo& info, in CreateInfo()
[all …]
/external/skia/src/image/
DSkSurface_Raster.cpp18 static bool Valid(const SkImageInfo&, size_t rb = kIgnoreRowBytesValue);
20 SkSurface_Raster(const SkImageInfo&, void*, size_t rb,
26 sk_sp<SkSurface> onNewSurface(const SkImageInfo&) override;
42 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) { in Valid()
101 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, void* pixels, size_t rb, in SkSurface_Raster()
114 const SkImageInfo& info = pr->info(); in SkSurface_Raster()
124 sk_sp<SkSurface> SkSurface_Raster::onNewSurface(const SkImageInfo& info) { in onNewSurface()
185 sk_sp<SkSurface> SkSurface::MakeRasterDirectReleaseProc(const SkImageInfo& info, void* pixels, in MakeRasterDirectReleaseProc()
201 sk_sp<SkSurface> SkSurface::MakeRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, in MakeRasterDirect()
206 sk_sp<SkSurface> SkSurface::MakeRaster(const SkImageInfo& info, size_t rowBytes, in MakeRaster()

12345678910>>...15