• Home
  • Raw
  • Download

Lines Matching refs:rgb_stride

444                           int step, int rgb_stride,  in PreprocessARGB()  argument
491 ImportOneRow(r_ptr + rgb_stride, g_ptr + rgb_stride, b_ptr + rgb_stride, in PreprocessARGB()
507 r_ptr += 2 * rgb_stride; in PreprocessARGB()
508 g_ptr += 2 * rgb_stride; in PreprocessARGB()
509 b_ptr += 2 * rgb_stride; in PreprocessARGB()
573 GammaToLinear((ptr)[rgb_stride]) + \
574 GammaToLinear((ptr)[rgb_stride + (step)]), 0) \
577 LinearToGamma(GammaToLinear((ptr)[0]) + GammaToLinear((ptr)[rgb_stride]), 1)
579 #define SUM2ALPHA(ptr) ((ptr)[0] + (ptr)[rgb_stride])
737 int rgb_stride) { in LinearToGammaWeighted() argument
741 a_ptr[rgb_stride] * GammaToLinear(src[rgb_stride]) + in LinearToGammaWeighted()
742 a_ptr[rgb_stride + step] * GammaToLinear(src[rgb_stride + step]); in LinearToGammaWeighted()
767 int rgb_stride, in AccumulateRGBA() argument
779 r = LinearToGammaWeighted(r_ptr + j, a_ptr + j, a, 4, rgb_stride); in AccumulateRGBA()
780 g = LinearToGammaWeighted(g_ptr + j, a_ptr + j, a, 4, rgb_stride); in AccumulateRGBA()
781 b = LinearToGammaWeighted(b_ptr + j, a_ptr + j, a, 4, rgb_stride); in AccumulateRGBA()
796 r = LinearToGammaWeighted(r_ptr + j, a_ptr + j, a, 0, rgb_stride); in AccumulateRGBA()
797 g = LinearToGammaWeighted(g_ptr + j, a_ptr + j, a, 0, rgb_stride); in AccumulateRGBA()
798 b = LinearToGammaWeighted(b_ptr + j, a_ptr + j, a, 0, rgb_stride); in AccumulateRGBA()
810 int step, int rgb_stride, in AccumulateRGB() argument
843 int rgb_stride, // bytes per scanline in ImportYUVAFromRGBA() argument
850 const int has_alpha = CheckNonOpaque(a_ptr, width, height, step, rgb_stride); in ImportYUVAFromRGBA()
874 if (!PreprocessARGB(r_ptr, g_ptr, b_ptr, step, rgb_stride, picture)) { in ImportYUVAFromRGBA()
878 WebPExtractAlpha(a_ptr, rgb_stride, width, height, in ImportYUVAFromRGBA()
910 WebPConvertRGB24ToY(r_ptr + rgb_stride, in ImportYUVAFromRGBA()
914 WebPConvertBGR24ToY(b_ptr + rgb_stride, in ImportYUVAFromRGBA()
919 ConvertRowToY(r_ptr + rgb_stride, in ImportYUVAFromRGBA()
920 g_ptr + rgb_stride, in ImportYUVAFromRGBA()
921 b_ptr + rgb_stride, step, in ImportYUVAFromRGBA()
926 rows_have_alpha &= !WebPExtractAlpha(a_ptr, rgb_stride, width, 2, 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()
945 b_ptr += 2 * rgb_stride; in ImportYUVAFromRGBA()
946 g_ptr += 2 * rgb_stride; in ImportYUVAFromRGBA()
947 if (has_alpha) a_ptr += 2 * rgb_stride; in ImportYUVAFromRGBA()
1095 const uint8_t* rgb, int rgb_stride, in Import() argument
1107 return ImportYUVAFromRGBA(r_ptr, g_ptr, b_ptr, a_ptr, step, rgb_stride, in Import()
1123 rgb += rgb_stride; in Import()
1132 r_ptr += rgb_stride; in Import()
1133 g_ptr += rgb_stride; in Import()
1134 b_ptr += rgb_stride; in Import()
1139 rgb += rgb_stride; in Import()
1148 r_ptr += rgb_stride; in Import()
1149 g_ptr += rgb_stride; in Import()
1150 b_ptr += rgb_stride; in Import()
1162 const uint8_t* rgb, int rgb_stride) { in WebPPictureImportBGR() argument
1164 ? Import(picture, rgb, rgb_stride, 3, 1, 0) in WebPPictureImportBGR()
1186 const uint8_t* rgb, int rgb_stride) { in WebPPictureImportRGB() argument
1188 ? Import(picture, rgb, rgb_stride, 3, 0, 0) in WebPPictureImportRGB()