diff --git a/README.chromium b/README.chromium index 304b33c1c..486c16489 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 1293 +Version: 1294 License: BSD License File: LICENSE diff --git a/include/libyuv/row.h b/include/libyuv/row.h index 50ecb6dfe..8e8e5d06f 100644 --- a/include/libyuv/row.h +++ b/include/libyuv/row.h @@ -219,6 +219,7 @@ extern "C" { #if defined(HAS_I422TOARGBROW_AVX2) #define HAS_YUY2TOARGBROW_AVX2 #define HAS_UYVYTOARGBROW_AVX2 +// TODO(fbarchard): Enable once low levels are ported to AVX2 #define HAS_NV12TORGB565ROW_AVX2 #define HAS_NV21TORGB565ROW_AVX2 #define HAS_I422TORGB565ROW_AVX2 diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 0881d1097..ed5b950f5 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1293 +#define LIBYUV_VERSION 1294 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/row_common.cc b/source/row_common.cc index e56c057b6..49efd67da 100644 --- a/source/row_common.cc +++ b/source/row_common.cc @@ -2265,7 +2265,7 @@ void I422ToRGB565Row_AVX2(const uint8* src_y, const uint8* src_v, uint8* dst_rgb565, int width) { - SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); + SIMD_ALIGNED32(uint8 row[MAXTWIDTH * 4]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; I422ToARGBRow_AVX2(src_y, src_u, src_v, row, twidth); @@ -2286,7 +2286,7 @@ void I422ToARGB1555Row_AVX2(const uint8* src_y, uint8* dst_argb1555, int width) { // Row buffer for intermediate ARGB pixels. - SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); + SIMD_ALIGNED32(uint8 row[MAXTWIDTH * 4]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; I422ToARGBRow_AVX2(src_y, src_u, src_v, row, twidth); @@ -2307,7 +2307,7 @@ void I422ToARGB4444Row_AVX2(const uint8* src_y, uint8* dst_argb4444, int width) { // Row buffer for intermediate ARGB pixels. - SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); + SIMD_ALIGNED32(uint8 row[MAXTWIDTH * 4]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; I422ToARGBRow_AVX2(src_y, src_u, src_v, row, twidth); @@ -2325,7 +2325,7 @@ void I422ToARGB4444Row_AVX2(const uint8* src_y, void NV12ToRGB565Row_AVX2(const uint8* src_y, const uint8* src_uv, uint8* dst_rgb565, int width) { // Row buffer for intermediate ARGB pixels. - SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); + SIMD_ALIGNED32(uint8 row[MAXTWIDTH * 4]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; NV12ToARGBRow_AVX2(src_y, src_uv, row, twidth); @@ -2342,7 +2342,7 @@ void NV12ToRGB565Row_AVX2(const uint8* src_y, const uint8* src_uv, void NV21ToRGB565Row_AVX2(const uint8* src_y, const uint8* src_vu, uint8* dst_rgb565, int width) { // Row buffer for intermediate ARGB pixels. - SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); + SIMD_ALIGNED32(uint8 row[MAXTWIDTH * 4]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; NV21ToARGBRow_AVX2(src_y, src_vu, row, twidth); @@ -2358,9 +2358,9 @@ void NV21ToRGB565Row_AVX2(const uint8* src_y, const uint8* src_vu, #if defined(HAS_YUY2TOARGBROW_AVX2) void YUY2ToARGBRow_AVX2(const uint8* src_yuy2, uint8* dst_argb, int width) { // Row buffers for intermediate YUV pixels. - SIMD_ALIGNED(uint8 row_y[MAXTWIDTH]); - SIMD_ALIGNED(uint8 row_u[MAXTWIDTH / 2]); - SIMD_ALIGNED(uint8 row_v[MAXTWIDTH / 2]); + SIMD_ALIGNED32(uint8 row_y[MAXTWIDTH]); + SIMD_ALIGNED32(uint8 row_u[MAXTWIDTH / 2]); + SIMD_ALIGNED32(uint8 row_v[MAXTWIDTH / 2]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; YUY2ToUV422Row_AVX2(src_yuy2, row_u, row_v, twidth); @@ -2376,9 +2376,9 @@ void YUY2ToARGBRow_AVX2(const uint8* src_yuy2, uint8* dst_argb, int width) { #if defined(HAS_UYVYTOARGBROW_AVX2) void UYVYToARGBRow_AVX2(const uint8* src_uyvy, uint8* dst_argb, int width) { // Row buffers for intermediate YUV pixels. - SIMD_ALIGNED(uint8 row_y[MAXTWIDTH]); - SIMD_ALIGNED(uint8 row_u[MAXTWIDTH / 2]); - SIMD_ALIGNED(uint8 row_v[MAXTWIDTH / 2]); + SIMD_ALIGNED32(uint8 row_y[MAXTWIDTH]); + SIMD_ALIGNED32(uint8 row_u[MAXTWIDTH / 2]); + SIMD_ALIGNED32(uint8 row_v[MAXTWIDTH / 2]); while (width > 0) { int twidth = width > MAXTWIDTH ? MAXTWIDTH : width; UYVYToUV422Row_AVX2(src_uyvy, row_u, row_v, twidth);