external/libyuv.git
4 hours agoARGBToRGB565 SSE2 port. master
fbarchard@google.com [Wed, 4 Mar 2015 00:00:50 +0000 (00:00 +0000)]
ARGBToRGB565 SSE2 port.
BUG=407
TESTED=ARGBToRGB565Dither unittest
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/41039004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1308 16f28f9a-4ce2-e073-06de-1de4eb20be90

26 hours agoAdd ScaleRowDown2Linear_NEON for ARM32/64
yang.zhang@arm.com [Tue, 3 Mar 2015 02:17:16 +0000 (02:17 +0000)]
Add ScaleRowDown2Linear_NEON for ARM32/64

ARM32/64 NEON versions of ScaleRowDown2Linear_NEON are implemented.

BUG=319
TESTED=libyuvTest.ScaleDownBy2_Linear on ARM32/64 with Android
R=fbarchard@google.com

Change-Id: I2c7f43a0d56ed4dfded5bdbbb61765d87d65a2ba

Review URL: https://webrtc-codereview.appspot.com/43519005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1307 16f28f9a-4ce2-e073-06de-1de4eb20be90

28 hours agoARGBToRGB565 C version use unsigned dither matrix pattern to bump pixels to next...
fbarchard@google.com [Mon, 2 Mar 2015 23:46:09 +0000 (23:46 +0000)]
ARGBToRGB565 C version use unsigned dither matrix pattern to bump pixels to next brighter value.
BUG=407
TESTED=unittest passes
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/43539004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1306 16f28f9a-4ce2-e073-06de-1de4eb20be90

33 hours agoshift by 16 for neon expects a number sign
fbarchard@google.com [Mon, 2 Mar 2015 18:48:17 +0000 (18:48 +0000)]
shift by 16 for neon expects a number sign
BUG=408
TESTED=nacl arm build
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/38329004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1305 16f28f9a-4ce2-e073-06de-1de4eb20be90

43 hours agoImprove the accuracy YUV to RGB for ARM64 NEON
yang.zhang@arm.com [Mon, 2 Mar 2015 08:30:22 +0000 (08:30 +0000)]
Improve the accuracy YUV to RGB for ARM64 NEON

ARM64 NEON version of YUV422TORGB is updated based on C algorithm.
Except TestJ420 and TestYUV, all the other tests are passed.

BUG=324
TESTED=libyuvTest on ARM64 with Android
R=fbarchard@google.com

Change-Id: Ia2663cfdeccc4c8c1d46262c9c0cc67b71d45e70

Review URL: https://webrtc-codereview.appspot.com/35329004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1304 16f28f9a-4ce2-e073-06de-1de4eb20be90

4 days agoAdd Neon source files to libyuv GN build
fbarchard@google.com [Fri, 27 Feb 2015 22:12:17 +0000 (22:12 +0000)]
Add Neon source files to libyuv GN build
BUG=none
TESTED=untested
R=bcornell@google.com

Review URL: https://webrtc-codereview.appspot.com/42149004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1303 16f28f9a-4ce2-e073-06de-1de4eb20be90

4 days agoport ARGBToRGB565 and ARGB1555 to AVX2. Enable functions that use ARGBToRGB565 AVX2...
fbarchard@google.com [Fri, 27 Feb 2015 21:15:28 +0000 (21:15 +0000)]
port ARGBToRGB565 and ARGB1555 to AVX2.  Enable functions that use ARGBToRGB565 AVX2 code.  Add ARGBToRGB565Dither function.
BUG=403
TESTED=local windows build
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/42109004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1302 16f28f9a-4ce2-e073-06de-1de4eb20be90

4 days agoRoll chromium_revision 271c6cc..2c3ffb2 (309333:317530) + fixes
kjellander@google.com [Fri, 27 Feb 2015 10:20:23 +0000 (10:20 +0000)]
Roll chromium_revision 271c6cc..2c3ffb2 (309333:317530) + fixes

Details: https://chromium.googlesource.com/chromium/src/+/271c6cc..2c3ffb2/DEPS

Updated sync_chromium.py to be identical with WebRTC's current version.
Removed the xcode61 suffixed Mac trybots as well.

The following were moved into src/buildtools:
* src/third_party/libc++/trunk
* src/third_party/libc++abi/trunk

TBR=fbarchard@google.com
TESTED=All trybots passing this.

Review URL: https://webrtc-codereview.appspot.com/40119004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1301 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 days agoCleanup LSan suppression files.
kjellander@google.com [Wed, 25 Feb 2015 20:52:59 +0000 (20:52 +0000)]
Cleanup LSan suppression files.

This file no longer needs to exist after
https://codereview.chromium.org/941433004/ has been landed.

Libyuv never had any LSan suppressions added, so the
file has no purpose.
Also cleanup empty sanitizer_options.gyp file that was added
by mistake.

BUG=
R=fbarchard@google.com

