Searched defs:bytes_per_pixel (Results 1 - 25 of 26) sorted by relevance

12

/external/chromium_org/third_party/webrtc/modules/desktop_capture/
H A Ddiffer.h32 // and bytes_per_pixel.
33 Differ(int width, int height, int bytes_per_pixel, int stride);
38 int bytes_per_pixel() { return bytes_per_pixel_; } function in class:webrtc::Differ
/external/chromium_org/cc/resources/
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...]
H A Dtexture_uploader.cc198 unsigned bytes_per_pixel = BitsPerPixel(format) / 8; local
202 RoundUp(bytes_per_pixel * source_rect.width(), 4u);
204 if (upload_image_stride == image_rect.width() * bytes_per_pixel &&
206 pixel_source = &image[image_rect.width() * bytes_per_pixel * offset.y()];
217 &image[bytes_per_pixel *
219 source_rect.width() * bytes_per_pixel);
253 unsigned bytes_per_pixel = BitsPerPixel(format) / 8; local
257 RoundUp(bytes_per_pixel * source_rect.width(), 4u);
276 if (upload_image_stride == image_rect.width() * bytes_per_pixel &&
279 &image[image_rect.width() * bytes_per_pixel * offse
[all...]
H A Dresource_provider.cc1552 unsigned bytes_per_pixel = BitsPerPixel(resource->format) / 8; local
1555 RoundUp(bytes_per_pixel * resource->size.width(), 4u),
/external/qemu/android/
H A Dframebuffer.h52 int bytes_per_pixel; /* bytes per pixel */ member in struct:QFrameBuffer
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;
/external/chromium_org/content/common/gpu/client/
H A Dgl_helper_readback_support.cc132 size_t* bytes_per_pixel) {
133 DCHECK(format && type && bytes_per_pixel);
134 *bytes_per_pixel = 4;
143 *bytes_per_pixel = 2;
128 GetReadbackConfig(SkColorType color_type, bool can_swizzle, GLenum* format, GLenum* type, size_t* bytes_per_pixel) argument
H A Dgl_helper.cc168 size_t bytes_per_pixel,
202 size_t* bytes_per_pixel);
348 void ReadbackDone(Request *request, int bytes_per_pixel);
471 size_t bytes_per_pixel,
482 bytes_per_pixel * dst_size.GetArea(),
501 request, bytes_per_pixel));
514 size_t bytes_per_pixel; local
525 readback_color_type, true, &format, &type, &bytes_per_pixel);
595 : dst_size.width() * bytes_per_pixel;
603 bytes_per_pixel,
464 ReadbackAsync( const gfx::Size& dst_size, int32 bytes_per_row, int32 row_stride_bytes, unsigned char* out, GLenum format, GLenum type, size_t bytes_per_pixel, const base::Callback<void(bool)>& callback) argument
614 size_t bytes_per_pixel; local
643 size_t bytes_per_pixel; local
686 ReadbackDone(Request* finished_request, int bytes_per_pixel) argument
751 GetReadbackConfig( SkColorType color_type, bool can_swizzle, GLenum* format, GLenum* type, size_t* bytes_per_pixel) argument
1292 size_t bytes_per_pixel; local
1311 size_t bytes_per_pixel; local
[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/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 ] ) {
/external/chromium_org/gpu/command_buffer/service/
H A Dgles2_cmd_decoder_unittest_framebuffers.cc300 GLint bytes_per_pixel,
307 bytes_per_pixel_(bytes_per_pixel),
298 ReadPixelsEmulator(GLsizei width, GLsizei height, GLint bytes_per_pixel, const void* src_pixels, const void* expected_pixels, GLint pack_alignment) 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/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;
H A Dmipmap.c53 bytes_per_pixel(GLenum datatype, GLuint comps) function
1426 const GLint bpt = bytes_per_pixel(datatype, comps);
1458 const GLint bpt = bytes_per_pixel(datatype, comps);
1550 const GLint bpt = bytes_per_pixel(datatype, comps);
/external/mesa3d/src/egl/drivers/dri2/
H A Degl_dri2.h164 int bytes_per_pixel; member in struct:dri2_egl_surface
/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;
H A Dmipmap.c46 bytes_per_pixel(GLenum datatype, GLuint comps) function
1419 const GLint bpt = bytes_per_pixel(datatype, comps);
1451 const GLint bpt = bytes_per_pixel(datatype, comps);
1543 const GLint bpt = bytes_per_pixel(datatype, comps);
/external/qemu/hw/android/goldfish/
H A Dfb.c54 int bytes_per_pixel; member in struct:goldfish_fb_state
171 printf(" bytes/pixel: %d\n", pf->bytes_per_pixel);
183 s->bytes_per_pixel = pf->bytes_per_pixel;
188 pf->bytes_per_pixel == fbc->bytes &&
201 pf->bytes_per_pixel,
212 return s->bytes_per_pixel;
244 int bytes_per_pixel; member in struct:__anon29651
316 switch (fbs->bytes_per_pixel) {
496 fbs.bytes_per_pixel
[all...]
/external/libpng/
H A Dpngwrite.c619 int bytes_per_pixel; local
627 bytes_per_pixel = 3;
630 bytes_per_pixel = 4;
635 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
649 bytes_per_pixel = 6;
652 bytes_per_pixel = 8;
657 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
H A Dpngread.c330 int bytes_per_pixel; local
339 bytes_per_pixel = 3;
342 bytes_per_pixel = 4;
347 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
359 bytes_per_pixel = 6;
362 bytes_per_pixel = 8;
367 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
/external/qemu/include/ui/
H A Dconsole.h129 uint8_t bytes_per_pixel; member in struct:PixelFormat
417 return ds->surface->pf.bytes_per_pixel;
/external/chromium_org/third_party/libpng/
H A Dpngrtran.c4415 int bytes_per_pixel; local
4423 bytes_per_pixel = 3;
4426 bytes_per_pixel = 4;
4431 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
4443 bytes_per_pixel = 6;
4446 bytes_per_pixel = 8;
4451 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
/external/qemu/distrib/libpng-1.2.46/
H A Dpngrtran.c4415 int bytes_per_pixel; local
4423 bytes_per_pixel = 3;
4426 bytes_per_pixel = 4;
4431 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)
4443 bytes_per_pixel = 6;
4446 bytes_per_pixel = 8;
4451 for (i = 0, rp = row; i < row_width; i++, rp += bytes_per_pixel)

Completed in 978 milliseconds

12