• Home
  • Raw
  • Download

Lines Matching refs:r_ptr

313 static void ImportOneRow(const uint8_t* const r_ptr,  in ImportOneRow()  argument
322 dst[3 * i + 0] = UpLift(r_ptr[off]); in ImportOneRow()
423 static int PreprocessARGB(const uint8_t* const r_ptr, in PreprocessARGB() argument
471 ImportOneRow(r_ptr + off1, g_ptr + off1, b_ptr + off1, in PreprocessARGB()
474 ImportOneRow(r_ptr + off2, g_ptr + off2, b_ptr + off2, in PreprocessARGB()
745 static WEBP_INLINE void ConvertRowToY(const uint8_t* const r_ptr, in ConvertRowToY() argument
754 dst_y[i] = RGBToY(r_ptr[j], g_ptr[j], b_ptr[j], rg); in ConvertRowToY()
758 static WEBP_INLINE void AccumulateRGBA(const uint8_t* const r_ptr, in AccumulateRGBA() argument
770 r = SUM4(r_ptr + j, 4); in AccumulateRGBA()
774 r = LinearToGammaWeighted(r_ptr + j, a_ptr + j, a, 4, rgb_stride); in AccumulateRGBA()
787 r = SUM2(r_ptr + j); in AccumulateRGBA()
791 r = LinearToGammaWeighted(r_ptr + j, a_ptr + j, a, 0, rgb_stride); in AccumulateRGBA()
802 static WEBP_INLINE void AccumulateRGB(const uint8_t* const r_ptr, in AccumulateRGB() argument
809 dst[0] = SUM4(r_ptr + j, step); in AccumulateRGB()
814 dst[0] = SUM2(r_ptr + j); in AccumulateRGB()
833 static int ImportYUVAFromRGBA(const uint8_t* const r_ptr, in ImportYUVAFromRGBA() argument
846 const int is_rgb = (r_ptr < b_ptr); // otherwise it's bgr in ImportYUVAFromRGBA()
870 if (!PreprocessARGB(r_ptr, g_ptr, b_ptr, step, rgb_stride, picture)) { in ImportYUVAFromRGBA()
907 WebPConvertRGB24ToY(r_ptr + off1, dst_y, width); in ImportYUVAFromRGBA()
908 WebPConvertRGB24ToY(r_ptr + off2, dst_y + picture->y_stride, width); in ImportYUVAFromRGBA()
914 ConvertRowToY(r_ptr + off1, g_ptr + off1, b_ptr + off1, step, in ImportYUVAFromRGBA()
916 ConvertRowToY(r_ptr + off2, g_ptr + off2, b_ptr + off2, step, in ImportYUVAFromRGBA()
928 AccumulateRGB(r_ptr + off1, g_ptr + off1, b_ptr + off1, in ImportYUVAFromRGBA()
931 AccumulateRGBA(r_ptr + off1, g_ptr + off1, b_ptr + off1, a_ptr + off1, in ImportYUVAFromRGBA()
947 if (r_ptr < b_ptr) { in ImportYUVAFromRGBA()
948 WebPConvertRGB24ToY(r_ptr + off, dst_y, width); in ImportYUVAFromRGBA()
953 ConvertRowToY(r_ptr + off, g_ptr + off, b_ptr + off, step, in ImportYUVAFromRGBA()
962 AccumulateRGB(r_ptr + off, g_ptr + off, b_ptr + off, in ImportYUVAFromRGBA()
965 AccumulateRGBA(r_ptr + off, g_ptr + off, b_ptr + off, a_ptr + off, in ImportYUVAFromRGBA()
1089 const uint8_t* const r_ptr = rgb + (swap_rb ? 2 : 0); in Import() local
1097 return ImportYUVAFromRGBA(r_ptr, g_ptr, b_ptr, a_ptr, step, rgb_stride, in Import()
1109 VP8PackARGB(a_ptr + offset, r_ptr + offset, g_ptr + offset, in Import()
1117 VP8PackRGB(r_ptr + offset, g_ptr + offset, b_ptr + offset, in Import()