Review URL: https://webrtc-codereview.appspot.com/35299004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1300 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 days agoRemove unused URL in DEPS
kjellander@google.com [Wed, 25 Feb 2015 20:52:24 +0000 (20:52 +0000)]
Remove unused URL in DEPS

R=fbarchard@google.com

Review URL: https://webrtc-codereview.appspot.com/42049004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1299 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 days agoif building with gcc and sse2 is not enabled, disable assembly
fbarchard@google.com [Wed, 25 Feb 2015 19:28:45 +0000 (19:28 +0000)]
if building with gcc and sse2 is not enabled, disable assembly
BUG=none
TESTED=nacl build with default options
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/44389004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1298 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 days agoAVX2 version of ARGBToARGB4444
fbarchard@google.com [Wed, 25 Feb 2015 17:26:28 +0000 (17:26 +0000)]
AVX2 version of ARGBToARGB4444
BUG=403
TESTED=local build on windows
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/43429004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1297 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 days agoImprove the accuracy YUV to RGB for ARMv7 NEON
yang.zhang@arm.com [Wed, 25 Feb 2015 06:51:29 +0000 (06:51 +0000)]
Improve the accuracy YUV to RGB for ARMv7 NEON

NEON version of YUV422TORGB is updated based on C algorithm. Accuracy YUV to RGB
of NEON is also updated according to test result. Macro LIBYUV_NEON is added to
identify accuracy YUV to RGB for ARM platform.
Except TestJ420 and TestYUV, all the other tests are passed.

BUG=324
TESTED=libyuvTest on ARMv7 with Android
R=fbarchard@google.com

Change-Id: I492ca628679940534f40341721dc5b6dc2d7a5b6

Review URL: https://webrtc-codereview.appspot.com/40609004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1296 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 days agoAVX2 version of NV12ToARGB
fbarchard@google.com [Tue, 24 Feb 2015 23:45:08 +0000 (23:45 +0000)]
AVX2 version of NV12ToARGB
BUG=403
TESTED=untested
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/40089004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1295 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 days agoalign avx2 buffers to 32 bytes
fbarchard@google.com [Tue, 24 Feb 2015 23:31:28 +0000 (23:31 +0000)]
align avx2 buffers to 32 bytes
BUG=403
TESTED=untested
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/40929004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1294 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 days agoI422ToRGB565, ARGB4444 and ARGB1555 for AVX2
fbarchard@google.com [Tue, 24 Feb 2015 23:14:46 +0000 (23:14 +0000)]
I422ToRGB565, ARGB4444 and ARGB1555 for AVX2
BUG=403
TESTED=avx2 emulator

Review URL: https://webrtc-codereview.appspot.com/34359004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1293 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 days agomove mask to last parameter of any functions for consistency.
fbarchard@google.com [Tue, 24 Feb 2015 21:18:30 +0000 (21:18 +0000)]
move mask to last parameter of any functions for consistency.
BUG=none
TESTED=local libyuv unittest passes
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/43419004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1292 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 days agoYUY2 and UYVY to ARGB AVX2 versions via wrappers.
fbarchard@google.com [Tue, 24 Feb 2015 18:58:51 +0000 (18:58 +0000)]
YUY2 and UYVY to ARGB AVX2 versions via wrappers.
BUG=403
TESTED=UNTESTED
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/34339004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1291 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 days agoAdd drover.properties for libyuv
kjellander@google.com [Tue, 24 Feb 2015 10:06:44 +0000 (10:06 +0000)]
Add drover.properties for libyuv

To use this for reverts, just run drover
from the root directory (i.e. the directory
where this file is located). Notice you'll
end up with a drover_<revision> directory
being created that contains the revert changes.

If you don't have a checkout, you can also
use it like this:
svn export https://libyuv.googlecode.com/svn/trunk/drover.properties
Then just run:
drover --revert <revision>

TBR=fbarchard@google.com

Review URL: https://webrtc-codereview.appspot.com/40909004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1290 16f28f9a-4ce2-e073-06de-1de4eb20be90

8 days agoRevert "YUY2ToARGB and UYVYToARGB AVX with C wrapper to call lower level conversions."
kjellander@google.com [Mon, 23 Feb 2015 09:22:22 +0000 (09:22 +0000)]
Revert "YUY2ToARGB and UYVYToARGB AVX with C wrapper to call lower level conversions."

This reverts r1288 due to breaking compilation on bots:
http://build.chromium.org/p/client.libyuv/builders/Mac64%20Debug/builds/365
http://build.chromium.org/p/client.libyuv/builders/Linux64%20Debug/builds/667

TBR=fbarchard@google.com
TESTED=Reverted locally and all built fine again.

Review URL: https://webrtc-codereview.appspot.com/40879004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1289 16f28f9a-4ce2-e073-06de-1de4eb20be90

