Searched refs:bytes_per_pixel (Results 1 - 25 of 38) sorted by relevance

12

/external/chromium_org/cc/scheduler/
H A Dtexture_uploader.cc192 unsigned bytes_per_pixel = BitsPerPixel(format) / 8; local
196 RoundUp(bytes_per_pixel * source_rect.width(), 4u);
198 if (upload_image_stride == image_rect.width() * bytes_per_pixel &&
200 pixel_source = &image[image_rect.width() * bytes_per_pixel * offset.y()];
211 &image[bytes_per_pixel *
213 source_rect.width() * bytes_per_pixel);
247 unsigned bytes_per_pixel = BitsPerPixel(format) / 8; local
251 RoundUp(bytes_per_pixel * source_rect.width(), 4u);
270 if (upload_image_stride == image_rect.width() * bytes_per_pixel &&
273 &image[image_rect.width() * bytes_per_pixel * offse
[all...]
H A Dtexture_uploader_unittest.cc76 unsigned int bytes_per_pixel = 0; variable
80 bytes_per_pixel = 1;
87 bytes_per_pixel = 3;
90 bytes_per_pixel = 2;
98 bytes_per_pixel = 4;
101 bytes_per_pixel = 2;
104 bytes_per_pixel = 2;
110 bytes_per_pixel = 1;
114 bytes_per_pixel = 2;
126 RoundUp(bytes_per_pixel * widt
[all...]
/external/chromium_org/gpu/tools/compositor_model_bench/
H A Drender_model_utils.cc136 int bytes_per_pixel = FormatBytesPerPixel(format); local
137 DCHECK_LE(bytes_per_pixel, 4);
139 image_data_[imgID].reset(new uint8[width*height*bytes_per_pixel]);
148 int pix_addr = (y * width + x) * bytes_per_pixel;
149 for (int c = 0; c < bytes_per_pixel; ++c) {
154 if (bytes_per_pixel == 4) { // Randomize alpha.
/external/pixman/test/
H A Dpixel-test.c104 int bytes_per_pixel = PIXMAN_FORMAT_BPP (pixman_image_get_format (image)) / 8; local
108 switch (bytes_per_pixel)
136 int bytes_per_pixel; local
144 bytes_per_pixel = PIXMAN_FORMAT_BPP (image->bits.format) / 8;
147 location = (uint8_t *)image->bits.bits + y * stride + x * bytes_per_pixel;
149 if (bytes_per_pixel == 4)
151 else if (bytes_per_pixel == 2)
153 else if (bytes_per_pixel == 1)
/external/qemu/android/
H A Dframebuffer.c82 int pitch, bytes_per_pixel, bits_per_pixel; local
97 bytes_per_pixel = _get_bytes_per_pixel(format);
98 if (bytes_per_pixel < 0)
118 qfbuff->bytes_per_pixel = bytes_per_pixel;
H A Dframebuffer.h52 int bytes_per_pixel; /* bytes per pixel */ member in struct:QFrameBuffer
H A Dmultitouch-screen.c341 mts_state->fb_header.bpp = surface->pf.bytes_per_pixel;
453 mts_state->fb_header.bpp = ds->surface->pf.bytes_per_pixel;
/external/qemu/hw/
H A Dgoldfish_fb.c52 int bytes_per_pixel; member in struct:goldfish_fb_state
169 printf(" bytes/pixel: %d\n", pf->bytes_per_pixel);
181 s->bytes_per_pixel = pf->bytes_per_pixel;
186 pf->bytes_per_pixel == fbc->bytes &&
199 pf->bytes_per_pixel,
210 return s->bytes_per_pixel;
242 int bytes_per_pixel; member in struct:__anon25767
314 switch (fbs->bytes_per_pixel) {
494 fbs.bytes_per_pixel
[all...]
/external/qemu/android/protocol/
H A Dfb-updates-proxy.c85 return (const uint8_t*)dsu->data + y * dsu->linesize + x * dsu->pf.bytes_per_pixel;
100 memcpy(rect, start, w * dsu->pf.bytes_per_pixel);
102 rect += w * dsu->pf.bytes_per_pixel;
119 const size_t rect_size = w * h * proxy_fb->ds->surface->pf.bytes_per_pixel;
/external/chromium_org/third_party/libpng/
H A Dpngwtran.c534 int bytes_per_pixel;
542 bytes_per_pixel = 3;
544 bytes_per_pixel = 4;
548 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
560 bytes_per_pixel = 6;
562 bytes_per_pixel = 8;
566 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
/external/libpng/
H A Dpngwtran.c534 int bytes_per_pixel;
542 bytes_per_pixel = 3;
544 bytes_per_pixel = 4;
548 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
560 bytes_per_pixel = 6;
562 bytes_per_pixel = 8;
566 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
/external/qemu/distrib/libpng-1.2.19/
H A Dpngwtran.c524 int bytes_per_pixel;
532 bytes_per_pixel = 3;
534 bytes_per_pixel = 4;
538 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
550 bytes_per_pixel = 6;
552 bytes_per_pixel = 8;
556 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
/external/qemu/
H A Dvnchextile.h27 uint8_t data[(vs->clientds.pf.bytes_per_pixel + 2) * 16 * 16];
135 n_data += vs->clientds.pf.bytes_per_pixel;
155 n_data += vs->clientds.pf.bytes_per_pixel;
H A Dconsole.h129 uint8_t bytes_per_pixel; member in struct:PixelFormat
417 return ds->surface->pf.bytes_per_pixel;
H A Dvnc-android.c357 if (ds_get_bytes_per_pixel(ds) != vs->guest.ds->pf.bytes_per_pixel)
416 switch(vs->clientds.pf.bytes_per_pixel) {
450 if (vs->server.ds->pf.bytes_per_pixel == 4) {
456 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel);
458 } else if (vs->server.ds->pf.bytes_per_pixel == 2) {
464 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel);
466 } else if (vs->server.ds->pf.bytes_per_pixel == 1) {
472 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel);
533 last_fg = (uint8_t *) qemu_malloc(vs->server.ds->pf.bytes_per_pixel);
534 last_bg = (uint8_t *) qemu_malloc(vs->server.ds->pf.bytes_per_pixel);
[all...]
H A Dvnc.c351 if (ds_get_bytes_per_pixel(ds) != vs->guest.ds->pf.bytes_per_pixel)
410 switch(vs->clientds.pf.bytes_per_pixel) {
444 if (vs->server.ds->pf.bytes_per_pixel == 4) {
450 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel);
452 } else if (vs->server.ds->pf.bytes_per_pixel == 2) {
458 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel);
460 } else if (vs->server.ds->pf.bytes_per_pixel == 1) {
466 vnc_write(vs, buf, vs->clientds.pf.bytes_per_pixel);
527 last_fg = (uint8_t *) qemu_malloc(vs->server.ds->pf.bytes_per_pixel);
528 last_bg = (uint8_t *) qemu_malloc(vs->server.ds->pf.bytes_per_pixel);
[all...]
/external/chromium_org/third_party/libwebp/dec/
H A Dvp8l.c1064 size_t bytes_per_pixel) {
1065 const int argb_cache_needed = (bytes_per_pixel == sizeof(uint32_t));
1078 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, bytes_per_pixel);
1127 size_t bytes_per_pixel = sizeof(uint32_t); // Default: BGRA mode. local
1152 bytes_per_pixel = sizeof(uint8_t);
1156 if (!AllocateInternalBuffers(dec, width, bytes_per_pixel)) goto Err;
1160 ok = (bytes_per_pixel == sizeof(uint8_t)) ?
1204 const size_t bytes_per_pixel = sizeof(uint32_t); local
1224 if (!AllocateInternalBuffers(dec, io->width, bytes_per_pixel)) goto Err;
1063 AllocateInternalBuffers(VP8LDecoder* const dec, int final_width, size_t bytes_per_pixel) argument
/external/webp/src/dec/
H A Dvp8l.c1063 size_t bytes_per_pixel) {
1064 const int argb_cache_needed = (bytes_per_pixel == sizeof(uint32_t));
1077 dec->pixels_ = (uint32_t*)WebPSafeMalloc(total_num_pixels, bytes_per_pixel);
1126 size_t bytes_per_pixel = sizeof(uint32_t); // Default: BGRA mode. local
1151 bytes_per_pixel = sizeof(uint8_t);
1155 if (!AllocateInternalBuffers(dec, width, bytes_per_pixel)) goto Err;
1159 ok = (bytes_per_pixel == sizeof(uint8_t)) ?
1203 const size_t bytes_per_pixel = sizeof(uint32_t); local
1223 if (!AllocateInternalBuffers(dec, io->width, bytes_per_pixel)) goto Err;
1062 AllocateInternalBuffers(VP8LDecoder* const dec, int final_width, size_t bytes_per_pixel) argument
/external/chromium_org/third_party/mesa/src/src/egl/drivers/dri2/
H A Degl_dri2.h164 int bytes_per_pixel; member in struct:dri2_egl_surface
/external/mesa3d/src/egl/drivers/dri2/
H A Degl_dri2.h164 int bytes_per_pixel; member in struct:dri2_egl_surface
/external/chromium_org/media/base/
H A Dvideo_frame_unittest.cc91 int bytes_per_pixel, const char* expected_hash) {
111 EXPECT_EQ(frame->row_bytes(plane), kWidth * bytes_per_pixel);
90 ExpectFrameExtents(VideoFrame::Format format, int planes, int bytes_per_pixel, const char* expected_hash) argument
/external/chromium_org/third_party/mesa/src/src/mesa/main/
H A Dimage.c156 GLint bytes_per_pixel, bytes_per_row, remainder, bytes_per_image; local
159 bytes_per_pixel = _mesa_bytes_per_pixel( format, type );
162 assert(bytes_per_pixel > 0);
164 bytes_per_row = pixels_per_row * bytes_per_pixel;
186 + (skippixels + column) * bytes_per_pixel;
/external/mesa3d/src/mesa/main/
H A Dimage.c156 GLint bytes_per_pixel, bytes_per_row, remainder, bytes_per_image; local
159 bytes_per_pixel = _mesa_bytes_per_pixel( format, type );
162 assert(bytes_per_pixel > 0);
164 bytes_per_row = pixels_per_row * bytes_per_pixel;
186 + (skippixels + column) * bytes_per_pixel;
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/common/
H A Dutils.c239 static const uint8_t bytes_per_pixel[6] = { local
312 switch ( bytes_per_pixel[ index ] ) {
/external/mesa3d/src/mesa/drivers/dri/common/
H A Dutils.c239 static const uint8_t bytes_per_pixel[6] = { local
312 switch ( bytes_per_pixel[ index ] ) {

Completed in 1289 milliseconds

12