Bump version and apply clang format

Bug: libyuv:956
Change-Id: I2375a02583789af2a5f13f8dba6c663d5975aaa9
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4522352
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
Frank Barchard 2023-05-11 03:35:29 -07:00 committed by libyuv LUCI CQ
parent 59eae49f17
commit 6a68b18a96
7 changed files with 49 additions and 50 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 1867 Version: 1868
License: BSD License: BSD
License File: LICENSE License File: LICENSE

View File

@ -2140,9 +2140,7 @@ void ARGBMirrorRow_Any_NEON(const uint8_t* src_ptr,
uint8_t* dst_ptr, uint8_t* dst_ptr,
int width); int width);
void ARGBMirrorRow_Any_MSA(const uint8_t* src_ptr, uint8_t* dst_ptr, int width); void ARGBMirrorRow_Any_MSA(const uint8_t* src_ptr, uint8_t* dst_ptr, int width);
void ARGBMirrorRow_Any_LSX(const uint8_t* src_ptr, void ARGBMirrorRow_Any_LSX(const uint8_t* src_ptr, uint8_t* dst_ptr, int width);
uint8_t* dst_ptr,
int width);
void ARGBMirrorRow_Any_LASX(const uint8_t* src_ptr, void ARGBMirrorRow_Any_LASX(const uint8_t* src_ptr,
uint8_t* dst_ptr, uint8_t* dst_ptr,
int width); int width);

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ #ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1867 #define LIBYUV_VERSION 1868
#endif // INCLUDE_LIBYUV_VERSION_H_ #endif // INCLUDE_LIBYUV_VERSION_H_

View File

@ -2926,7 +2926,8 @@ int ARGBToAB64(const uint8_t* src_argb,
} }
// Enabled if 1 pass is available // Enabled if 1 pass is available
#if defined(HAS_RAWTOYJROW_NEON) || defined(HAS_RAWTOYJROW_MSA) || defined(HAS_RAWTOYJROW_RVV) #if defined(HAS_RAWTOYJROW_NEON) || defined(HAS_RAWTOYJROW_MSA) || \
defined(HAS_RAWTOYJROW_RVV)
#define HAS_RAWTOYJROW #define HAS_RAWTOYJROW
#endif #endif

View File

@ -60,8 +60,8 @@ extern "C" {
} }
// Convert 16 pixels of YUV420 to RGB. // Convert 16 pixels of YUV420 to RGB.
#define YUVTORGB_D(in_y, in_uvl, in_uvh, ubvr, ugvg, yg, yb, b_l, \ #define YUVTORGB_D(in_y, in_uvl, in_uvh, ubvr, ugvg, yg, yb, b_l, b_h, g_l, \
b_h, g_l,g_h, r_l, r_h) \ g_h, r_l, r_h) \
{ \ { \
__m128i u_l, u_h, v_l, v_h; \ __m128i u_l, u_h, v_l, v_h; \
__m128i yl_ev, yl_od, yh_ev, yh_od; \ __m128i yl_ev, yl_od, yh_ev, yh_od; \
@ -206,7 +206,6 @@ extern "C" {
// Pack and Store 16 ARGB values. // Pack and Store 16 ARGB values.
#define STOREARGB_D(a_l, a_h, r_l, r_h, g_l, g_h, b_l, b_h, pdst_argb) \ #define STOREARGB_D(a_l, a_h, r_l, r_h, g_l, g_h, b_l, b_h, pdst_argb) \
{ \ { \
\
__m128i temp0, temp1, temp2, temp3; \ __m128i temp0, temp1, temp2, temp3; \
temp0 = __lsx_vpackev_b(g_l, b_l); \ temp0 = __lsx_vpackev_b(g_l, b_l); \
temp1 = __lsx_vpackev_b(a_l, r_l); \ temp1 = __lsx_vpackev_b(a_l, r_l); \
@ -492,8 +491,8 @@ void I422ToRGB24Row_LSX(const uint8_t* src_y,
g_h, r_l, r_h); g_h, r_l, r_h);
temp0 = __lsx_vpackev_b(g_l, b_l); temp0 = __lsx_vpackev_b(g_l, b_l);
temp1 = __lsx_vpackev_b(g_h, b_h); temp1 = __lsx_vpackev_b(g_h, b_h);
DUP4_ARG3(__lsx_vshuf_b, r_l, temp0, shuffler1, r_h, temp1, shuffler1, DUP4_ARG3(__lsx_vshuf_b, r_l, temp0, shuffler1, r_h, temp1, shuffler1, r_l,
r_l, temp0, shuffler0, r_h, temp1, shuffler0, temp2, temp3, temp0, temp0, shuffler0, r_h, temp1, shuffler0, temp2, temp3, temp0,
temp1); temp1);
b_l = __lsx_vilvl_d(temp1, temp2); b_l = __lsx_vilvl_d(temp1, temp2);

View File

@ -215,8 +215,9 @@ TEST_F(LibYUVBaseTest, TestCpuId) {
cpu_info[0] = cpu_info[1]; // Reorder output cpu_info[0] = cpu_info[1]; // Reorder output
cpu_info[1] = cpu_info[3]; cpu_info[1] = cpu_info[3];
cpu_info[3] = 0; cpu_info[3] = 0;
printf("Cpu Vendor: %s 0x%x 0x%x 0x%x\n", reinterpret_cast<char*>(&cpu_info[0]), printf("Cpu Vendor: %s 0x%x 0x%x 0x%x\n",
cpu_info[0], cpu_info[1], cpu_info[2]); reinterpret_cast<char*>(&cpu_info[0]), cpu_info[0], cpu_info[1],
cpu_info[2]);
EXPECT_EQ(12u, strlen(reinterpret_cast<char*>(&cpu_info[0]))); EXPECT_EQ(12u, strlen(reinterpret_cast<char*>(&cpu_info[0])));
// CPU Family and Model // CPU Family and Model