11 days agoYUY2ToARGB and UYVYToARGB AVX with C wrapper to call lower level conversions.
fbarchard@google.com [Sat, 21 Feb 2015 00:49:35 +0000 (00:49 +0000)]
YUY2ToARGB and UYVYToARGB AVX with C wrapper to call lower level conversions.
BUG=403
TESTED=convert unittest
R=brucedawson@google.com

Review URL: https://webrtc-codereview.appspot.com/40839004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1288 16f28f9a-4ce2-e073-06de-1de4eb20be90

11 days agouse named type for pointer
fbarchard@google.com [Fri, 20 Feb 2015 23:26:27 +0000 (23:26 +0000)]
use named type for pointer
BUG=403
TESTED=try bot

Review URL: https://webrtc-codereview.appspot.com/38179004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1287 16f28f9a-4ce2-e073-06de-1de4eb20be90

11 days agoSwitch SSSE3 row wrappers from variable sized malloc to fixed size array with loop...
fbarchard@google.com [Fri, 20 Feb 2015 22:46:15 +0000 (22:46 +0000)]
Switch SSSE3 row wrappers from variable sized malloc to fixed size array with loop to process a portion of the row at a time.  This helps performance in the case where the image has been coalesced into a single large row and the allocator, although only called once, is slow to clear the pages.  Also the smaller temporary buffer fits cache, further improving performance.
BUG=403
TESTED=YUY2ToARGB unittest
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/40849004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1286 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agoScan from start of buffer to handle case where an invalid size was passed.
fbarchard@google.com [Wed, 18 Feb 2015 01:57:31 +0000 (01:57 +0000)]
Scan from start of buffer to handle case where an invalid size was passed.
BUG=404
TESTED=libyuvTest.ValidateJpegLarge
R=brucedawson@google.com, harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/41989004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1285 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agoUnittest to test ValidateJpeg when jpeg is small but buffer is large
fbarchard@google.com [Tue, 17 Feb 2015 19:16:14 +0000 (19:16 +0000)]
Unittest to test ValidateJpeg when jpeg is small but buffer is large
BUG=404
TESTED=libyuvTest.ValidateJpegLarge
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/36169004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1284 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agomacros for storing RGB on windows.
fbarchard@google.com [Sat, 14 Feb 2015 00:50:48 +0000 (00:50 +0000)]
macros for storing RGB on windows.
BUG=403
TESTED=local windows build
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/38119004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1283 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agoSwitch to macro for STOREBGRA etc on Posix SSSE3
fbarchard@google.com [Fri, 13 Feb 2015 21:53:16 +0000 (21:53 +0000)]
Switch to macro for STOREBGRA etc on Posix SSSE3
BUG=393
TESTED=try bots
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/33339004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1282 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agoSwitch step for libyuvTest.TestFullYUV from 3 to 5 for better test performance.
fbarchard@google.com [Fri, 13 Feb 2015 21:48:29 +0000 (21:48 +0000)]
Switch step for libyuvTest.TestFullYUV from 3 to 5 for better test performance.
BUG=397
TESTED=libyuvTest.TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37249004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1281 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agoupdated file source list for android mk system.
fbarchard@google.com [Wed, 11 Feb 2015 19:42:25 +0000 (19:42 +0000)]
updated file source list for android mk system.
BUG=402
TESTED=untested
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/39109004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1280 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agoMacro to store ARGB value
fbarchard@google.com [Wed, 11 Feb 2015 18:53:54 +0000 (18:53 +0000)]
Macro to store ARGB value
BUG=396
TESTED=local windows build
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/38109004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1279 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agoRemove Q420 fourcc support.
fbarchard@google.com [Wed, 11 Feb 2015 18:20:54 +0000 (18:20 +0000)]
Remove Q420 fourcc support.
BUG=396
TESTED=local build of unittest builds and passes
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/39089004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1278 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 weeks agoEnable NEON functions for ARM32
yang.zhang@arm.com [Wed, 11 Feb 2015 08:30:11 +0000 (08:30 +0000)]
Enable NEON functions for ARM32

In init functions, whether the code of NEON initialization is compiled
is decided by macros HAS_XXXX_NEON. These macros HAS_XXXX_NEON are defined
according to __ARM_NEON__/LIBYUV_NEON/__aarch64__. For ARM32, "-mfpu=neon"
isn't passed to the files containing init functions. So __ARM_NEON__ is
undefined which leads to NEON functions are disabled.
In this patch, LIBYUV_NEON is added to enable HAS_XXXX_NEON definition for ARM32.

BUG=none
TESTED=libyuv_unittest on android of ARM32/ARM64
R=fbarchard@google.com

Change-Id: Ib4201e7152d2aeb0ba80d18bbbd0487151e4564e

