Searched defs:bitmap (Results 1 - 25 of 40) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
H A DBitmapShader.java25 * Call this to create a new shader that will draw with a bitmap.
27 * @param bitmap The bitmap to use inside the shader
28 * @param tileX The tiling mode for x to draw the bitmap in.
29 * @param tileY The tiling mode for y to draw the bitmap in.
31 public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY) { argument
32 mBitmap = bitmap;
33 native_instance = nativeCreate(bitmap.ni(),
H A DNinePatch.java21 * The NinePatch class permits drawing a bitmap in nine sections.
39 * Create a drawable projection from a bitmap to nine patches.
41 * @param bitmap The bitmap describing the patches.
43 * bitmap is split apart and drawn.
44 * @param srcName The name of the source for the bitmap. Might be null.
46 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { argument
47 mBitmap = bitmap;
71 * Draw a bitmap of nine patches.
73 * @param canvas A container for the current matrix and clip used to draw the bitmap
141 validateNinePatchChunk(int bitmap, byte[] chunk) argument
148 nativeGetTransparentRegion( int bitmap, byte[] chunk, Rect location) argument
[all...]
H A DPicture.java161 public void setBitmap(Bitmap bitmap) { argument
/frameworks/base/core/jni/
H A Dcom_android_internal_graphics_NativeUtils.cpp49 const SkBitmap& bitmap = c->getDevice()->accessBitmap(true); local
50 return bitmap.scrollRect(srcPtr, dx, dy, NULL);
H A Dandroid_emoji_EmojiFactory.cpp178 SkBitmap *bitmap = new SkBitmap; local
179 if (!SkImageDecoder::DecodeMemory(bytes, size, bitmap)) {
187 reinterpret_cast<jint>(bitmap), false, NULL, -1);
/frameworks/base/media/tests/omxjpegdecoder/
H A Djpeg_decoder_bench.cpp53 SkBitmap* bitmap) {
58 // Decode the input stream and then use the bitmap.
59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) {
63 printf("WidthxHeight: %dx%d\n", bitmap->width(), bitmap->height());
70 SkBitmap* bitmap) {
75 // Decode the input stream and then use the bitmap.
76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) {
82 return storeBitmapToFile(bitmap, filename);
89 SkBitmap* bitmap local
52 testDecodeBounds(SkImageDecoder* decoder, SkStream* stream, SkBitmap* bitmap) argument
69 testDecodePixels(SkImageDecoder* decoder, SkStream* stream, SkBitmap* bitmap) argument
[all...]
H A Domx_jpeg_decoder.cpp62 extern int storeBitmapToFile(SkBitmap* bitmap, const char* filename) { argument
63 bitmap->lockPixels();
64 uint8_t* data = (uint8_t *)bitmap->getPixels();
65 int size = bitmap->getSize();
/frameworks/base/opengl/java/android/opengl/
H A DGLUtils.java42 * return the internal format as defined by OpenGL ES of the supplied bitmap.
43 * @param bitmap
44 * @return the internal format of the bitmap.
46 public static int getInternalFormat(Bitmap bitmap) { argument
47 if (bitmap == null) {
50 int result = native_getInternalFormat(bitmap);
58 * Return the type as defined by OpenGL ES of the supplied bitmap, if there
59 * is one. If the bitmap is stored in a compressed format, it may not have
61 * @throws IllegalArgumentException if the bitmap does not have a type.
62 * @param bitmap
65 getType(Bitmap bitmap) argument
98 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int border) argument
121 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
140 texImage2D(int target, int level, Bitmap bitmap, int border) argument
172 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap) argument
194 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
206 native_getInternalFormat(Bitmap bitmap) argument
207 native_getType(Bitmap bitmap) argument
208 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
210 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DNinePatch_Delegate.java152 /*package*/ static void validateNinePatchChunk(int bitmap, byte[] chunk) { argument
177 /*package*/ static int nativeGetTransparentRegion(int bitmap, byte[] chunk, Rect location) { argument
H A DBitmap_Delegate.java71 public static Bitmap_Delegate getDelegate(Bitmap bitmap) { argument
72 return sManager.getDelegate(bitmap.mNativeBitmap);
85 * @param input the file from which to read the bitmap content
86 * @param isMutable whether the bitmap is mutable
87 * @param density the density associated with the bitmap
103 * @param input the stream from which to read the bitmap content
104 * @param isMutable whether the bitmap is mutable
105 * @param density the density associated with the bitmap
121 * @param image the bitmap content
122 * @param isMutable whether the bitmap i
139 getImage(Bitmap bitmap) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp31 const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
70 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
89 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
106 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
114 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
119 SkASSERT(bitmap);
126 draw(env, canvas, bounds, bitmap, chunkObj, paint, destDensity, srcDensity);
130 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
135 SkASSERT(bitmap);
141 draw(env, canvas, bounds, bitmap, chunkOb
69 draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
113 drawF(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRectF, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
129 drawI(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRect, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
144 getTransparentRegion(JNIEnv* env, jobject, const SkBitmap* bitmap, jbyteArray chunkObj, jobject boundsRect) argument
[all...]
H A DNinePatchImpl.cpp40 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) { argument
41 switch (bitmap.getConfig()) {
43 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y));
46 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y));
50 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y)));
53 SkColorTable* ctable = bitmap.getColorTable();
55 (*ctable)[*bitmap.getAddr8(x, y)]);
71 const SkBitmap& bitmap, const SkPaint& paint,
80 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) {
91 canvas->drawBitmapRect(bitmap,
70 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument
105 NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument
[all...]
H A DShader.cpp68 static SkShader* BitmapShader_constructor(JNIEnv* env, jobject, const SkBitmap* bitmap, argument
71 SkShader* s = SkShader::CreateBitmapShader(*bitmap,
H A DBitmapRegionDecoder.cpp212 SkBitmap* bitmap = new SkBitmap; local
213 SkAutoTDelete<SkBitmap> adb(bitmap);
229 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
235 env->SetIntField(options, gOptions_widthFieldID, bitmap->width());
236 env->SetIntField(options, gOptions_heightFieldID, bitmap->height());
244 // detach bitmap from its autotdeleter, since we want to own it now
248 pr = bitmap->pixelRef();
251 // now create the java bitmap
252 return GraphicsJNI::createBitmap(env, bitmap, false, NULL);
/frameworks/base/media/libmedia/
H A DIMediaMetadataRetriever.cpp210 sp<IMemory> bitmap = getFrameAtTime(timeUs, option); local
211 if (bitmap != 0) { // Don't send NULL across the binder interface
213 reply->writeStrongBinder(bitmap->asBinder());
/frameworks/base/tests/BrowserTestPlugin/jni/event/
H A DEventPlugin.cpp47 void EventPlugin::drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip) { argument
50 inst(), bitmap.width, bitmap.height);
58 const float zoomFactorW = static_cast<float>(bitmap.width) / W;
59 const float zoomFactorH = static_cast<float>(bitmap.height) / H;
71 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap);
147 drawPlugin(evt->data.draw.data.bitmap, evt->data.draw.clip);
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java87 addLabelToRoot(root, "Prescaled bitmap in drawable");
94 addLabelToRoot(root, "Autoscaled bitmap in drawable");
116 addLabelToRoot(root, "Prescaled bitmap");
123 addLabelToRoot(root, "Autoscaled bitmap");
163 Bitmap bitmap;
164 bitmap = loadAndPrintDpi(resource, scale);
168 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
189 Bitmap bitmap;
190 bitmap = loadAndPrintDpi(resource, scale);
192 ScaledBitmapView view = new ScaledBitmapView(this, bitmap);
227 ScaledBitmapView(Context context, Bitmap bitmap) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java34 * A resizeable bitmap, with stretchable areas that you define. This type of image
63 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { argument
64 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
71 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument
73 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
250 Bitmap bitmap = null;
256 bitmap = BitmapFactory.decodeResourceStream(r, value, is, padding, options);
263 if (bitmap == null) {
266 } else if (bitmap.getNinePatchChunk() == null) {
272 new NinePatch(bitmap, bitma
[all...]
H A DBitmapDrawable.java40 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a
43 * <p>It can be defined in an XML file with the <code>&lt;bitmap></code> element. For more
48 * transformation of raw bitmap graphics, and should be used when drawing to a
97 * Create drawable from a bitmap, not dealing with density.
102 public BitmapDrawable(Bitmap bitmap) { argument
103 this(new BitmapState(bitmap), null);
107 * Create drawable from a bitmap, setting initial target density based on
110 public BitmapDrawable(Resources res, Bitmap bitmap) { argument
111 this(new BitmapState(bitmap), res);
116 * Create a drawable by opening a given file path and decoding the bitmap
176 setBitmap(Bitmap bitmap) argument
443 BitmapState(Bitmap bitmap) argument
[all...]
/frameworks/base/media/java/android/media/
H A DFaceDetector.java33 * of a face in a bitmap.
127 * face found. The bitmap must be in 565 format (for now).
129 * @param bitmap the {@link android.graphics.Bitmap} graphic to be analyzed
139 public int findFaces(Bitmap bitmap, Face[] faces) argument
144 if (bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) {
146 "bitmap size doesn't match initialization");
153 int numFaces = fft_detect(bitmap);
190 native private int fft_detect(Bitmap bitmap); argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp190 SkBitmap *bitmap = new SkBitmap(); local
191 if (bitmap == NULL) {
195 bitmap->setConfig(SkBitmap::kRGB_565_Config, videoFrame->mDisplayWidth, videoFrame->mDisplayHeight);
196 if (!bitmap->allocPixels()) {
197 delete bitmap;
201 memcpy((uint8_t*)bitmap->getPixels(), (uint8_t*)videoFrame + sizeof(VideoFrame), videoFrame->mSize);
207 fields.bitmapConstructor, (int) bitmap, true, NULL, -1);
209 LOGV("Return a new bitmap constructed with the rotation matrix");
/frameworks/base/sax/tests/saxtests/src/android/sax/
H A DSafeSaxTest.java529 public Bitmap bitmap; // cached bitmap of the thumbnail field in class:SafeSaxTest.YouTubeVideo
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp93 SkBitmap bitmap;
95 &bitmap, SkBitmap::kNo_Config, SkImageDecoder::kDecodePixels_Mode);
100 // bitmap will go out of scope when we return from this method.
101 bitmap.lockPixels();
103 const int w = bitmap.width();
104 const int h = bitmap.height();
105 const void* p = bitmap.getPixels();
114 switch (bitmap.getConfig()) {
147 SkBitmap bitmap; local
149 &bitmap, SkBitma
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java89 * This contains graphics, bitmap and layer information.
104 * Creates a layer with a graphics and a bitmap. This is only used to create
108 * @param bitmap the bitmap
110 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { argument
112 mBitmap = bitmap;
194 * Creates the root snapshot associating it with a given bitmap.
196 * If <var>bitmap</var> is null, then {@link GcSnapshot#setBitmap(Bitmap_Delegate)} must be
203 public static GcSnapshot createDefaultSnapshot(Bitmap_Delegate bitmap) { argument
205 if (bitmap !
389 setBitmap(Bitmap_Delegate bitmap) argument
[all...]
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java86 * at the time the bitmap is loaded).
95 private FastBitmapDrawable(Bitmap bitmap) { argument
96 mBitmap = bitmap;
97 mWidth = bitmap.getWidth();
98 mHeight = bitmap.getHeight();
237 // bitmap as-is.
250 // Load the bitmap with full color depth, to preserve
279 // bitmap as-is.
291 // Load the bitmap with full color depth, to preserve
305 Log.w(TAG, "Can't generate default bitmap",
475 setBitmap(Bitmap bitmap) argument
[all...]

Completed in 1036 milliseconds

12