/external/chromium_org/tools/site_compare/operators/ |
equals.py | 7 from PIL import Image 15 file1: path to first image to compare 16 file2: path to second image to compare 21 A tuple of (errorstring, image) if they're not 25 im1 = Image.open(file1) 26 im2 = Image.open(file2)
|
equals_with_mask.py | 7 from PIL import Image 21 file1: path to first image to compare 22 file2: path to second image to compare 27 A tuple of (errorstring, image) if they're not 34 im1 = Image.open(file1) 35 im2 = Image.open(file2) 46 mask = Image.open(maskfile)
|
/frameworks/base/libs/hwui/ |
Image.cpp | 22 #include "Image.h" 27 Image::Image(sp<GraphicBuffer> buffer) { 37 ALOGW("Error creating image (%#x)", eglGetError()); 47 ALOGW("Error creating image (%#x)", status); 52 Image::~Image() {
|
Image.h | 34 class Image { 37 * Creates a new image from the specified graphic buffer. If the image 41 Image(sp<GraphicBuffer> buffer); 42 ~Image(); 46 * from this image. 53 * Returns the name of the EGL image represented by this object. 62 }; // class Image
|
/pdk/apps/CameraITS/tests/ |
test_formats.py | 15 import its.image namespace 19 import Image 23 """Test that the reported sizes and formats for image capture work. 45 img = Image.open(fname)
|
test_black_white.py | 15 import its.image namespace 20 import Image 42 img = its.image.load_yuv420_to_rgb_image(fname, w, h) 43 its.image.write_image(img, "%s_black.jpg" % (NAME)) 44 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 45 black_means = its.image.compute_image_means(tile) 55 img = its.image.load_yuv420_to_rgb_image(fname, w, h) 56 its.image.write_image(img, "%s_white.jpg" % (NAME)) 57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 58 white_means = its.image.compute_image_means(tile [all...] |
test_jpeg.py | 15 import its.image namespace 19 import Image 41 img = its.image.load_yuv420_to_rgb_image(fname, w, h) 42 its.image.write_image(img, "%s_fmt=yuv.jpg" % (NAME)) 43 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 44 rgb0 = its.image.compute_image_means(tile) 52 img = numpy.array(Image.open(fname)).reshape(w,h,3) / 255.0 53 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 54 rgb1 = its.image.compute_image_means(tile)
|
test_linearity.py | 15 import its.image namespace 20 import Image 89 img = its.image.load_yuv420_to_rgb_image(fname, w, h) 90 its.image.write_image( 92 img = its.image.apply_lut_to_image(img, inv_gamma_lut[1::2] * LM1) 93 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 94 rgb_means = its.image.compute_image_means(tile)
|
test_param_tonemap_mode.py | 15 import its.image namespace 21 import Image 62 img = its.image.load_yuv420_to_rgb_image(fname, w, h) 63 its.image.write_image( 65 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 66 rgb_means.append(its.image.compute_image_means(tile)) 87 img = its.image.load_yuv420_to_rgb_image(fname, w, h) 88 its.image.write_image( 90 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1) 91 rgb_means.append(its.image.compute_image_means(tile) [all...] |
/external/chromium_org/third_party/angle_dx11/src/libGLESv2/renderer/ |
Image.h | 7 // Image.h: Defines the rx::Image class, an abstract base class for the 27 class Image 30 Image(); 31 virtual ~Image() {}; 126 DISALLOW_COPY_AND_ASSIGN(Image);
|
/external/chromium_org/printing/ |
image.cc | 5 #include "printing/image.h" 20 Image::Image(const base::FilePath& path) 40 Image::Image(const Metafile& metafile) 46 Image::Image(const Image& image) 47 : size_(image.size_) [all...] |
image.h | 24 // Lightweight raw-bitmap management. The image, once initialized, is immutable. 25 // The main purpose is testing image contents. 26 class PRINTING_EXPORT Image { 28 // Creates the image from the given file on disk. Uses extension to 30 // If image loading fails size().IsEmpty() will be true. 31 explicit Image(const base::FilePath& path); 33 // Creates the image from the metafile. Deduces bounds based on bounds in 35 explicit Image(const Metafile& metafile); 38 explicit Image(const Image& image) [all...] |
/bootable/recovery/tools/ota/ |
convert-to-bmp.py | 4 RGBA image.""" 7 import Image 16 im = Image.open(infile) 37 "L" # size of image data (0 if uncompressed) 79 print >> sys.stderr, "Don't know how to handle image mode '%s'." % (im.mode,)
|
/external/chromium_org/chrome/test/functional/ispy/ispy_core/tools/ |
image_tools.py | 5 """Utilities for performing pixel-by-pixel image comparision.""" 9 from PIL import Image 22 Exception: One image or fewer is passed in. 34 """Returns an image representing the difference between the two images. 38 the coloration of the generated image. 41 image1: the first image to compare. 42 image2: the second image to compare. 43 mask: an optional mask image consisting of only black and white pixels 44 where white pixels indicate the portion of the image to be masked out. 45 masked_color: the color of a masked section in the resulting image [all...] |
image_tools_unittest.py | 6 from PIL import Image 11 return Image.new('RGBA', size, color) 14 def _AllPixelsOfColor(image, color): 15 return not any(px != color for px in image.getdata()) 152 cross_image = Image.new('RGBA', (3, 3)) 153 white_image = Image.new('RGBA', (3, 3)) 154 dot_image = Image.new('RGBA', (3, 3))
|
rendering_test_manager_unittest.py | 5 from PIL import Image 21 self.white = Image.new('RGB', (25, 25), (255, 255, 255)) 22 self.red = Image.new('RGB', (25, 25), (255, 0, 0)) 23 self.black = Image.new('RGB', (25, 25), (0, 0, 0)) 59 # nonexistant image.
|
/external/chromium_org/ui/gfx/image/ |
image.h | 5 // An Image wraps an image any flavor, be it platform-native GdkBitmap/NSImage, 6 // or a SkBitmap. This also provides easy conversion to other image types 11 // tied to the lifetime of the Image's internal storage. To allow Images to be 12 // cheaply passed around by value, the actual image data is stored in a ref- 17 // Attempting to use an empty Image will result in a crash. 56 class UI_EXPORT Image { 69 // Creates an empty image with no representations. 70 Image(); 72 // Creates a new image by copying the raw PNG-encoded input for use as th [all...] |
/frameworks/base/media/java/android/media/ |
Image.java | 23 * <p>A single complete image buffer to use with a media source such as a 27 * data of the Image through one or more 38 * from various media sources, not closing old Image objects will prevent the 40 * {@link ImageReader#getMaxImages the maximum outstanding image count} is 46 public abstract class Image implements AutoCloseable { 50 protected Image() { 54 * Get the format for this image. This format determines the number of 55 * ByteBuffers needed to represent the image, and the general layout of the 92 * The width of the image in pixels. For formats where some color channels 98 * The height of the image in pixels. For formats where some color channel [all...] |
/sdk/eclipse/scripts/ |
gen_icon.py | 6 import Image, ImageDraw, ImageFont 49 img = Image.new("RGBA", (sz4, sz4), (255,255,255,0)) 66 img = img.resize((sz, sz), Image.BICUBIC)
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/ |
Image.cpp | 28 #include "core/platform/graphics/Image.h" 51 Image::Image(ImageObserver* observer) 56 Image::~Image() 60 Image* Image::nullImage() 63 DEFINE_STATIC_LOCAL(RefPtr<Image>, nullImage, (BitmapImage::create()));; 67 PassRefPtr<Image> Image::loadPlatformResource(const char *name [all...] |
Image.h | 51 // This class gets notified when an image creates or destroys decoded frames and when it advances animation frames. 54 class Image : public RefCounted<Image> { 61 virtual ~Image(); 63 static PassRefPtr<Image> loadPlatformResource(const char* name); 71 // the image contains only resources from its own security origin. 74 static Image* nullImage(); 99 // Animation begins whenever someone draws the image, so startAnimation() is not normally called. 100 // It will automatically pause once all observers no longer want to render the image anywhere. 122 Image(ImageObserver* = 0) [all...] |
/bootable/recovery/ |
make-overlay.py | 16 "installing" icon animation and turn it into a base image plus a set 22 import Image 31 base = Image.open(sys.argv[1]) 40 top = Image.open(top_name) 68 # Now write out an image containing just that box, for each frame. 71 top = Image.open(top_name) 73 out = Image.new("RGB", (w, h))
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/ |
ShapeValue.h | 45 Image 58 static PassRefPtr<ShapeValue> createImageValue(PassRefPtr<StyleImage> image) 60 return adoptRef(new ShapeValue(image)); 65 StyleImage* image() const { return m_image.get(); } function in class:WebCore::ShapeValue 66 void setImage(PassRefPtr<StyleImage> image) 68 if (m_image != image) 69 m_image = image; 83 ShapeValue(PassRefPtr<StyleImage> image) 84 : m_type(Image) 85 , m_image(image) [all...] |
/pdk/apps/CameraITS/pymodules/its/ |
image.py | 21 import Image 45 """Load a YUV420 image file, and return as an RGB image. 49 w: The width of the image. 50 h: The height of the image. 55 RGB float-3 image array, with pixel values in [0.0, 1.0]. 75 """Load a YUV420 image file, and return separate Y, U, and V plane images. 79 w: The width of the image. 80 h: The height of the image. 97 """Applies a LUT to every pixel in a float image array [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/ |
PixMapWrapper.py | 4 Python Imaging Library Image object. 192 """Initialize this PixMap from a PIL Image object.""" 201 """Return the contents of this PixMap as a PIL Image object.""" 202 import Image 204 # whereas Image uses RGBA; a bit of slicing fixes this... 207 return Image.fromstring('RGBA',(bounds[2]-bounds[0],bounds[3]-bounds[1]),data) 212 import Image 213 path = EasyDialogs.AskFileForOpen("Image File:") 216 pm.fromImage( Image.open(path) )
|