Review URL: https://webrtc-codereview.appspot.com/32959004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1277 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agouse matrix for win64 version of I420ToARGB
fbarchard@google.com [Wed, 11 Feb 2015 00:57:46 +0000 (00:57 +0000)]
use matrix for win64 version of I420ToARGB
BUG=396
TESTED=local unittests build/pass
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/41899004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1276 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoAdd a macro for YUV to RGB on Windows. Allows multiple color matrix structures in...
fbarchard@google.com [Tue, 10 Feb 2015 23:03:37 +0000 (23:03 +0000)]
Add a macro for YUV to RGB on Windows.  Allows multiple color matrix structures in the future.
BUG=393
TESTED=local build
R=brucedawson@google.com, harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/38079004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1275 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoAdd a macro to reference YUV structure for future alternative color spaces.
fbarchard@google.com [Tue, 10 Feb 2015 19:34:17 +0000 (19:34 +0000)]
Add a macro to reference YUV structure for future alternative color spaces.
BUG=393
TESTED=try bots
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/33299005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1274 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoFix the bug (0 extension from int to int64) in ScaleARGBRowDownEven_NEON.
yang.zhang@arm.com [Tue, 10 Feb 2015 06:04:12 +0000 (06:04 +0000)]
Fix the bug (0 extension from int to int64) in ScaleARGBRowDownEven_NEON.

Reason of this bug is that ARM64 can't extend the sign bit of a 32-bit integer
to 64-bit integer automatically.
ScaleARGBRowDownEven_NEON is also enabled for ARM64.

BUG=319
TESTED=libyuv_unittest
R=fbarchard@google.com

Change-Id: Ib8d30a05156239247296aa8bb4faa94b4f69a9c3

Review URL: https://webrtc-codereview.appspot.com/32949004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1273 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoSupport odd widths for NV12 format when cropping vertically.
fbarchard@google.com [Tue, 10 Feb 2015 02:18:38 +0000 (02:18 +0000)]
Support odd widths for NV12 format when cropping vertically.
BUG=400
TESTED=CropNV12
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/39009004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1272 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agofix for odd width but even height in TestI420
fbarchard@google.com [Mon, 9 Feb 2015 21:40:27 +0000 (21:40 +0000)]
fix for odd width but even height in TestI420
BUG=400
TESTED=libyuv unittests pass locally with width of 11
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/41859004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1271 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoRemove bayer format support from libyuv. This format is very rare and used on legacy...
fbarchard@google.com [Mon, 9 Feb 2015 19:58:19 +0000 (19:58 +0000)]
Remove bayer format support from libyuv.  This format is very rare and used on legacy hardware.  Its not well optimized and has bugs related to odd widths.  Removing the format will allow tests to pass under more circumstances, run faster and allow focus on higher priority quality and performance issues.
BUG=301
TESTED=local unittests build/pass on windows gyp build.
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/38059004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1270 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoFor 32 bit x86 with fpic use memory instead of register for count
fbarchard@google.com [Sun, 8 Feb 2015 21:28:40 +0000 (21:28 +0000)]
For 32 bit x86 with fpic use memory instead of register for count
BUG=399
TESTED=try bots
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/36019004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1269 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agobuild fixe for InterpolateRow_MIPS_DSPR2
fbarchard@google.com [Sat, 7 Feb 2015 01:01:30 +0000 (01:01 +0000)]
build fixe for InterpolateRow_MIPS_DSPR2
BUG=398
TESTED=untested
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37999004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1268 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agouse the same structures for sse and avx yuv to rgb.
fbarchard@google.com [Fri, 6 Feb 2015 21:05:38 +0000 (21:05 +0000)]
use the same structures for sse and avx yuv to rgb.
BUG=396
TESTED=local build still passes on sse
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/34999004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1267 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoMake Yvu vs Yuv use same code and structure but pass in a different version of the...
fbarchard@google.com [Fri, 6 Feb 2015 00:29:08 +0000 (00:29 +0000)]
Make Yvu vs Yuv use same code and structure but pass in a different version of the matrix
BUG=396
TESTED=ncval
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/34979004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1266 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoTest YUV against reference
fbarchard@google.com [Thu, 5 Feb 2015 23:58:01 +0000 (23:58 +0000)]
Test YUV against reference
BUG=393
TESTED=TestGreyYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/33229004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1265 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoRemove ifdef __SSE2__ and native client ifdef for r14 in register usage declarations.
fbarchard@google.com [Thu, 5 Feb 2015 23:09:15 +0000 (23:09 +0000)]
Remove ifdef __SSE2__ and native client ifdef for r14 in register usage declarations.
BUG=395
TESTED=gcc build with nacl
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/34149004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1264 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoNaCL port of YToARGB for AVX2
fbarchard@google.com [Thu, 5 Feb 2015 21:32:15 +0000 (21:32 +0000)]
NaCL port of YToARGB for AVX2
BUG=393
TESTED=d:\src\nacl_sdk\pepper_canary\tools\ncval.exe newlib/Release/nacltest_x86_32.nexe
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/39829004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1263 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoport YToARGB AVX2 to GCC
fbarchard@google.com [Thu, 5 Feb 2015 20:17:27 +0000 (20:17 +0000)]
port YToARGB AVX2 to GCC
BUG=393
TESTED=untested
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/39819004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1262 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agoEnable AVX I422ToARGB for Windows.
fbarchard@google.com [Thu, 5 Feb 2015 19:41:10 +0000 (19:41 +0000)]
Enable AVX I422ToARGB for Windows.
BUG=393
TESTED=c:\intelsde\sde -ast -hsw -- out\release\libyuv_unittest.exe --gtest_catch_exceptions=0 --gtest_filter=*I422ToARGB_Opt
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/41789004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1261 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agomake histogram use 8 digits for all values for more consistent formatting.
fbarchard@google.com [Wed, 4 Feb 2015 20:00:38 +0000 (20:00 +0000)]
make histogram use 8 digits for all values for more consistent formatting.
BUG=394
TESTED=TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/34129004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1260 16f28f9a-4ce2-e073-06de-1de4eb20be90

