/external/libpng/scripts/ |
def.c | 8 * and license in png.h 20 PNG_DFN "OS2 DESCRIPTION "PNG image compression library"" 29 #include "../png.h"
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
Bitmap_CompressFormatTest.java | 29 assertEquals(CompressFormat.PNG, CompressFormat.valueOf("PNG")); 38 assertEquals(CompressFormat.PNG, comFormat[1]); 44 assertTrue(b.compress(CompressFormat.PNG, 24, new ByteArrayOutputStream()));
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
PngTest.java | 26 import com.badlogic.gdx.graphics.PixmapIO.PNG; 55 PNG writer = new PNG((int)(pixmap.getWidth() * pixmap.getHeight() * 1.5f));
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
PixmapPackerIO.java | 8 import com.badlogic.gdx.graphics.PixmapIO.PNG; 22 PNG(".png"); 38 public ImageFormat format = ImageFormat.PNG; 71 case PNG: {
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapFactoryTest.java | 36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
IconTest.java | 82 bm1.compress(Bitmap.CompressFormat.PNG, 100, 83 new FileOutputStream(new File(dir, "bitmap1-original.png"))); 84 test1.compress(Bitmap.CompressFormat.PNG, 100, 85 new FileOutputStream(new File(dir, "bitmap1-test.png"))); 91 bm2.compress(Bitmap.CompressFormat.PNG, 100, 92 new FileOutputStream(new File(dir, "bitmap2-original.png"))); 93 test2.compress(Bitmap.CompressFormat.PNG, 100, 94 new FileOutputStream(new File(dir, "bitmap2-test.png"))); 100 bm3.compress(Bitmap.CompressFormat.PNG, 100, 101 new FileOutputStream(new File(dir, "bitmap3-original.png"))); [all...] |
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/ |
ImageCompare.java | 20 bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream); 109 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, stream1); 114 bitmap2.compress(Bitmap.CompressFormat.PNG, 100, stream2); 140 MediaStoreSaver.savePNG(differenceBitmap, "difference", "updateSharp1Difference.png", mContext);
|
MediaStoreSaver.java | 49 File file = new File(dir, imageName + n + ".png"); 52 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
MediaStoreSaver.java | 51 File file = File.createTempFile(imageName, ".png", dir); 53 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
BitmapEncoder.java | 19 * using {@link android.graphics.Bitmap.CompressFormat#PNG} to preserve alpha and all other bitmaps are written 63 return Bitmap.CompressFormat.PNG;
|
ImageHeaderParser.java | 5 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.PNG; 31 /** PNG type with alpha. */ 33 /** PNG type without alpha. */ 34 PNG(false), 96 // PNG. 98 // See: http://stackoverflow.com/questions/2057923/how-to-check-a-png-for-grayscale-alpha-color-type 101 // A RGB indexed PNG can also have transparency. Better safe than sorry! 102 return alpha >= 3 ? PNG_A : PNG;
|
/prebuilts/go/darwin-x86/src/image/png/ |
paeth.go | 5 package png package 22 // paeth implements the Paeth filter function, as per the PNG specification. 24 // This is an optimized version of the sample code in the PNG spec.
|
reader.go | 5 // Package png implements a PNG image decoder and encoder. 7 // The PNG specification is at http://www.w3.org/TR/PNG/. 8 package png package 21 // Color type, as per the PNG spec. 54 // Filter type, as per the PNG spec. 76 // See http://www.w3.org/TR/PNG/#8Interlace 88 // The PNG specification says that the IHDR, PLTE (if present), tRNS (if 92 // http://www.w3.org/TR/PNG/#5ChunkOrderin [all...] |
reader_test.go | 5 package png package 68 func sng(w io.WriteCloser, filename string, png image.Image) { 70 bounds := png.Bounds() 71 cm := png.ColorModel() 92 paletted = png.(*image.Paletted) 96 io.WriteString(w, "#SNG: from "+filename+".png\nIHDR {\n") 108 io.WriteString(w, "unknown PNG decoder color model\n") 112 // We fake a gAMA output. The test files have a gAMA chunk but the go PNG parser ignores it 113 // (the PNG spec section 11.3 says "Ancillary chunks may be ignored by a decoder"). 153 gray := png.At(x, y).(color.Gray [all...] |
/prebuilts/go/linux-x86/src/image/png/ |
paeth.go | 5 package png package 22 // paeth implements the Paeth filter function, as per the PNG specification. 24 // This is an optimized version of the sample code in the PNG spec.
|
reader.go | 5 // Package png implements a PNG image decoder and encoder. 7 // The PNG specification is at http://www.w3.org/TR/PNG/. 8 package png package 21 // Color type, as per the PNG spec. 54 // Filter type, as per the PNG spec. 76 // See http://www.w3.org/TR/PNG/#8Interlace 88 // The PNG specification says that the IHDR, PLTE (if present), tRNS (if 92 // http://www.w3.org/TR/PNG/#5ChunkOrderin [all...] |
reader_test.go | 5 package png package 68 func sng(w io.WriteCloser, filename string, png image.Image) { 70 bounds := png.Bounds() 71 cm := png.ColorModel() 92 paletted = png.(*image.Paletted) 96 io.WriteString(w, "#SNG: from "+filename+".png\nIHDR {\n") 108 io.WriteString(w, "unknown PNG decoder color model\n") 112 // We fake a gAMA output. The test files have a gAMA chunk but the go PNG parser ignores it 113 // (the PNG spec section 11.3 says "Ancillary chunks may be ignored by a decoder"). 153 gray := png.At(x, y).(color.Gray [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
PixmapIO.java | 58 /** Writes the pixmap as a PNG with compression. See {@link PNG} to configure the compression level, more efficiently flip the
62 PNG writer = new PNG((int)(pixmap.getWidth() * pixmap.getHeight() * 1.5f)); // Guess at deflated size.
70 throw new GdxRuntimeException("Error writing PNG: " + file, ex);
153 /** PNG encoder with compression. An instance can be reused to encode multiple PNGs with minimal allocation.
179 static public class PNG implements Disposable {
194 public PNG () {
198 public PNG (int initialBufferSize) {
203 /** If true, the resulting PNG is flipped vertically. Default is true. */ [all...] |
/external/webrtc/webrtc/tools/barcode_tools/ |
barcode_decoder.py | 26 """Converts a YUV video file into PNG frames. 29 the form frame_xxxx.png, where xxxx is the frame number, starting from 0001. 35 output_directory(string): The output directory where the PNG frames will be 44 output_files_pattern = os.path.join(output_directory, 'frame_%04d.png') 48 % yuv_file_name, '-f', 'image2', '-vcodec', 'png', 51 print 'Converting YUV file to PNG images (may take a while)...' 54 command, fail_msg='Error during YUV to PNG conversion') 68 to decode the barcode in every PNG frame from the input directory. The frames 69 should be named frame_xxxx.png, where xxxx is the frame number. The frame 76 input_directory(string): The input directory from where the PNG frames ar [all...] |
/cts/hostsidetests/theme/app/src/android/theme/app/ |
GenerateBitmapTask.java | 32 * as a PNG asynchronously. 71 final File file = new File(mOutDir, mName + ".png"); 82 success = bitmap.compress(CompressFormat.PNG, 100, stream);
|
/external/droiddriver/src/io/appium/droiddriver/base/ |
BaseUiDevice.java | 80 return takeScreenshot(path, Bitmap.CompressFormat.PNG, 0);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GetBitmapActivity.java | 50 button.setText("Copy bitmap to /sdcard/textureview.png"); 57 Environment.getExternalStorageDirectory() + "/textureview.png"); 59 b.compress(Bitmap.CompressFormat.PNG, 100, out);
|
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
MediaStoreSaver.java | 50 String suffix = ".png"; 51 Bitmap.CompressFormat format = Bitmap.CompressFormat.PNG;
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/content/ |
FileProviderExample.java | 50 final File file = new File(thumbsDir, "private.png"); 56 intent.setType("image/png"); 73 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodIconSamplerActivity.java | 43 * The icon can then be copied from /mnt/shell/emulated/<MANAGED_USER_ID>/badged_icon.png. 65 String fileName = Environment.getExternalStorageDirectory().getPath() + "/badged_icon.png"; 69 bitmap.compress(Bitmap.CompressFormat.PNG, 100, file);
|