| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2  *  Copyright 2011 The LibYuv Project Authors. All rights reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS. All contributing project authors may | 7  *  in the file PATENTS. All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| (...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1269              yuvconstants); | 1269              yuvconstants); | 
| 1270     rgb_buf[7] = 255; | 1270     rgb_buf[7] = 255; | 
| 1271     src_y += 2; | 1271     src_y += 2; | 
| 1272     src_u += 2; | 1272     src_u += 2; | 
| 1273     src_v += 2; | 1273     src_v += 2; | 
| 1274     rgb_buf += 8;  // Advance 2 pixels. | 1274     rgb_buf += 8;  // Advance 2 pixels. | 
| 1275   } | 1275   } | 
| 1276   if (width & 1) { | 1276   if (width & 1) { | 
| 1277     YuvPixel(src_y[0], src_u[0], src_v[0], | 1277     YuvPixel(src_y[0], src_u[0], src_v[0], | 
| 1278              rgb_buf + 0, rgb_buf + 1, rgb_buf + 2, yuvconstants); | 1278              rgb_buf + 0, rgb_buf + 1, rgb_buf + 2, yuvconstants); | 
|  | 1279     rgb_buf[3] = 255; | 
| 1279   } | 1280   } | 
| 1280 } | 1281 } | 
| 1281 | 1282 | 
| 1282 void I444ToABGRRow_C(const uint8* src_y, | 1283 void I444ToABGRRow_C(const uint8* src_y, | 
| 1283                      const uint8* src_u, | 1284                      const uint8* src_u, | 
| 1284                      const uint8* src_v, | 1285                      const uint8* src_v, | 
| 1285                      uint8* rgb_buf, | 1286                      uint8* rgb_buf, | 
| 1286                      const struct YuvConstants* yuvconstants, | 1287                      const struct YuvConstants* yuvconstants, | 
| 1287                      int width) { | 1288                      int width) { | 
| 1288   int x; | 1289   int x; | 
| 1289   for (x = 0; x < width - 1; x += 2) { | 1290   for (x = 0; x < width - 1; x += 2) { | 
| 1290     uint8 u = (src_u[0] + src_u[1] + 1) >> 1; | 1291     uint8 u = (src_u[0] + src_u[1] + 1) >> 1; | 
| 1291     uint8 v = (src_v[0] + src_v[1] + 1) >> 1; | 1292     uint8 v = (src_v[0] + src_v[1] + 1) >> 1; | 
| 1292     YuvPixel(src_y[0], u, v, rgb_buf + 2, rgb_buf + 1, rgb_buf + 0, | 1293     YuvPixel(src_y[0], u, v, rgb_buf + 2, rgb_buf + 1, rgb_buf + 0, | 
| 1293              yuvconstants); | 1294              yuvconstants); | 
| 1294     rgb_buf[3] = 255; | 1295     rgb_buf[3] = 255; | 
| 1295     YuvPixel(src_y[1], u, v, rgb_buf + 6, rgb_buf + 5, rgb_buf + 4, | 1296     YuvPixel(src_y[1], u, v, rgb_buf + 6, rgb_buf + 5, rgb_buf + 4, | 
| 1296              yuvconstants); | 1297              yuvconstants); | 
| 1297     rgb_buf[7] = 255; | 1298     rgb_buf[7] = 255; | 
| 1298     src_y += 2; | 1299     src_y += 2; | 
| 1299     src_u += 2; | 1300     src_u += 2; | 
| 1300     src_v += 2; | 1301     src_v += 2; | 
| 1301     rgb_buf += 8;  // Advance 2 pixels. | 1302     rgb_buf += 8;  // Advance 2 pixels. | 
| 1302   } | 1303   } | 
| 1303   if (width & 1) { | 1304   if (width & 1) { | 
| 1304     YuvPixel(src_y[0], src_u[0], src_v[0], | 1305     YuvPixel(src_y[0], src_u[0], src_v[0], | 
| 1305              rgb_buf + 2, rgb_buf + 1, rgb_buf + 0, yuvconstants); | 1306              rgb_buf + 2, rgb_buf + 1, rgb_buf + 0, yuvconstants); | 
|  | 1307     rgb_buf[3] = 255; | 
| 1306   } | 1308   } | 
| 1307 } | 1309 } | 
| 1308 #else | 1310 #else | 
| 1309 void I444ToARGBRow_C(const uint8* src_y, | 1311 void I444ToARGBRow_C(const uint8* src_y, | 
| 1310                      const uint8* src_u, | 1312                      const uint8* src_u, | 
| 1311                      const uint8* src_v, | 1313                      const uint8* src_v, | 
| 1312                      uint8* rgb_buf, | 1314                      uint8* rgb_buf, | 
| 1313                      const struct YuvConstants* yuvconstants, | 1315                      const struct YuvConstants* yuvconstants, | 
| 1314                      int width) { | 1316                      int width) { | 
| 1315   int x; | 1317   int x; | 
| (...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2701     dst_rgb565 += twidth * 2; | 2703     dst_rgb565 += twidth * 2; | 
| 2702     width -= twidth; | 2704     width -= twidth; | 
| 2703   } | 2705   } | 
| 2704 } | 2706 } | 
| 2705 #endif | 2707 #endif | 
| 2706 | 2708 | 
| 2707 #ifdef __cplusplus | 2709 #ifdef __cplusplus | 
| 2708 }  // extern "C" | 2710 }  // extern "C" | 
| 2709 }  // namespace libyuv | 2711 }  // namespace libyuv | 
| 2710 #endif | 2712 #endif | 
| OLD | NEW | 
|---|