3 weeks agochange Y multiplier and bias to compensate for 257/256 which makes YToARGB exactly...
fbarchard@google.com [Wed, 4 Feb 2015 19:45:26 +0000 (19:45 +0000)]
change Y multiplier and bias to compensate for 257/256 which makes YToARGB exactly match float math.
Histogram Before
hist            -3      -2      -1      0       1       2       3
red             0       0       1809408 13140736        1827072 0       0
green           0       0       1679912 13471329        1625975 0       0
blue            168448  994816  1876480 10655488        1893376 1006336 182272
Histogram After
hist            -3      -2      -1      0       1       2       3
red             0       0       558848  15632128        586240  0       0
green           0       0       209907  16350588        216721  0       0
blue            14848   642816  1989376 11363328        2053120 695040  18688
BUG=394
TESTED=more stringent luma tests
R=brucedawson@google.com

Review URL: https://webrtc-codereview.appspot.com/38859004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1259 16f28f9a-4ce2-e073-06de-1de4eb20be90

4 weeks agoYToARGB AVX2 port from SSE2
fbarchard@google.com [Tue, 3 Feb 2015 01:35:11 +0000 (01:35 +0000)]
YToARGB AVX2 port from SSE2
BUG=393
TESTED=YToARGB unittest
R=brucedawson@google.com, harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/41679004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1258 16f28f9a-4ce2-e073-06de-1de4eb20be90

4 weeks agouse lrintf to round from float to int instead of round and then cast.
fbarchard@google.com [Mon, 2 Feb 2015 21:06:51 +0000 (21:06 +0000)]
use lrintf to round from float to int instead of round and then cast.
BUG=393
TESTED=local windows test passed.
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37899004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1257 16f28f9a-4ce2-e073-06de-1de4eb20be90

4 weeks agoTest for YToARGB to ensure ordering of values.
fbarchard@google.com [Mon, 2 Feb 2015 18:51:29 +0000 (18:51 +0000)]
Test for YToARGB to ensure ordering of values.
BUG=393
TESTED=TestYToARGB
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37819004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1256 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoDisable YUV to ARGB AVX2 versions.
fbarchard@google.com [Tue, 27 Jan 2015 02:40:32 +0000 (02:40 +0000)]
Disable YUV to ARGB AVX2 versions.
BUG=393
TESTED=I420ToRGB*

Review URL: https://webrtc-codereview.appspot.com/35879004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1255 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoChange test to test for Arm, since all CPUs except arm provide accurate yuv conversion
fbarchard@google.com [Tue, 27 Jan 2015 00:22:10 +0000 (00:22 +0000)]
Change test to test for Arm, since all CPUs except arm provide accurate yuv conversion
BUG=392
TESTED=try bots

Review URL: https://webrtc-codereview.appspot.com/34059004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1254 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoYPixel subtract bias to match C code
fbarchard@google.com [Mon, 26 Jan 2015 23:58:20 +0000 (23:58 +0000)]
YPixel subtract bias to match C code
BUG=392
TESTED=TestGreyYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37799004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1253 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoAdd a test for YToARGB to match exactly I420ToARGB
fbarchard@google.com [Mon, 26 Jan 2015 23:22:13 +0000 (23:22 +0000)]
Add a test for YToARGB to match exactly I420ToARGB
BUG=392
TESTED=TestGreyYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/38739004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1252 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoC version of YToARGB with ubias removed to produce consistent luma ramp.
fbarchard@google.com [Mon, 26 Jan 2015 23:07:46 +0000 (23:07 +0000)]
C version of YToARGB with ubias removed to produce consistent luma ramp.
BUG=392
TESTED=TestGreyYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/35869004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1251 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoDisable YToARGB assembly which is off by 1
fbarchard@google.com [Mon, 26 Jan 2015 17:16:44 +0000 (17:16 +0000)]
Disable YToARGB assembly which is off by 1
BUG=392
TESTED=libyuvTest.YToARGB_Opt

