Home | History | Annotate | Download | only in base

Lines Matching defs:bytes

261     int r_pos, g_pos, b_pos, bytes;
262 if (!GetRgbPacking(fourcc, &r_pos, &g_pos, &b_pos, &bytes)) {
268 if (!ms->ReserveSize(width * height * bytes)) {
278 ms->Write(rgb, bytes, NULL, NULL);
331 int r_pos, g_pos, b_pos, bytes;
332 if (!GetRgbPacking(fourcc, &r_pos, &g_pos, &b_pos, &bytes)) {
335 int pitch = width * bytes;
350 rgb[0] = start + y * pitch + x * bytes;
351 rgb[1] = rgb[0] + ((x + 1) < width ? bytes : 0);
353 rgb[3] = rgb[2] + ((x + 1) < width ? bytes : 0);
408 int* bytes) {
410 *r_pos = 0; *g_pos = 1; *b_pos = 2; *bytes = 3; // RGB in memory.
412 *r_pos = 2; *g_pos = 1; *b_pos = 0; *bytes = 3; // BGR in memory.
414 *r_pos = 0; *g_pos = 1; *b_pos = 2; *bytes = 4; // RGBA in memory.
416 *r_pos = 1; *g_pos = 2; *b_pos = 3; *bytes = 4; // ARGB in memory.
418 *r_pos = 2; *g_pos = 1; *b_pos = 0; *bytes = 4; // BGRA in memory.