Lines Matching refs:width
30 int width, int height) { in CopyPlane() argument
31 void (*CopyRow)(const uint8* src, uint8* dst, int width) = CopyRow_C; in CopyPlane()
33 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 64)) { in CopyPlane()
38 if (TestCpuFlag(kCpuHasX86) && IS_ALIGNED(width, 4)) { in CopyPlane()
43 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 32) && in CopyPlane()
52 CopyRow(src_y, dst_y, width); in CopyPlane()
64 int width, int height) { in I420ToI400() argument
65 if (!src_y || !dst_y || width <= 0 || height == 0) { in I420ToI400()
74 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height); in I420ToI400()
81 int width, int height) { in MirrorPlane() argument
82 void (*MirrorRow)(const uint8* src, uint8* dst, int width) = MirrorRow_C; in MirrorPlane()
84 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 16)) { in MirrorPlane()
89 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 16)) { in MirrorPlane()
102 MirrorRow(src_y, dst_y, width); in MirrorPlane()
114 int width, int height) { in YUY2ToI422() argument
129 if (width > 16) { in YUY2ToI422()
133 if (IS_ALIGNED(width, 16)) { in YUY2ToI422()
146 if (width > 8) { in YUY2ToI422()
148 if (width > 16) { in YUY2ToI422()
152 if (IS_ALIGNED(width, 16)) { in YUY2ToI422()
160 YUY2ToUV422Row(src_yuy2, dst_u, dst_v, width); in YUY2ToI422()
161 YUY2ToYRow(src_yuy2, dst_y, width); in YUY2ToI422()
176 int width, int height) { in UYVYToI422() argument
191 if (width > 16) { in UYVYToI422()
195 if (IS_ALIGNED(width, 16)) { in UYVYToI422()
208 if (width > 8) { in UYVYToI422()
210 if (width > 16) { in UYVYToI422()
214 if (IS_ALIGNED(width, 16)) { in UYVYToI422()
222 UYVYToUV422Row(src_uyvy, dst_u, dst_v, width); in UYVYToI422()
223 UYVYToYRow(src_uyvy, dst_y, width); in UYVYToI422()
240 int width, int height) { in I420Mirror() argument
242 width <= 0 || height == 0) { in I420Mirror()
257 int halfwidth = (width + 1) >> 1; in I420Mirror()
260 MirrorPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height); in I420Mirror()
271 int width, int height) { in ARGBMirror() argument
272 if (!src_argb || !dst_argb || width <= 0 || height == 0) { in ARGBMirror()
282 void (*ARGBMirrorRow)(const uint8* src, uint8* dst, int width) = in ARGBMirror()
285 if (TestCpuFlag(kCpuHasSSSE3) && IS_ALIGNED(width, 4) && in ARGBMirror()
294 ARGBMirrorRow(src_argb, dst_argb, width); in ARGBMirror()
307 uint8* dst_argb, int width) = ARGBBlendRow_C; in GetARGBBlend()
327 int width, int height) { in ARGBBlend() argument
328 if (!src_argb0 || !src_argb1 || !dst_argb || width <= 0 || height == 0) { in ARGBBlend()
338 uint8* dst_argb, int width) = GetARGBBlend(); in ARGBBlend()
341 ARGBBlendRow(src_argb0, src_argb1, dst_argb, width); in ARGBBlend()
353 int width, int height) { in ARGBToI400() argument
354 if (!src_argb || !dst_y || width <= 0 || height == 0) { in ARGBToI400()
366 IS_ALIGNED(width, 4) && in ARGBToI400()
374 ARGBToYRow(src_argb, dst_y, width); in ARGBToI400()
388 int width, int height) { in ARGBToI422() argument
389 if (!src_argb || !dst_y || !dst_u || !dst_v || width <= 0 || height == 0) { in ARGBToI422()
400 uint8* dst_u, uint8* dst_v, int width) = ARGBToUVRow_C; in ARGBToI422()
403 if (width > 16) { in ARGBToI422()
407 if (IS_ALIGNED(width, 16)) { in ARGBToI422()
421 ARGBToUVRow(src_argb, 0, dst_u, dst_v, width); in ARGBToI422()
422 ARGBToYRow(src_argb, dst_y, width); in ARGBToI422()
437 int width, int height) { in I422ToBGRA() argument
440 width <= 0 || height == 0) { in I422ToBGRA()
453 int width) = I422ToBGRARow_C; in I422ToBGRA()
457 if (IS_ALIGNED(width, 16)) { in I422ToBGRA()
462 if (TestCpuFlag(kCpuHasSSSE3) && width >= 8) { in I422ToBGRA()
464 if (IS_ALIGNED(width, 8)) { in I422ToBGRA()
474 I422ToBGRARow(src_y, src_u, src_v, dst_bgra, width); in I422ToBGRA()
489 int width, int height) { in I422ToABGR() argument
492 width <= 0 || height == 0) { in I422ToABGR()
505 int width) = I422ToABGRRow_C; in I422ToABGR()
509 if (IS_ALIGNED(width, 16)) { in I422ToABGR()
514 if (TestCpuFlag(kCpuHasSSSE3) && width >= 8) { in I422ToABGR()
516 if (IS_ALIGNED(width, 8)) { in I422ToABGR()
526 I422ToABGRRow(src_y, src_u, src_v, dst_abgr, width); in I422ToABGR()
541 int width, int height) { in I422ToRGBA() argument
544 width <= 0 || height == 0) { in I422ToRGBA()
557 int width) = I422ToRGBARow_C; in I422ToRGBA()
561 if (IS_ALIGNED(width, 16)) { in I422ToRGBA()
566 if (TestCpuFlag(kCpuHasSSSE3) && width >= 8) { in I422ToRGBA()
568 if (IS_ALIGNED(width, 8)) { in I422ToRGBA()
578 I422ToRGBARow(src_y, src_u, src_v, dst_rgba, width); in I422ToRGBA()
591 int width, int height) { in ARGBToRGBA() argument
593 width <= 0 || height == 0) { in ARGBToRGBA()
606 IS_ALIGNED(width, 4) && in ARGBToRGBA()
613 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 8)) { in ARGBToRGBA()
619 ARGBToRGBARow(src_argb, dst_rgba, width); in ARGBToRGBA()
630 int width, int height) { in ARGBToRGB24() argument
631 if (!src_argb || !dst_rgb24 || width <= 0 || height == 0) { in ARGBToRGB24()
644 if (width * 3 <= kMaxStride) { in ARGBToRGB24()
647 if (IS_ALIGNED(width, 16) && in ARGBToRGB24()
655 if (width * 3 <= kMaxStride) { in ARGBToRGB24()
658 if (IS_ALIGNED(width, 8)) { in ARGBToRGB24()
665 ARGBToRGB24Row(src_argb, dst_rgb24, width); in ARGBToRGB24()
676 int width, int height) { in ARGBToRAW() argument
677 if (!src_argb || !dst_raw || width <= 0 || height == 0) { in ARGBToRAW()
690 if (width * 3 <= kMaxStride) { in ARGBToRAW()
693 if (IS_ALIGNED(width, 16) && in ARGBToRAW()
701 if (width * 3 <= kMaxStride) { in ARGBToRAW()
704 if (IS_ALIGNED(width, 8)) { in ARGBToRAW()
711 ARGBToRAWRow(src_argb, dst_raw, width); in ARGBToRAW()
722 int width, int height) { in ARGBToRGB565() argument
723 if (!src_argb || !dst_rgb565 || width <= 0 || height == 0) { in ARGBToRGB565()
736 if (width * 2 <= kMaxStride) { in ARGBToRGB565()
739 if (IS_ALIGNED(width, 4)) { in ARGBToRGB565()
746 ARGBToRGB565Row(src_argb, dst_rgb565, width); in ARGBToRGB565()
757 int width, int height) { in ARGBToARGB1555() argument
758 if (!src_argb || !dst_argb1555 || width <= 0 || height == 0) { in ARGBToARGB1555()
771 if (width * 2 <= kMaxStride) { in ARGBToARGB1555()
774 if (IS_ALIGNED(width, 4)) { in ARGBToARGB1555()
781 ARGBToARGB1555Row(src_argb, dst_argb1555, width); in ARGBToARGB1555()
792 int width, int height) { in ARGBToARGB4444() argument
793 if (!src_argb || !dst_argb4444 || width <= 0 || height == 0) { in ARGBToARGB4444()
806 if (width * 2 <= kMaxStride) { in ARGBToARGB4444()
809 if (IS_ALIGNED(width, 4)) { in ARGBToARGB4444()
816 ARGBToARGB4444Row(src_argb, dst_argb4444, width); in ARGBToARGB4444()
829 int width, int height) { in NV12ToRGB565() argument
830 if (!src_y || !src_uv || !dst_rgb565 || width <= 0 || height == 0) { in NV12ToRGB565()
842 int width) = NV12ToARGBRow_C; in NV12ToRGB565()
844 if (TestCpuFlag(kCpuHasSSSE3) && width * 4 <= kMaxStride) { in NV12ToRGB565()
849 if (TestCpuFlag(kCpuHasNEON) && width * 4 <= kMaxStride) { in NV12ToRGB565()
858 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 4)) { in NV12ToRGB565()
864 NV12ToARGBRow(src_y, src_uv, row, width); in NV12ToRGB565()
865 ARGBToRGB565Row(row, dst_rgb565, width); in NV12ToRGB565()
880 int width, int height) { in NV21ToRGB565() argument
881 if (!src_y || !src_vu || !dst_rgb565 || width <= 0 || height == 0) { in NV21ToRGB565()
893 int width) = NV21ToARGBRow_C; in NV21ToRGB565()
895 if (TestCpuFlag(kCpuHasSSSE3) && width * 4 <= kMaxStride) { in NV21ToRGB565()
904 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 4)) { in NV21ToRGB565()
910 NV21ToARGBRow(src_y, src_vu, row, width); in NV21ToRGB565()
911 ARGBToRGB565Row(row, dst_rgb565, width); in NV21ToRGB565()
923 int width, int height, in SetPlane() argument
928 IS_ALIGNED(width, 16) && in SetPlane()
934 if (TestCpuFlag(kCpuHasX86) && IS_ALIGNED(width, 4)) { in SetPlane()
942 SetRow(dst_y, v32, width); in SetPlane()
953 int width, int height, in I420Rect() argument
956 width <= 0 || height <= 0 || in I420Rect()
963 int halfwidth = (width + 1) >> 1; in I420Rect()
969 SetPlane(start_y, dst_stride_y, width, height, value_y); in I420Rect()
979 int width, int height, in ARGBRect() argument
982 width <= 0 || height <= 0 || in ARGBRect()
988 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 16) && in ARGBRect()
990 SetRows32_NEON(dst, value, width, dst_stride_argb, height); in ARGBRect()
996 SetRows32_X86(dst, value, width, dst_stride_argb, height); in ARGBRect()
1000 SetRows32_C(dst, value, width, dst_stride_argb, height); in ARGBRect()
1020 int width, int height) { in ARGBAttenuate() argument
1021 if (!src_argb || !dst_argb || width <= 0 || height == 0) { in ARGBAttenuate()
1030 int width) = ARGBAttenuateRow_C; in ARGBAttenuate()
1032 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 4) && in ARGBAttenuate()
1039 if (TestCpuFlag(kCpuHasSSSE3) && IS_ALIGNED(width, 4) && in ARGBAttenuate()
1047 ARGBAttenuateRow(src_argb, dst_argb, width); in ARGBAttenuate()
1058 int width, int height) { in ARGBUnattenuate() argument
1059 if (!src_argb || !dst_argb || width <= 0 || height == 0) { in ARGBUnattenuate()
1068 int width) = ARGBUnattenuateRow_C; in ARGBUnattenuate()
1070 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 4) && in ARGBUnattenuate()
1078 ARGBUnattenuateRow(src_argb, dst_argb, width); in ARGBUnattenuate()
1089 int width, int height) { in ARGBGrayTo() argument
1090 if (!src_argb || !dst_argb || width <= 0 || height == 0) { in ARGBGrayTo()
1099 int width) = ARGBGrayRow_C; in ARGBGrayTo()
1101 if (TestCpuFlag(kCpuHasSSSE3) && IS_ALIGNED(width, 8) && in ARGBGrayTo()
1109 ARGBGrayRow(src_argb, dst_argb, width); in ARGBGrayTo()
1120 int width, int height) { in ARGBGray() argument
1121 if (!dst_argb || width <= 0 || height <= 0 || dst_x < 0 || dst_y < 0) { in ARGBGray()
1125 int width) = ARGBGrayRow_C; in ARGBGray()
1127 if (TestCpuFlag(kCpuHasSSSE3) && IS_ALIGNED(width, 8) && in ARGBGray()
1134 ARGBGrayRow(dst, dst, width); in ARGBGray()
1143 int dst_x, int dst_y, int width, int height) { in ARGBSepia() argument
1144 if (!dst_argb || width <= 0 || height <= 0 || dst_x < 0 || dst_y < 0) { in ARGBSepia()
1147 void (*ARGBSepiaRow)(uint8* dst_argb, int width) = ARGBSepiaRow_C; in ARGBSepia()
1149 if (TestCpuFlag(kCpuHasSSSE3) && IS_ALIGNED(width, 8) && in ARGBSepia()
1156 ARGBSepiaRow(dst, width); in ARGBSepia()
1166 int dst_x, int dst_y, int width, int height) { in ARGBColorMatrix() argument
1167 if (!dst_argb || !matrix_argb || width <= 0 || height <= 0 || in ARGBColorMatrix()
1172 int width) = ARGBColorMatrixRow_C; in ARGBColorMatrix()
1174 if (TestCpuFlag(kCpuHasSSSE3) && IS_ALIGNED(width, 8) && in ARGBColorMatrix()
1181 ARGBColorMatrixRow(dst, matrix_argb, width); in ARGBColorMatrix()
1192 int dst_x, int dst_y, int width, int height) { in ARGBColorTable() argument
1193 if (!dst_argb || !table_argb || width <= 0 || height <= 0 || in ARGBColorTable()
1198 int width) = ARGBColorTableRow_C; in ARGBColorTable()
1206 ARGBColorTableRow(dst, table_argb, width); in ARGBColorTable()
1222 int dst_x, int dst_y, int width, int height) { in ARGBQuantize() argument
1223 if (!dst_argb || width <= 0 || height <= 0 || dst_x < 0 || dst_y < 0 || in ARGBQuantize()
1228 int interval_offset, int width) = ARGBQuantizeRow_C; in ARGBQuantize()
1230 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 4) && in ARGBQuantize()
1237 ARGBQuantizeRow(dst, scale, interval_size, interval_offset, width); in ARGBQuantize()
1248 int width, int height) { in ARGBComputeCumulativeSum() argument
1249 if (!dst_cumsum || !src_argb || width <= 0 || height <= 0) { in ARGBComputeCumulativeSum()
1253 const int32* previous_cumsum, int width) = ComputeCumulativeSumRow_C; in ARGBComputeCumulativeSum()
1259 memset(dst_cumsum, 0, width * sizeof(dst_cumsum[0]) * 4); // 4 int per pixel. in ARGBComputeCumulativeSum()
1262 ComputeCumulativeSumRow(src_argb, dst_cumsum, previous_cumsum, width); in ARGBComputeCumulativeSum()
1278 int width, int height, int radius) { in ARGBBlur() argument
1279 if (!src_argb || !dst_argb || width <= 0 || height == 0) { in ARGBBlur()
1283 const int32* previous_cumsum, int width) = ComputeCumulativeSumRow_C; in ARGBBlur()
1285 int width, int area, uint8* dst, int count) = CumulativeSumToAverage_C; in ARGBBlur()
1296 width, radius); in ARGBBlur()
1326 width); in ARGBBlur()
1341 int n = (width - 1) - radius - x + 1; in ARGBBlur()
1346 for (x += n; x <= width - 1; ++x) { in ARGBBlur()
1362 int width, int height, uint32 value) { in ARGBShade() argument
1363 if (!src_argb || !dst_argb || width <= 0 || height == 0 || value == 0u) { in ARGBShade()
1372 int width, uint32 value) = ARGBShadeRow_C; in ARGBShade()
1374 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(width, 4) && in ARGBShade()
1382 ARGBShadeRow(src_argb, dst_argb, width, value); in ARGBShade()
1394 int width, int height, int interpolation) { in ARGBInterpolate() argument
1395 if (!src_argb0 || !src_argb1 || !dst_argb || width <= 0 || height == 0) { in ARGBInterpolate()
1417 width, interpolation); in ARGBInterpolate()