Review URL: https://webrtc-codereview.appspot.com/40549004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1250 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoport yuv chroma improvements to gcc. YUV to RGB is more accurate using a negative...
fbarchard@google.com [Mon, 26 Jan 2015 04:35:51 +0000 (04:35 +0000)]
port yuv chroma improvements to gcc.  YUV to RGB is more accurate using a negative matrix.  2% slower but half as much error.
BUG=324
TESTED=try bots
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/41629004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1249 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoadjust ubias to minimize error histogram centering error.
fbarchard@google.com [Fri, 23 Jan 2015 22:16:33 +0000 (22:16 +0000)]
adjust ubias to minimize error histogram centering error.
BUG=324
TESTED=TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37739004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1248 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agofix for ybias on YToARGB function.
fbarchard@google.com [Fri, 23 Jan 2015 18:31:29 +0000 (18:31 +0000)]
fix for ybias on YToARGB function.
BUG=324
TESTED=libyuvTest.YToARGB_Any
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/36939004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1247 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoChange YUV to RGB to subtract the chroma contributions from the bias.
fbarchard@google.com [Fri, 23 Jan 2015 04:22:35 +0000 (04:22 +0000)]
Change YUV to RGB to subtract the chroma contributions from the bias.
BUG=324
TESTED=win64 build and TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/33999004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1246 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoadjust bias on Y channel so error histogram is better centered on green channel
fbarchard@google.com [Thu, 22 Jan 2015 19:43:34 +0000 (19:43 +0000)]
adjust bias on Y channel so error histogram is better centered on green channel
BUG=324
TESTED=FullYUVTest
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/38689004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1245 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoprint min max error per channel
fbarchard@google.com [Thu, 22 Jan 2015 18:27:29 +0000 (18:27 +0000)]
print min max error per channel
BUG=324
TESTED=TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/40499004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1244 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoxmm4 is unused - remove from NV21
fbarchard@google.com [Thu, 22 Jan 2015 18:17:44 +0000 (18:17 +0000)]
xmm4 is unused - remove from NV21
BUG=324
TESTED=untested
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/40489004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1243 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agomake 'full' test do multiples of 3 which includes 0 and 255.
fbarchard@google.com [Wed, 21 Jan 2015 22:41:58 +0000 (22:41 +0000)]
make 'full' test do multiples of 3 which includes 0 and 255.
BUG=324
TESTED=libyuvTest.TestFullYUV
R=brucedawson@google.com

Review URL: https://webrtc-codereview.appspot.com/35829004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1242 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoRemove integer prototype YUV conversion code from tests.
fbarchard@google.com [Wed, 21 Jan 2015 20:08:25 +0000 (20:08 +0000)]
Remove integer prototype YUV conversion code from tests.
BUG=324
TESTED=local tests still build/pass.
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37709004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1241 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agowhen using high accuracy YUV have tighter tolerances.
fbarchard@google.com [Wed, 21 Jan 2015 19:48:21 +0000 (19:48 +0000)]
when using high accuracy YUV have tighter tolerances.
BUG=324
TESTED=TestI420
R=brucedawson@google.com

Review URL: https://webrtc-codereview.appspot.com/39609004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1240 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoAllow C and ASM to be different for I420 for now.
fbarchard@google.com [Wed, 21 Jan 2015 19:24:01 +0000 (19:24 +0000)]
Allow C and ASM to be different for I420 for now.
BUG=324
TESTED=TestI420
R=brucedawson@google.com

Review URL: https://webrtc-codereview.appspot.com/39599004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1239 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoCompute chroma using negative coefficients to extend range of U contribution on B...
fbarchard@google.com [Wed, 21 Jan 2015 18:45:13 +0000 (18:45 +0000)]
Compute chroma using negative coefficients to extend range of U contribution on B to 2
BUG=324
TESTED=TestI420
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/41569004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1238 16f28f9a-4ce2-e073-06de-1de4eb20be90

