HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 276 - 300 of 800) sorted by null

<<11121314151617181920>>

  /developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/
MediaEffectsFragment.java 19 import android.graphics.Bitmap;
134 // Load input bitmap
135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local
136 mImageWidth = bitmap.getWidth();
137 mImageHeight = bitmap.getHeight();
142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
279 // if no effect is chosen, just render the original bitmap
  /developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/
PdfRendererBasicFragment.java 22 import android.graphics.Bitmap;
37 * pages. We use a {@link android.graphics.pdf.PdfRenderer} to render PDF pages as {@link android.graphics.Bitmap}s.
62 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap}
172 // Important: the destination bitmap must be ARGB (not RGB).
173 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local
174 Bitmap.Config.ARGB_8888);
175 // Here, we render the page onto the Bitmap.
179 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY)
    [all...]
  /developers/samples/android/wearable/wear/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/
Utils.java 21 import android.graphics.Bitmap;
123 * Convert an asset into a bitmap object synchronously. Only call this
127 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) {
139 // decode the stream into a bitmap
144 * Create a wearable asset from a bitmap.
146 public static Asset createAssetFromBitmap(Bitmap bitmap) {
147 if (bitmap != null) {
149 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
DensityActivity.java 26 import android.graphics.Bitmap;
59 addLabelToRoot(root, "Prescaled bitmap in drawable");
66 addLabelToRoot(root, "Autoscaled bitmap in drawable");
88 addLabelToRoot(root, "Prescaled bitmap");
95 addLabelToRoot(root, "Autoscaled bitmap");
135 Bitmap bitmap; local
136 bitmap = loadAndPrintDpi(resource, scale);
140 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
161 Bitmap bitmap local
185 Bitmap bitmap; local
    [all...]
  /development/samples/HelloEffects/src/com/example/android/mediafx/
HelloEffects.java 20 import android.graphics.Bitmap;
74 // Load input bitmap
75 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), local
77 mImageWidth = bitmap.getWidth();
78 mImageHeight = bitmap.getHeight();
83 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
246 // if no effect is chosen, just render the original bitmap
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
AlbumArtCache.java 19 import android.graphics.Bitmap;
48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
63 protected int sizeOf(String key, Bitmap[] value) {
70 public Bitmap getBigImage(String artUrl) {
71 Bitmap[] result = mCache.get(artUrl);
75 public Bitmap getIconImage(String artUrl) {
76 Bitmap[] result = mCache.get(artUrl);
83 // requests and bitmap rescales. For production-level apps, we recommend you use
85 Bitmap[] bitmap = mCache.get(artUrl) local
98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [all...]
  /development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
MediaEffectsFragment.java 19 import android.graphics.Bitmap;
134 // Load input bitmap
135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local
136 mImageWidth = bitmap.getWidth();
137 mImageHeight = bitmap.getHeight();
142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
279 // if no effect is chosen, just render the original bitmap
  /development/samples/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/
PdfRendererBasicFragment.java 22 import android.graphics.Bitmap;
37 * pages. We use a {@link android.graphics.pdf.PdfRenderer} to render PDF pages as {@link android.graphics.Bitmap}s.
62 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap}
172 // Important: the destination bitmap must be ARGB (not RGB).
173 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local
174 Bitmap.Config.ARGB_8888);
175 // Here, we render the page onto the Bitmap.
179 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY)
    [all...]
  /development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/
Utils.java 21 import android.graphics.Bitmap;
123 * Convert an asset into a bitmap object synchronously. Only call this
127 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) {
139 // decode the stream into a bitmap
144 * Create a wearable asset from a bitmap.
146 public static Asset createAssetFromBitmap(Bitmap bitmap) {
147 if (bitmap != null) {
149 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream)
    [all...]
  /development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
PictureDetailsActivity.java 22 import android.graphics.Bitmap;
80 Bitmap bitmap = BitmapUtils.getBitmap(getResources(), local
89 mBitmapDrawable = new BitmapDrawable(getResources(), bitmap);
  /development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
CustomArrayAdapter.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
104 Bitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(), local
108 imgView.setImageBitmap(CustomArrayAdapter.getCroppedBitmap(bitmap));
114 * Returns a circular cropped version of the bitmap passed in.
116 public static Bitmap getCroppedBitmap(Bitmap bitmap) {
117 Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight()
    [all...]
InsertionListView.java 28 import android.graphics.Bitmap;
103 * Stores the starting bounds and the corresponding bitmap drawables of every
160 Bitmap bitmap = CustomArrayAdapter.getCroppedBitmap(BitmapFactory
163 copyImgView.setImageBitmap(bitmap);
318 /** Returns a bitmap drawable showing a screenshot of the view passed in. */
320 Bitmap bitmap = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Bitmap.Config.ARGB_8888) local
    [all...]
  /external/e2fsprogs/e2fsck/
pass5.c 203 int actual, bitmap; local
218 "actual bitmap buffer");
220 "bitmap block buffer");
276 * Try to optimize pass5 by extracting a bitmap block
336 bitmap = 0;
347 bitmap = 1;
355 * When the compare data blocks in block bitmap
375 bitmap = 1;
380 bitmap = actual;
382 bitmap = ext2fs_fast_test_block_bitmap2(fs->block_map, i)
542 int actual, bitmap; local
    [all...]
  /external/e2fsprogs/lib/ext2fs/
gen_bitmap.c 2 * gen_bitmap.c --- Generic (32-bit) bitmap routines
36 char * bitmap; member in struct:ext2fs_struct_generic_bitmap
55 void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap,
59 if (bitmap->description)
60 com_err(0, bitmap->base_error_code+code,
61 "#%lu for %s", arg, bitmap->description);
63 com_err(0, bitmap->base_error_code + code, "#%lu", arg);
67 static errcode_t check_magic(ext2fs_generic_bitmap bitmap)
69 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) |
81 ext2fs_generic_bitmap bitmap; local
    [all...]
gen_bitmap64.c 50 * new-style interfaces will support either type of bitmap, although
52 * new-style interface and the new-style bitmap are used.
54 * For example, the new bitmap interfaces will check the structure
55 * magic numbers and so will be able to detect old-stype bitmap. If
56 * they see an old-style bitmap, they will pass it to the gen_bitmap.c
66 * loop detections in pass 3, the bitmap will *always* be sparse, so
70 static void warn_bitmap(ext2fs_generic_bitmap bitmap,
74 if (bitmap->description)
75 com_err(0, bitmap->base_error_code+code,
76 "#%llu for %s", arg, bitmap->description)
95 ext2fs_generic_bitmap bitmap; local
    [all...]
  /external/e2fsprogs/lib/quota/
quotaio_tree.c 542 static int report_block(struct dquot *dquot, uint blk, char *bitmap,
556 set_bit(bitmap, blk);
587 static int report_tree(struct dquot *dquot, uint blk, int depth, char *bitmap,
603 if (blk && !get_bit(bitmap, blk))
604 entries += report_block(dquot, blk, bitmap,
613 bitmap, process_dquot,
636 char *bitmap; local
645 if (ext2fs_get_memzero((info->dqi_blocks + 7) >> 3, &bitmap)) {
649 v2info->dqi_used_entries = report_tree(dquot, QT_TREEOFF, 0, bitmap,
651 v2info->dqi_data_blocks = find_set_bits(bitmap, info->dqi_blocks)
    [all...]
  /external/freetype/src/base/
ftbitmap.c 124 /* take care of bitmap flow */
146 /* Enlarge `bitmap' horizontally and vertically by `xpixels' */
151 FT_Bitmap* bitmap,
163 width = bitmap->width;
164 height = bitmap->rows;
165 pitch = bitmap->pitch;
169 switch ( bitmap->pixel_mode )
203 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 );
204 FT_Byte* end = bitmap->buffer + pitch;
229 if ( FT_QALLOC_MULT( buffer, new_pitch, bitmap->rows + ypixels )
768 FT_Bitmap bitmap; local
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/
BitmapPreFillRunner.java 3 import android.graphics.Bitmap;
12 import com.bumptech.glide.load.resource.bitmap.BitmapResource;
22 * A class that allocates {@link android.graphics.Bitmap Bitmaps} to make sure that the
26 * where a high percentage of {@link Bitmap} allocations trigger a stop the world GC. We try to detect whether or not a
85 * Attempts to allocate {@link android.graphics.Bitmap}s and returns {@code true} if there are more
86 * {@link android.graphics.Bitmap}s to allocate and {@code false} otherwise.
92 Bitmap bitmap = Bitmap.createBitmap(toAllocate.getWidth(), toAllocate.getHeight(), local
97 if (getFreeMemoryCacheBytes() >= Util.getBitmapByteSize(bitmap)) {
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
Downsampler.java 1 package com.bumptech.glide.load.resource.bitmap;
4 import android.graphics.Bitmap;
44 return "AT_LEAST.com.bumptech.glide.load.data.bitmap";
61 return "AT_MOST.com.bumptech.glide.load.data.bitmap";
76 return "NONE.com.bumptech.glide.load.data.bitmap";
86 * Load the image for the given InputStream. If a recycled Bitmap whose dimensions exactly match those of the image
90 * Note - this method will throw an exception of a Bitmap with dimensions not matching
98 * @return A new bitmap containing the image from the given InputStream, or recycle if recycle is not null.
103 public Bitmap decode(InputStream is, BitmapPool pool, int outWidth, int outHeight, DecodeFormat decodeFormat) {
140 final Bitmap downsampled
    [all...]
TransformationUtils.java 1 package com.bumptech.glide.load.resource.bitmap;
4 import android.graphics.Bitmap;
27 * A potentially expensive operation to crop the given Bitmap so that it fills the given dimensions. This operation
28 * is significantly less expensive in terms of memory if a mutable Bitmap with the given dimensions is passed in
31 * @param recycled A mutable Bitmap with dimensions width and height that we can load the cropped portion of toCrop
33 * @param toCrop The Bitmap to resize.
34 * @param width The width in pixels of the final Bitmap.
35 * @param height The height in pixels of the final Bitmap.
36 * @return The resized Bitmap (will be recycled if recycled is not null).
38 public static Bitmap centerCrop(Bitmap recycled, Bitmap toCrop, int width, int height)
    [all...]
  /external/iputils/
ping_common.h 100 bitmap_t bitmap[MAX_DUP_CHK / (sizeof(bitmap_t) * 8)]; member in struct:rcvd_table
106 #define A(bit) (rcvd_tbl.bitmap[(bit) >> BITMAP_SHIFT]) /* identify word in array */
  /external/mesa3d/src/mesa/state_tracker/
st_program.h 50 GLuint bitmap:1; /**< glBitmap variant? */ member in struct:st_fp_variant_key
  /external/pdfium/core/src/fxge/ge/
fx_ge_device.cpp 236 CFX_DIBitmap bitmap, Backdrop; local
237 if (!CreateCompatibleBitmap(&bitmap, FXSYS_round(rect.Width() * fScaleX), FXSYS_round(rect.Height() * fScaleY))) {
240 if (bitmap.HasAlpha()) {
241 bitmap.Clear(0);
242 Backdrop.Copy(&bitmap);
244 if (!m_pDeviceDriver->GetDIBits(&bitmap, rect.left, rect.top, NULL)) {
247 Backdrop.Copy(&bitmap);
250 bitmap_device.Attach(&bitmap, 0, FALSE, &Backdrop, TRUE);
261 return m_pDeviceDriver->SetDIBits(&bitmap, 0, &src_rect, rect.left, rect.top, FXDIB_BLEND_NORMAL);
281 CFX_DIBitmap bitmap; local
    [all...]
  /external/pdfium/testing/
embedder_test.cpp 265 FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, 0); local
266 FPDFBitmap_FillRect(bitmap, 0, 0, width, height, 0xFFFFFFFF);
267 FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, 0);
268 FPDF_FFLDraw(form_handle_, bitmap, page, 0, 0, width, height, 0, 0);
269 return bitmap;
  /external/pdfium/third_party/freetype/src/base/
ftbitmap.c 114 /* take care of bitmap flow */
136 /* Enlarge `bitmap' horizontally and vertically by `xpixels' */
141 FT_Bitmap* bitmap,
153 width = bitmap->width;
154 height = bitmap->rows;
155 pitch = bitmap->pitch;
159 switch ( bitmap->pixel_mode )
193 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 );
194 FT_Byte* end = bitmap->buffer + pitch;
219 if ( FT_QALLOC_MULT( buffer, new_pitch, bitmap->rows + ypixels )
755 FT_Bitmap bitmap; local
    [all...]

Completed in 596 milliseconds

<<11121314151617181920>>