Lines Matching refs:src_height
36 static void ScalePlaneDown2(int src_width, int src_height,
108 static void ScalePlaneDown2_16(int src_width, int src_height,
162 static void ScalePlaneDown4(int src_width, int src_height,
222 static void ScalePlaneDown4_16(int src_width, int src_height,
269 static void ScalePlaneDown34(int src_width, int src_height,
366 static void ScalePlaneDown34_16(int src_width, int src_height,
461 static void ScalePlaneDown38(int src_width, int src_height,
557 static void ScalePlaneDown38_16(int src_width, int src_height,
731 static void ScalePlaneBox(int src_width, int src_height,
741 const int max_y = (src_height << 16);
742 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox,
800 static void ScalePlaneBox_16(int src_width, int src_height,
810 const int max_y = (src_height << 16);
811 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox,
851 void ScalePlaneBilinearDown(int src_width, int src_height,
865 const int max_y = (src_height - 1) << 16;
873 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
947 void ScalePlaneBilinearDown_16(int src_width, int src_height,
961 const int max_y = (src_height - 1) << 16;
969 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1044 void ScalePlaneBilinearUp(int src_width, int src_height,
1055 const int max_y = (src_height - 1) << 16;
1062 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1140 if (src_height > 1) {
1175 void ScalePlaneBilinearUp_16(int src_width, int src_height,
1186 const int max_y = (src_height - 1) << 16;
1193 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1271 if (src_height > 1) {
1311 static void ScalePlaneSimple(int src_width, int src_height,
1323 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone,
1343 static void ScalePlaneSimple_16(int src_width, int src_height,
1355 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone,
1381 int src_width, int src_height,
1386 filtering = ScaleFilterReduce(src_width, src_height,
1390 if (src_height < 0) {
1391 src_height = -src_height;
1392 src = src + (src_height - 1) * src_stride;
1398 if (dst_width == src_width && dst_height == src_height) {
1404 int dy = FixedDiv(src_height, dst_height);
1406 ScalePlaneVertical(src_height,
1412 if (dst_width <= Abs(src_width) && dst_height <= src_height) {
1415 4 * dst_height == 3 * src_height) {
1417 ScalePlaneDown34(src_width, src_height, dst_width, dst_height,
1421 if (2 * dst_width == src_width && 2 * dst_height == src_height) {
1423 ScalePlaneDown2(src_width, src_height, dst_width, dst_height,
1429 dst_height == ((src_height * 3 + 7) / 8)) {
1431 ScalePlaneDown38(src_width, src_height, dst_width, dst_height,
1435 if (4 * dst_width == src_width && 4 * dst_height == src_height &&
1438 ScalePlaneDown4(src_width, src_height, dst_width, dst_height,
1443 if (filtering == kFilterBox && dst_height * 2 < src_height) {
1444 ScalePlaneBox(src_width, src_height, dst_width, dst_height,
1448 if (filtering && dst_height > src_height) {
1449 ScalePlaneBilinearUp(src_width, src_height, dst_width, dst_height,
1454 ScalePlaneBilinearDown(src_width, src_height, dst_width, dst_height,
1458 ScalePlaneSimple(src_width, src_height, dst_width, dst_height,
1464 int src_width, int src_height,
1469 filtering = ScaleFilterReduce(src_width, src_height,
1473 if (src_height < 0) {
1474 src_height = -src_height;
1475 src = src + (src_height - 1) * src_stride;
1481 if (dst_width == src_width && dst_height == src_height) {
1487 int dy = FixedDiv(src_height, dst_height);
1489 ScalePlaneVertical_16(src_height,
1495 if (dst_width <= Abs(src_width) && dst_height <= src_height) {
1498 4 * dst_height == 3 * src_height) {
1500 ScalePlaneDown34_16(src_width, src_height, dst_width, dst_height,
1504 if (2 * dst_width == src_width && 2 * dst_height == src_height) {
1506 ScalePlaneDown2_16(src_width, src_height, dst_width, dst_height,
1512 dst_height == ((src_height * 3 + 7) / 8)) {
1514 ScalePlaneDown38_16(src_width, src_height, dst_width, dst_height,
1518 if (4 * dst_width == src_width && 4 * dst_height == src_height &&
1521 ScalePlaneDown4_16(src_width, src_height, dst_width, dst_height,
1526 if (filtering == kFilterBox && dst_height * 2 < src_height) {
1527 ScalePlaneBox_16(src_width, src_height, dst_width, dst_height,
1531 if (filtering && dst_height > src_height) {
1532 ScalePlaneBilinearUp_16(src_width, src_height, dst_width, dst_height,
1537 ScalePlaneBilinearDown_16(src_width, src_height, dst_width, dst_height,
1541 ScalePlaneSimple_16(src_width, src_height, dst_width, dst_height,
1552 int src_width, int src_height,
1559 int src_halfheight = SUBSAMPLE(src_height, 1, 1);
1562 if (!src_y || !src_u || !src_v || src_width == 0 || src_height == 0 ||
1563 src_width > 32768 || src_height > 32768 ||
1568 ScalePlane(src_y, src_stride_y, src_width, src_height,
1584 int src_width, int src_height,
1591 int src_halfheight = SUBSAMPLE(src_height, 1, 1);
1594 if (!src_y || !src_u || !src_v || src_width == 0 || src_height == 0 ||
1595 src_width > 32768 || src_height > 32768 ||
1600 ScalePlane_16(src_y, src_stride_y, src_width, src_height,
1616 int src_width, int src_height,
1624 src_width, src_height,
1634 int ScaleOffset(const uint8* src, int src_width, int src_height,
1640 int src_halfheight = SUBSAMPLE(src_height, 1, 1);
1645 const uint8* src_u = src + src_width * src_height;
1646 const uint8* src_v = src + src_width * src_height +
1653 if (!src || src_width <= 0 || src_height <= 0 ||
1661 src_width, src_height,