5 weeks agoMore accurate tests when running improved luma/chroma accuracy code.
fbarchard@google.com [Wed, 21 Jan 2015 18:42:16 +0000 (18:42 +0000)]
More accurate tests when running improved luma/chroma accuracy code.
BUG=324
TESTED=TestYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/39589004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1237 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agoport YUV luma accuracy to posix
fbarchard@google.com [Wed, 21 Jan 2015 00:36:30 +0000 (00:36 +0000)]
port YUV luma accuracy to posix
BUG=324
TESTED=try bots
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/33049004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1236 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agoYUV use same constant as asm then multiply by 0x0101 to replicate the value.
fbarchard@google.com [Wed, 21 Jan 2015 00:11:44 +0000 (00:11 +0000)]
YUV use same constant as asm then multiply by 0x0101 to replicate the value.
BUG=324
TESTED=try bots
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/41559004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1235 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agoadd an exhaustic yuv color space test, and relax yuv conversion results to allow...
fbarchard@google.com [Tue, 20 Jan 2015 23:48:21 +0000 (23:48 +0000)]
add an exhaustic yuv color space test, and relax yuv conversion results to allow for future change.
BUG=324
TESTED=TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37689004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1234 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agoImprove accuracy of luma channel in YUV to RGB conversion
fbarchard@google.com [Tue, 20 Jan 2015 23:42:15 +0000 (23:42 +0000)]
Improve accuracy of luma channel in YUV to RGB conversion
BUG=324
TESTED=TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/36859004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1233 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agoprototype of a YUV to RGB function to achieve higher quality and performance at the...
fbarchard@google.com [Tue, 20 Jan 2015 18:21:16 +0000 (18:21 +0000)]
prototype of a YUV to RGB function to achieve higher quality and performance at the same time.  The chroma is made more accurate by using negative values that allow more range and then subtract the contributions from the luma contributes.  The luma is made more accurate using a multiply that duplicates the Y bits out to 16 bits and then does a 2.14 bit fixed point coefficient.  The replication is done for free as part of the multiply.
BUG=391
TESTED=TestYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/36819004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1232 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agoTests the full range of Y
fbarchard@google.com [Fri, 16 Jan 2015 02:23:19 +0000 (02:23 +0000)]
Tests the full range of Y
BUG=391
TESTED=TestYUV
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/36809004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1231 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agomath header needed on osx version.
fbarchard@google.com [Thu, 15 Jan 2015 21:53:52 +0000 (21:53 +0000)]
math header needed on osx version.
BUG=391
TESTED=try bots
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/39529004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1230 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agoTest color space against a reference function.
fbarchard@google.com [Thu, 15 Jan 2015 18:17:53 +0000 (18:17 +0000)]
Test color space against a reference function.
BUG=none
TESTED=TestYUV
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/35789004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1229 16f28f9a-4ce2-e073-06de-1de4eb20be90

6 weeks agoAdd J422 support which is 2x1 subsampling with jpeg color space.
fbarchard@google.com [Wed, 14 Jan 2015 19:16:01 +0000 (19:16 +0000)]
Add J422 support which is 2x1 subsampling with jpeg color space.
BUG=391
TESTED=color_test
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/41479004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1228 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 weeks agoMove color space tests into its own source file.
fbarchard@google.com [Tue, 13 Jan 2015 23:47:25 +0000 (23:47 +0000)]
Move color space tests into its own source file.
BUG=391
TESTED=TestI420
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/35769004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1227 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 weeks agoTest J420 conversion to and from ARGB has low absolute difference.
fbarchard@google.com [Tue, 13 Jan 2015 19:53:15 +0000 (19:53 +0000)]
Test J420 conversion to and from ARGB has low absolute difference.
BUG=none
TESTED=TestJ420
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/34739004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1225 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 weeks agoConvert to and from J420 to test absolute conversion error.
fbarchard@google.com [Tue, 13 Jan 2015 18:58:17 +0000 (18:58 +0000)]
Convert to and from J420 to test absolute conversion error.
BUG=241
TESTED=TestJ420
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/36729004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1224 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 weeks agoRoll chromium deps to match webrtc. chromium builds in older deps didnt support...
fbarchard@google.com [Mon, 12 Jan 2015 18:13:06 +0000 (18:13 +0000)]
Roll chromium deps to match webrtc.  chromium builds in older deps didnt support xcode 6.  This roll updates to a newer version to address the issue.
BUG=370
TESTED=try bots
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/36709004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1223 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 weeks agoChange rectangle low level functions to use more conventional row functions including...
fbarchard@google.com [Mon, 12 Jan 2015 03:58:24 +0000 (03:58 +0000)]
Change rectangle low level functions to use more conventional row functions including 'any' variations.  Previously the yuv function SetPlane stored 32 bit values. Now a more conventional memset() style function is used for YUV that stores bytes.  On Haswell a rep stosb is used for YUV.  Overall benefit of this CL is improved performance for 'any' width, and simpler row assembly instead of full image assembly.  Previously ARGBRect used a low level function that supported a rectangle in assembly.  Now it uses a row function, and relies on row coalesce to combine into a single low level call.
BUG=371
TESTED=untested
R=brucedawson@google.com, harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/35689004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1222 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 weeks agoFix for build on 32 bit neon
fbarchard@google.com [Fri, 9 Jan 2015 17:40:56 +0000 (17:40 +0000)]
Fix for build on 32 bit neon
BUG=none
TESTED=nacl neon build
R=harryjin@google.com, tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/34659004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1221 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 weeks agoNeon version of new SetRow functions for rectangles.
fbarchard@google.com [Fri, 9 Jan 2015 00:15:44 +0000 (00:15 +0000)]
Neon version of new SetRow functions for rectangles.
BUG=387
TESTED=untested
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/39449004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1220 16f28f9a-4ce2-e073-06de-1de4eb20be90

