Lines Matching refs:rgb
333 static void ARGB_8888_To_RGB(const uint8_t* in, uint8_t* rgb, int width, in ARGB_8888_To_RGB() argument
338 rgb[0] = SkGetPackedR32(c); in ARGB_8888_To_RGB()
339 rgb[1] = SkGetPackedG32(c); in ARGB_8888_To_RGB()
340 rgb[2] = SkGetPackedB32(c); in ARGB_8888_To_RGB()
341 rgb += 3; in ARGB_8888_To_RGB()
345 static void ARGB_8888_To_RGBA(const uint8_t* in, uint8_t* rgb, int width, in ARGB_8888_To_RGBA() argument
362 rgb[0] = r; in ARGB_8888_To_RGBA()
363 rgb[1] = g; in ARGB_8888_To_RGBA()
364 rgb[2] = b; in ARGB_8888_To_RGBA()
365 rgb[3] = a; in ARGB_8888_To_RGBA()
366 rgb += 4; in ARGB_8888_To_RGBA()
370 static void RGB_565_To_RGB(const uint8_t* in, uint8_t* rgb, int width, in RGB_565_To_RGB() argument
375 rgb[0] = SkPacked16ToR32(c); in RGB_565_To_RGB()
376 rgb[1] = SkPacked16ToG32(c); in RGB_565_To_RGB()
377 rgb[2] = SkPacked16ToB32(c); in RGB_565_To_RGB()
378 rgb += 3; in RGB_565_To_RGB()
382 static void ARGB_4444_To_RGB(const uint8_t* in, uint8_t* rgb, int width, in ARGB_4444_To_RGB() argument
387 rgb[0] = SkPacked4444ToR32(c); in ARGB_4444_To_RGB()
388 rgb[1] = SkPacked4444ToG32(c); in ARGB_4444_To_RGB()
389 rgb[2] = SkPacked4444ToB32(c); in ARGB_4444_To_RGB()
390 rgb += 3; in ARGB_4444_To_RGB()
394 static void ARGB_4444_To_RGBA(const uint8_t* in, uint8_t* rgb, int width, in ARGB_4444_To_RGBA() argument
411 rgb[0] = r; in ARGB_4444_To_RGBA()
412 rgb[1] = g; in ARGB_4444_To_RGBA()
413 rgb[2] = b; in ARGB_4444_To_RGBA()
414 rgb[3] = a; in ARGB_4444_To_RGBA()
415 rgb += 4; in ARGB_4444_To_RGBA()
419 static void Index8_To_RGB(const uint8_t* in, uint8_t* rgb, int width, in Index8_To_RGB() argument
424 rgb[0] = SkGetPackedR32(c); in Index8_To_RGB()
425 rgb[1] = SkGetPackedG32(c); in Index8_To_RGB()
426 rgb[2] = SkGetPackedB32(c); in Index8_To_RGB()
427 rgb += 3; in Index8_To_RGB()
509 uint8_t* rgb = new uint8_t[rgbStride * pic.height]; in onEncode() local
511 scanline_import(src + y * bm.rowBytes(), rgb + y * rgbStride, in onEncode()
517 ok = SkToBool(WebPPictureImportRGB(&pic, rgb, rgbStride)); in onEncode()
519 ok = SkToBool(WebPPictureImportRGBA(&pic, rgb, rgbStride)); in onEncode()
521 delete[] rgb; in onEncode()