Lines Matching refs:r_ptr
327 static void ImportOneRow(const uint8_t* const r_ptr, in ImportOneRow() argument
337 dst[i + 0 * w] = UpLift(r_ptr[off]); in ImportOneRow()
441 static int PreprocessARGB(const uint8_t* r_ptr, in PreprocessARGB() argument
489 ImportOneRow(r_ptr, g_ptr, b_ptr, step, picture->width, src1); in PreprocessARGB()
491 ImportOneRow(r_ptr + rgb_stride, g_ptr + rgb_stride, b_ptr + rgb_stride, in PreprocessARGB()
507 r_ptr += 2 * rgb_stride; in PreprocessARGB()
750 static WEBP_INLINE void ConvertRowToY(const uint8_t* const r_ptr, in ConvertRowToY() argument
759 dst_y[i] = RGBToY(r_ptr[j], g_ptr[j], b_ptr[j], rg); in ConvertRowToY()
763 static WEBP_INLINE void AccumulateRGBA(const uint8_t* const r_ptr, in AccumulateRGBA() argument
775 r = SUM4(r_ptr + j, 4); in AccumulateRGBA()
779 r = LinearToGammaWeighted(r_ptr + j, a_ptr + j, a, 4, rgb_stride); in AccumulateRGBA()
792 r = SUM2(r_ptr + j); in AccumulateRGBA()
796 r = LinearToGammaWeighted(r_ptr + j, a_ptr + j, a, 0, rgb_stride); in AccumulateRGBA()
807 static WEBP_INLINE void AccumulateRGB(const uint8_t* const r_ptr, in AccumulateRGB() argument
814 dst[0] = SUM4(r_ptr + j, step); in AccumulateRGB()
819 dst[0] = SUM2(r_ptr + j); in AccumulateRGB()
838 static int ImportYUVAFromRGBA(const uint8_t* r_ptr, in ImportYUVAFromRGBA() argument
851 const int is_rgb = (r_ptr < b_ptr); // otherwise it's bgr in ImportYUVAFromRGBA()
874 if (!PreprocessARGB(r_ptr, g_ptr, b_ptr, step, rgb_stride, picture)) { in ImportYUVAFromRGBA()
909 WebPConvertRGB24ToY(r_ptr, dst_y, width); in ImportYUVAFromRGBA()
910 WebPConvertRGB24ToY(r_ptr + rgb_stride, in ImportYUVAFromRGBA()
918 ConvertRowToY(r_ptr, g_ptr, b_ptr, step, dst_y, width, rg); in ImportYUVAFromRGBA()
919 ConvertRowToY(r_ptr + rgb_stride, in ImportYUVAFromRGBA()
932 AccumulateRGB(r_ptr, g_ptr, b_ptr, step, rgb_stride, tmp_rgb, width); in ImportYUVAFromRGBA()
934 AccumulateRGBA(r_ptr, g_ptr, b_ptr, a_ptr, rgb_stride, tmp_rgb, width); in ImportYUVAFromRGBA()
944 r_ptr += 2 * rgb_stride; in ImportYUVAFromRGBA()
952 if (r_ptr < b_ptr) { in ImportYUVAFromRGBA()
953 WebPConvertRGB24ToY(r_ptr, dst_y, width); in ImportYUVAFromRGBA()
958 ConvertRowToY(r_ptr, g_ptr, b_ptr, step, dst_y, width, rg); in ImportYUVAFromRGBA()
966 AccumulateRGB(r_ptr, g_ptr, b_ptr, step, /* rgb_stride = */ 0, in ImportYUVAFromRGBA()
969 AccumulateRGBA(r_ptr, g_ptr, b_ptr, a_ptr, /* rgb_stride = */ 0, in ImportYUVAFromRGBA()
1099 const uint8_t* r_ptr = rgb + (swap_rb ? 2 : 0); in Import() local
1107 return ImportYUVAFromRGBA(r_ptr, g_ptr, b_ptr, a_ptr, step, rgb_stride, in Import()
1131 WebPPackARGB(a_ptr, r_ptr, g_ptr, b_ptr, width, dst); in Import()
1132 r_ptr += rgb_stride; in Import()
1147 WebPPackRGB(r_ptr, g_ptr, b_ptr, width, step, dst); in Import()
1148 r_ptr += rgb_stride; in Import()