7 weeks agoSupport invert for ARGBRect and SetPlane
fbarchard@google.com [Wed, 7 Jan 2015 19:02:01 +0000 (19:02 +0000)]
Support invert for ARGBRect and SetPlane
BUG=387
TESTED=ARGBRect_Invert
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37539004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1219 16f28f9a-4ce2-e073-06de-1de4eb20be90

8 weeks agoUse HAS_ARGBSETROWS_X86 to detect presence of function.
fbarchard@google.com [Wed, 7 Jan 2015 00:11:51 +0000 (00:11 +0000)]
Use HAS_ARGBSETROWS_X86 to detect presence of function.
BUG=none
TESTED=rectangle unittests
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/35639004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1218 16f28f9a-4ce2-e073-06de-1de4eb20be90

8 weeks agoAdd tests for ARGBRect and SetPlane. Remove comment to test Neon shuffle and Setrows...
fbarchard@google.com [Tue, 6 Jan 2015 22:27:35 +0000 (22:27 +0000)]
Add tests for ARGBRect and SetPlane.  Remove comment to test Neon shuffle and Setrows for Neon.
BUG=387
TESTED=libyuvTest.ARGBRect_Opt and libyuvTest.SetPlane_Opt
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/35589004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1217 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoRemove sub 16 from yuv conversions and change bias to include it.
fbarchard@google.com [Wed, 31 Dec 2014 01:07:02 +0000 (01:07 +0000)]
Remove sub 16 from yuv conversions and change bias to include it.
BUG=388
TESTED=out\release\libyuv_unittest --gtest_catch_exceptions=0 --gtest_filter=*420ToARGB_Opt  | sortms
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/34609004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1216 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoSyntax fix for change 24 bit conversions to use single asm block instead of 2, but...
fbarchard@google.com [Tue, 30 Dec 2014 22:26:10 +0000 (22:26 +0000)]
Syntax fix for change 24 bit conversions to use single asm block instead of 2, but with memory counter
BUG=389, 378
TESTED=out\release\libyuv_unittest --gtest_catch_exceptions=0 --gtest_filter=*420ToRGB24_Opt | sortms
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/39399004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1215 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoChange 24 bit conversions to use single asm block instead of 2, but with memory counter
fbarchard@google.com [Tue, 30 Dec 2014 21:35:35 +0000 (21:35 +0000)]
Change 24 bit conversions to use single asm block instead of 2, but with memory counter
BUG=389,378
TESTED=out\release\libyuv_unittest --gtest_catch_exceptions=0 --gtest_filter=*420ToRGB24_Opt | sortms
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/29359004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1214 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoUse post bias to adjust for Y - 16 to improve performance.
fbarchard@google.com [Tue, 30 Dec 2014 00:02:06 +0000 (00:02 +0000)]
Use post bias to adjust for Y - 16 to improve performance.
BUG=388
TESTED=set LIBYUV_DISABLE_ASM=1 out\release\libyuv_unittest --gtest_catch_exceptions=0 --gtest_filter=*I420ToARGB_Opt
R=brucedawson@google.com, harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/35609004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1213 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoJ420ToARGB jpeg variation of YUV color space to ARGB.
fbarchard@google.com [Mon, 29 Dec 2014 19:17:53 +0000 (19:17 +0000)]
J420ToARGB jpeg variation of YUV color space to ARGB.
BUG=241
TESTED=J420ToARGB unittest
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/32929004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1212 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoFix the bug in ARGBColorMatrixRow_NEON
yang.zhang@arm.com [Fri, 19 Dec 2014 08:09:04 +0000 (08:09 +0000)]
Fix the bug in ARGBColorMatrixRow_NEON

BUG=371
TESTED=libyuv_unittest and test case written by myself
R=fbarchard@google.com

Change-Id: I652dc23e4be75bd51d15a8a7f9d023594c9cd032

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1211 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoPass neon option to compiler, not assembler, so ifdefs will work.
fbarchard@google.com [Thu, 18 Dec 2014 17:24:48 +0000 (17:24 +0000)]
Pass neon option to compiler, not assembler, so ifdefs will work.
BUG=371
TESTED=locally tested by arm
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/32879004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1210 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoDisable color matrix neon code that fails unittests.
fbarchard@google.com [Thu, 18 Dec 2014 01:49:19 +0000 (01:49 +0000)]
Disable color matrix neon code that fails unittests.
BUG=371
TESTED=locally tested by arm
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/37439004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1209 16f28f9a-4ce2-e073-06de-1de4eb20be90

2 months agoPort I422ToBGRA from Windows version that does 16 pixels at a time, for performance...
fbarchard@google.com [Tue, 16 Dec 2014 23:56:04 +0000 (23:56 +0000)]
Port I422ToBGRA from Windows version that does 16 pixels at a time, for performance improvement.
BUG=386
TESTED=nacl build
R=brucedawson@google.com, harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/36549004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1207 16f28f9a-4ce2-e073-06de-1de4eb20be90