Avoid gcc 4.4 indexing a vector_size(32) array error.

Mking color conversion use simple arrays within structure, which will be referenced via register pointer.

R=harryjin@google.com
BUG=libyuv:616
TEST=CC=gcc-4.4 CXX=g++-4.4 LD=ld-4.4 make -f linux.mk

Review URL: https://codereview.chromium.org/2127863003 .
This commit is contained in:
Frank Barchard 2016-07-06 15:14:29 -07:00
parent 2f101fdbda
commit 303b9f03c8
4 changed files with 10 additions and 10 deletions

View File

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

View File

@ -441,13 +441,13 @@ struct YuvConstants {
#else
// This struct is for Intel color conversion.
struct YuvConstants {
lvec8 kUVToB;
lvec8 kUVToG;
lvec8 kUVToR;
lvec16 kUVBiasB;
lvec16 kUVBiasG;
lvec16 kUVBiasR;
lvec16 kYToRgb;
int8 kUVToB[32];
int8 kUVToG[32];
int8 kUVToR[32];
int16 kUVBiasB[16];
int16 kUVBiasG[16];
int16 kUVBiasR[16];
int16 kYToRgb[16];
};
// Offsets into YuvConstants structure

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1602
#define LIBYUV_VERSION 1603
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT

View File

@ -75,7 +75,7 @@ psnr: util/psnr.cc
# A C test utility that uses libyuv conversion from C.
cpuid: util/cpuid.c libyuv.a
$(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a
$(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a -lc++
clean:
/bin/rm -f source/*.o *.ii *.s libyuv.a convert cpuid psnr