external/libyuv.git
6 hours agoAdd a gyp define LIBYUV_DISABLE_JPEG to not build jpeg library master
fbarchard@google.com [Mon, 28 Jul 2014 21:48:43 +0000 (21:48 +0000)]
Add a gyp define LIBYUV_DISABLE_JPEG to not build jpeg library
BUG=346
TESTED=set GYP_DEFINES=target_arch=ia32 libyuv_disable_jpeg=1 & python gyp_libyuv -fninja -G msvs_version=2010 libyuv_test.gyp
R=harryjin@google.com

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

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

10 days agoredo nv12 crop unittest with expect eq
fbarchard@google.com [Fri, 18 Jul 2014 22:34:04 +0000 (22:34 +0000)]
redo nv12 crop unittest with expect eq
BUG=334
TESTED=crop
R=tpsiaki@google.com

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

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

10 days agoAdd NV12 cropping unittest to confirm behavior.
fbarchard@google.com [Fri, 18 Jul 2014 18:18:35 +0000 (18:18 +0000)]
Add NV12 cropping unittest to confirm behavior.
BUG=344
TESTED=libyuv_unittest --gtest_filter=*CropNV12
R=tpsiaki@google.com

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

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

2 weeks agoCheck number of functions available to cpuid before fetching function 7 results.
fbarchard@google.com [Mon, 14 Jul 2014 17:48:35 +0000 (17:48 +0000)]
Check number of functions available to cpuid before fetching function 7 results.
BUG=343
TESTED=local test on Windows.
R=brettw@chromium.org, tpsiaki@google.com

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

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

2 weeks agoDetect clang-cl compiler and disable assembly for now.
fbarchard@google.com [Wed, 9 Jul 2014 17:55:23 +0000 (17:55 +0000)]
Detect clang-cl compiler and disable assembly for now.
BUG=341
TESTED=clang-cl /W0 -c -Iinclude source/cpu_id.c
R=harryjin@google.com, rnk@chromium.org

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

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

2 weeks agoremove extern "C" from rotate function, since its built with extern "C" around full...
fbarchard@google.com [Tue, 8 Jul 2014 22:06:56 +0000 (22:06 +0000)]
remove extern "C" from rotate function, since its built with extern "C" around full file.
BUG=341
TESTED=clang -c -Iinclude source/rotate.c
R=harryjin@google.com

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

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

2 weeks agoPort conversion functions to c.
fbarchard@google.com [Tue, 8 Jul 2014 18:44:57 +0000 (18:44 +0000)]
Port conversion functions to c.
BUG=303
TESTED=cl /c /TC /Iinclude source\convert_from.cc source\convert_argb.cc source\convert_from_argb.cc
R=harryjin@google.com

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

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

3 weeks agoconvert source ported to c89.
fbarchard@google.com [Mon, 7 Jul 2014 19:05:45 +0000 (19:05 +0000)]
convert source ported to c89.
BUG=303
TESTED=cl /c /TC /Iinclude source/convert.cc
R=harryjin@google.com

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

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

3 weeks agoDisable assembly optimizations in MemorySanitizer builds.
kjellander@google.com [Thu, 3 Jul 2014 18:39:32 +0000 (18:39 +0000)]
Disable assembly optimizations in MemorySanitizer builds.

BUG=chromium:344505, chromium:373739
R=kjellander@google.com, mflodman@chromium.org

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

Patch from Sergey Matveev <earthdok@chromium.org>.

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

3 weeks agoRoll chromium_revision 274825:280149 to fix GN
kjellander@google.com [Thu, 3 Jul 2014 08:00:03 +0000 (08:00 +0000)]
Roll chromium_revision 274825:280149 to fix GN

Due to http://crbug.com/389883 GN currently doesn't execute
unless the top folder is named 'src'.

To work around this, perform the following changes to a
checkout that currently has "trunk" as the root folder:
1. Rename trunk -> src
2. Remove .gclient_entries file (will be re-created)
3. Edit .gclient and:
  * set the name of the solution to "src"
  * add/change the custom_vars dict for the solution to
    have a key like this:
    "custom_vars" : {
      "root_dir" : "src",
    },
4. Run gclient sync

The buildbots already have this done and gets a "src"
dir for their checkouts.

I also workaround some recent changes for sanitizer tools
and add a copy of Chromium's tsan_suppressions.cc to prepare
for TSan v2 (since v1 that libyuv is currently using is
deprecated and should be removed).

BUG=libyuv:338
TEST=Currently working trybot passing + local compile on Linux in
Debug,Release and with ASan+TSan v2 using:
GYP_DEFINES="asan=1 release_extra_cflags=-g use_allocator=none" ./gyp_libyuv && ninja -C out/Release
GYP_DEFINES="tsan=1 release_extra_cflags=-g use_allocator=none" ./gyp_libyuv && ninja -C out/Release
R=fbarchard@google.com

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

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

3 weeks agoShow jpeg as an option for psnr tool if enabled
fbarchard@google.com [Tue, 1 Jul 2014 21:49:40 +0000 (21:49 +0000)]
Show jpeg as an option for psnr tool if enabled
BUG=339
TESTED=psnr
R=harryjin@google.com

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

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

4 weeks agoadd symbols for ios unittests
fbarchard@google.com [Thu, 26 Jun 2014 22:52:35 +0000 (22:52 +0000)]
add symbols for ios unittests
BUG=none
TEST=none
R=harryjin@google.com

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

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

4 weeks agolint fixes for psnr
fbarchard@google.com [Thu, 26 Jun 2014 22:47:01 +0000 (22:47 +0000)]
lint fixes for psnr
BUG=339
TESTED=lint
R=harryjin@google.com

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

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

4 weeks agojpeg psnr avoid duplicates with libyuv by checking HAVE_JPEG
fbarchard@google.com [Thu, 26 Jun 2014 21:55:38 +0000 (21:55 +0000)]
jpeg psnr avoid duplicates with libyuv by checking HAVE_JPEG
BUG=339
TESTED=local psnr test
R=harryjin@google.com

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

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

4 weeks agomove Calc functions for psnr into header to avoid duplicate links.
fbarchard@google.com [Thu, 26 Jun 2014 17:59:19 +0000 (17:59 +0000)]
move Calc functions for psnr into header to avoid duplicate links.
BUG=339
TESTED=gyp build
R=harryjin@google.com

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

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

4 weeks agopsnr tool accept jpeg files as well as raw YUV
fbarchard@google.com [Wed, 25 Jun 2014 16:54:20 +0000 (16:54 +0000)]
psnr tool accept jpeg files as well as raw YUV
BUG=339
TESTED=psnr.exe feet.jpg bluechicken.jpg
R=harryjin@google.com

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

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

4 weeks agoonly enable mips assembly for old 32 bit abi. new 32 bit abi and 64 bit bit able...
fbarchard@google.com [Tue, 24 Jun 2014 23:40:52 +0000 (23:40 +0000)]
only enable mips assembly for old 32 bit abi.  new 32 bit abi and 64 bit bit able remove t4 to t7 and add a4 to a7
BUG=337
TESTED=untested
R=tpsiaki@google.com

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

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

4 weeks agoAdd nacl version check to enable Neon on M37 and bundles for X86 on M33
fbarchard@google.com [Tue, 24 Jun 2014 22:26:30 +0000 (22:26 +0000)]
Add nacl version check to enable Neon on M37 and bundles for X86 on M33
BUG=333
TESTED=nacl build and validate
R=tpsiaki@google.com

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

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

4 weeks agoPort I420ToARGB to intrinsics for win64
fbarchard@google.com [Tue, 24 Jun 2014 20:45:45 +0000 (20:45 +0000)]
Port I420ToARGB to intrinsics for win64
BUG=336
TESTED=out\release_x64\libyuv_unittest --gunit_also_run_disabled_tests --gtest_filter=*I420To*B*
R=bryan.bernhart@intel.com, tpsiaki@google.com

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

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

5 weeks agoAdd some more bic's for scale nacl code
fbarchard@google.com [Tue, 17 Jun 2014 23:12:55 +0000 (23:12 +0000)]
Add some more bic's for scale nacl code
BUG=333
TESTED=ncval
R=thorcarpenter@google.com

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

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

5 weeks agoport neon to arm64. the register names have changes from r0 to w0 or x0 depending...
fbarchard@google.com [Tue, 17 Jun 2014 18:16:29 +0000 (18:16 +0000)]
port neon to arm64. the register names have changes from r0 to w0 or x0 depending on size.  Passing them as parameters (e.g. %0) makes the code register name agnostic.
BUG=333
TESTED=32 bit build still works.
R=nfullagar@chromium.org

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

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

6 weeks agoscale neon nacl port
fbarchard@google.com [Mon, 16 Jun 2014 17:09:48 +0000 (17:09 +0000)]
scale neon nacl port
BUG=333
TESTED=ncval
R=tpsiaki@google.com

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

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

6 weeks agorotate neon code port to nacl
fbarchard@google.com [Fri, 13 Jun 2014 23:02:10 +0000 (23:02 +0000)]
rotate neon code port to nacl
BUG=333
TESTED=ncval
R=tpsiaki@google.com

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

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

6 weeks agoAdd bic instructions before each load or store for nacl
fbarchard@google.com [Fri, 13 Jun 2014 17:20:52 +0000 (17:20 +0000)]
Add bic instructions before each load or store for nacl
BUG=333
TESTED=validator
R=jfb@chromium.org

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

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

6 weeks agoMEMACCESS macro for NaCL Arm
fbarchard@google.com [Thu, 12 Jun 2014 00:19:38 +0000 (00:19 +0000)]
MEMACCESS macro for NaCL Arm
BUG=333
TESTED=validator passes
R=jfb@chromium.org, tpsiaki@google.com

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

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

6 weeks agocheck copy has different address. If same, skip the copy to avoid valgrind error.
fbarchard@google.com [Wed, 11 Jun 2014 00:16:59 +0000 (00:16 +0000)]
check copy has different address.  If same, skip the copy to avoid valgrind error.
BUG=334
TESTED=unittests still pass
R=tpsiaki@google.com

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

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

6 weeks agobump chromium revision to 274825 - last known good release.
fbarchard@google.com [Wed, 11 Jun 2014 00:01:40 +0000 (00:01 +0000)]
bump chromium revision to 274825 - last known good release.
BUG=none
TESTED=try bots
R=tpsiaki@google.com

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

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

7 weeks agotest conversions that are reversible.
fbarchard@google.com [Wed, 4 Jun 2014 23:19:37 +0000 (23:19 +0000)]
test conversions that are reversible.
BUG=334
TESTED=unittests added to test functionality that is reversible.
R=sandersd@chromium.org

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

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

8 weeks agoAdd ARGBToABGR and ARGBToBGRA as actual functions instead of macros.
fbarchard@google.com [Mon, 2 Jun 2014 19:24:57 +0000 (19:24 +0000)]
Add ARGBToABGR and ARGBToBGRA as actual functions instead of macros.
BUG=334
TESTED=libyuv unittests pass
R=tpsiaki@google.com

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

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

2 months agoenable neon in build.gn
fbarchard@google.com [Fri, 23 May 2014 22:30:57 +0000 (22:30 +0000)]
enable neon in build.gn
BUG=none
TESTED=untested
R=tpsiaki@google.com

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

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

2 months agoPort libyuv neon to nacl - compare
fbarchard@google.com [Wed, 21 May 2014 19:04:15 +0000 (19:04 +0000)]
Port libyuv neon to nacl - compare
BUG=333
TESTED=d:\src\nacl_sdk\pepper_canary\tools\ncval.exe newlib/Release/nacltest_arm.nexe
R=nfullagar@chromium.org

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

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

2 months agoYUV scaling with 16 bit planes
fbarchard@google.com [Tue, 20 May 2014 19:22:30 +0000 (19:22 +0000)]
YUV scaling with 16 bit planes
BUG=331
TESTED=libyuv_unittest --gunit_also_run_disabled_tests --gtest_filter=**.ScaleFrom1280x720*
R=debargha@google.com, tpsiaki@google.com

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

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

2 months agochanges to accommodate libjpeg 9 interface.
fbarchard@google.com [Tue, 13 May 2014 19:00:01 +0000 (19:00 +0000)]
changes to accommodate libjpeg 9 interface.
BUG=327
TESTED=untested
R=tpsiaki@google.com

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

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

3 months agoColor Matrix on Arm use C version. Unittest is failing on iphone5s, so disable Neon...
fbarchard@google.com [Fri, 25 Apr 2014 22:07:01 +0000 (22:07 +0000)]
Color Matrix on Arm use C version.  Unittest is failing on iphone5s, so disable Neon for until investigated.
BUG=326
TESTED=untested
R=thorcarpenter@google.com

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

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

3 months agoRoll chromium_revision 260824:262938 + fix binutils. Since it's not possible to...
fbarchard@google.com [Fri, 11 Apr 2014 23:40:41 +0000 (23:40 +0000)]
Roll chromium_revision 260824:262938 + fix binutils.  Since it's not possible to have platform-specific hooks executing, binutils must be downloaded for all platforms in order for the download.py hook to execute properly on non-unix platforms.
BUG=323
TESTED=gclient sync
R=tpsiaki@google.com

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

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

3 months agoUpdate the gold location (third_party/libyuv).
fbarchard@google.com [Thu, 10 Apr 2014 18:13:35 +0000 (18:13 +0000)]
Update the gold location (third_party/libyuv).

chromium have replaced third_party/gold with a full copy of binutils at
third_party/binutils. It gets downloaded and extracted to
third_party/binutils/Linux_(x64|ia32)/Release as part of DEPs/gclient hooks
process.

We are now trying to remove third_party/gold.

BUG=chromium:362119
R=mithro@mithis.com

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

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

3 months agoChange r9 to a parameter which will map to x9 for arm64.
fbarchard@google.com [Thu, 3 Apr 2014 18:37:32 +0000 (18:37 +0000)]
Change r9 to a parameter which will map to x9 for arm64.
BUG=319
TESTED=untested
R=thorcarpenter@google.com, tpsiaki@google.com

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

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

3 months agoFix DEPS and gyp_libyuv for chromium roll in r996
kjellander@google.com [Wed, 2 Apr 2014 18:01:51 +0000 (18:01 +0000)]
Fix DEPS and gyp_libyuv for chromium roll in r996

The roll in r996 requires some additional changes in order
to make the GYP generation script to run properly.

BUG=none
TESTED=trybots passing.
R=fbarchard@google.com

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

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

3 months agoBump chromium deps to 260824 which is lkgr for improved mobile support.
fbarchard@google.com [Wed, 2 Apr 2014 01:10:02 +0000 (01:10 +0000)]
Bump chromium deps to 260824 which is lkgr for improved mobile support.
BUG=none
TESTED=try bots
R=tpsiaki@google.com

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

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

4 months agoarm64 initial port using C
fbarchard@google.com [Sat, 29 Mar 2014 00:19:06 +0000 (00:19 +0000)]
arm64 initial port using C
BUG=319
TESTED=GYP_DEFINES="OS=ios target_arch=armv7 target_subarch=64" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_ios" ./build/gyp_chromium -f ninja --depth=. libyuv_test.gyp  && ninja -j7 -C out_ios/Debug-iphoneos
R=tpsiaki@google.com

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

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

4 months agoRevert accidental checkin in r992
kjellander@google.com [Fri, 28 Mar 2014 19:40:39 +0000 (19:40 +0000)]
Revert accidental checkin in r992

I dunno how this happened, since that file belonged
to a another gcl change that I use to test the trybots.

TBR=fbarchard@google.com

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

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

4 months agoMinor fixes to gyp_libyuv.py
kjellander@google.com [Fri, 28 Mar 2014 19:38:05 +0000 (19:38 +0000)]
Minor fixes to gyp_libyuv.py

Fixed invalid references left from
the copied gyp_webrtc.

This CL will also add svn:ignore on a
bunch of directories to speed up builds
(less unnecessary delete + redownload).

It also adds the executable bit to
gyp_libyuv.

R=fbarchard@google.com

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

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

4 months agoUpdate libyuv build toolchain.
fbarchard@google.com [Fri, 28 Mar 2014 17:26:06 +0000 (17:26 +0000)]
Update libyuv build toolchain.

Download and use GN similar to how WebRTC uses it
for GYP/ninja generation
Similar changes as done in
https://webrtc-codereview.appspot.com/6939004

Add support for VS2013 compilation using the
Chromium standalone toolchain. Similar changes:
https://webrtc-codereview.appspot.com/9769004

Fix the valgrind wrapper script similar to
https://webrtc-codereview.appspot.com/5589006
https://webrtc-codereview.appspot.com/6939004

Remove no longer needed cygwin mount hook.

TEST=All trybots except iOS are passing.
Those will have to be fixed in a future CL.
BUG=310
TESTED=gclient sync on osx/ios
R=tpsiaki@google.com

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

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

4 months agoPort format_conversion (bayer) to C
fbarchard@google.com [Wed, 26 Mar 2014 17:29:20 +0000 (17:29 +0000)]
Port format_conversion (bayer) to C
BUG=303
TESTED=cl /c /TC /Iinclude source/format_conversion.cc
R=tpsiaki@google.com

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

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

4 months agoRoll chromium dependency to r255773
fbarchard@google.com [Wed, 26 Mar 2014 02:08:51 +0000 (02:08 +0000)]
Roll chromium dependency to r255773
BUG=none
TESTED=try bots
R=wuwang@google.com

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

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

4 months agoFix C89 compile error for cpu detect. Make mips detection assume DSP if cpuinfo...
fbarchard@google.com [Mon, 24 Mar 2014 18:24:22 +0000 (18:24 +0000)]
Fix C89 compile error for cpu detect.  Make mips detection assume DSP if cpuinfo file can not be opened, so that if run in a sandbox, DSP is assumed true, like the arm version.
BUG=303
TESTED=cl /c /TC /Iinclude source/cpu_id.cc
R=tpsiaki@google.com

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

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

4 months agoWarning fix for implicite cast in scaling from int64 to int.
fbarchard@google.com [Tue, 18 Mar 2014 22:23:15 +0000 (22:23 +0000)]
Warning fix for implicite cast in scaling from int64 to int.
BUG=none
TESTED=local visual c build
R=tpsiaki@google.com

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

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

4 months agoARGBScale down bilinear clip to edge of image to avoid overread.
fbarchard@google.com [Tue, 18 Mar 2014 21:39:42 +0000 (21:39 +0000)]
ARGBScale down bilinear clip to edge of image to avoid overread.
BUG=317
TESTED=drmemory out\debug\libyuv_unittest.exe --gtest_catch_exceptions=0 --gtest_filter=*ARGBScale*
R=tpsiaki@google.com

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

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

4 months agoMore wordy comments about Neon
fbarchard@google.com [Sat, 8 Mar 2014 00:23:04 +0000 (00:23 +0000)]
More wordy comments about Neon
BUG=315
TESTED=untested
R=wuwang@google.com

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

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

4 months agounittest first checks if files exists for neon detection.
fbarchard@google.com [Fri, 7 Mar 2014 23:22:24 +0000 (23:22 +0000)]
unittest first checks if files exists for neon detection.
BUG=315
TESTED=untested
R=nfullagar@chromium.org, wuwang@google.com

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

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

4 months agoIf libyuv built with Neon, assume Neon is present on CPU.
fbarchard@google.com [Fri, 7 Mar 2014 21:17:24 +0000 (21:17 +0000)]
If libyuv built with Neon, assume Neon is present on CPU.
BUG=315
TESTED=untested
R=nfullagar@chromium.org

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

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

5 months agofor ios enable neon for arm but not ia32 which is simulator.
fbarchard@google.com [Thu, 6 Feb 2014 00:21:35 +0000 (00:21 +0000)]
for ios enable neon for arm but not ia32 which is simulator.
BUG=308
TESTED=try bots
R=noahric@google.com

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

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

5 months agoclang compatibility ifdef
fbarchard@google.com [Fri, 31 Jan 2014 00:27:40 +0000 (00:27 +0000)]
clang compatibility ifdef
BUG=none
TEST=none
R=tpsiaki@google.com

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

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

5 months agoSwitch to CXX for linux.mk
fbarchard@google.com [Tue, 28 Jan 2014 22:05:36 +0000 (22:05 +0000)]
Switch to CXX for linux.mk
BUG=none
TESTED=untested
R=tpsiaki@google.com

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

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

5 months agolibyuv::MJPGToI420() and libyuv::MJPGToARGB() return failure if callback to JPeg...
fbarchard@google.com [Tue, 28 Jan 2014 03:08:59 +0000 (03:08 +0000)]
libyuv::MJPGToI420() and libyuv::MJPGToARGB() return failure if callback to JPeg fails.
BUG=309
TESTED=try bots still pass
R=braveyao@webrtc.org

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

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

6 months agoAllow system jpeg to be used instead of libjpeg_turbo.
fbarchard@google.com [Sat, 18 Jan 2014 02:07:16 +0000 (02:07 +0000)]
Allow system jpeg to be used instead of libjpeg_turbo.
BUG=56
TESTED=untested
R=tpsiaki@google.com

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

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

6 months agoscale port to c. completes all scaling functions.
fbarchard@google.com [Sat, 18 Jan 2014 01:30:58 +0000 (01:30 +0000)]
scale port to c.  completes all scaling functions.
BUG=303
TESTED=cl /c /TC /Iinclude source/scale.cc
R=tpsiaki@google.com

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

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

6 months agoFix neon builds for ios. libyuv_neon macro is not applicable to neon. its only...
fbarchard@google.com [Wed, 15 Jan 2014 03:15:55 +0000 (03:15 +0000)]
Fix neon builds for ios.  libyuv_neon macro is not applicable to neon.  its only needed for arm code that is not neon but will link to neon.
BUG=308
TESTED=try bots
R=jzern@chromium.org

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

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

6 months agoARGB Scale ported to C
fbarchard@google.com [Wed, 15 Jan 2014 02:25:15 +0000 (02:25 +0000)]
ARGB Scale ported to C
BUG=303
TESTED=cl /c /TC /Iinclude source/scale_argb.cc
R=tpsiaki@google.com

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

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

6 months agouse arm only to determine if neon should be build
fbarchard@google.com [Tue, 14 Jan 2014 01:48:47 +0000 (01:48 +0000)]
use arm only to determine if neon should be build
BUG=307
TESTED=try bots
R=yfriedman@chromium.org

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

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

6 months agocheck target arch is arm for neon code on android
fbarchard@google.com [Tue, 14 Jan 2014 01:23:51 +0000 (01:23 +0000)]
check target arch is arm for neon code on android
BUG=307
TESTED=untested
R=michaelbai@chromium.org, noahric@chromium.org, yfriedman@chromium.org

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

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

6 months agoCompile libyuv for PNaCl.
sergeyu@google.com [Tue, 14 Jan 2014 01:01:19 +0000 (01:01 +0000)]
Compile libyuv for PNaCl.

New target libyuv_untrusted compiles libyuv for PNaCl.

BUG=276739
R=fbarchard@google.com

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

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

6 months agoDetect pnacl and disable x86 specific code.
fbarchard@google.com [Tue, 14 Jan 2014 00:36:31 +0000 (00:36 +0000)]
Detect pnacl and disable x86 specific code.
BUG=none
TESTED=untested
R=ryanpetrie@google.com

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

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

6 months agoAdd extern c around jpeg header
fbarchard@google.com [Mon, 13 Jan 2014 19:43:43 +0000 (19:43 +0000)]
Add extern c around jpeg header
BUG=305
TESTED=try bots
R=michaelbai@chromium.org

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

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

6 months agoPort compare to C89 / Visual C.
fbarchard@google.com [Mon, 13 Jan 2014 18:57:30 +0000 (18:57 +0000)]
Port compare to C89 / Visual C.
BUG=303
TESTED=cl /c /TC /Iinclude source/compare.cc
R=tpsiaki@google.com

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

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

6 months agoPlanarfunctions (mainly effects) converted to C89/VisualC.
fbarchard@google.com [Mon, 13 Jan 2014 18:56:25 +0000 (18:56 +0000)]
Planarfunctions (mainly effects) converted to C89/VisualC.
BUG=303
TESTED=cl /c /TC /Iinclude source/planar_functions.cc
R=tpsiaki@google.com

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

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

6 months agoConversion functions ported to C89 / Visual C.
fbarchard@google.com [Mon, 13 Jan 2014 18:32:37 +0000 (18:32 +0000)]
Conversion functions ported to C89 / Visual C.
BUG=303
TESTED=cl /c /TC /Iinclude source/convert_to_argb.cc
R=tpsiaki@google.com

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

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

6 months agoRotate functions ported to C. This completes all rotate functionality under c89...
fbarchard@google.com [Mon, 13 Jan 2014 18:31:35 +0000 (18:31 +0000)]
Rotate functions ported to C.  This completes all rotate functionality under c89, for overall 71% complete port.
BUG=303
TESTED=cl /c /TC /Iinclude source/rotate_argb.cc
R=tpsiaki@google.com

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

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

6 months agoPort scale to C moving variable definitions to top of functions.
fbarchard@google.com [Sat, 11 Jan 2014 04:59:01 +0000 (04:59 +0000)]
Port scale to C moving variable definitions to top of functions.
BUG=303
TESTED=gyp builds still build/pass.
R=tpsiaki@google.com

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

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

6 months agocommon functions (c row functions) ported to C89.
fbarchard@google.com [Fri, 10 Jan 2014 20:55:39 +0000 (20:55 +0000)]
common functions (c row functions) ported to C89.
BUG=303
TESTED=cl /c /TC /Iinclude source/scale_common.cc
R=tpsiaki@google.com

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

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

6 months agoRemainder calc needs to be after blocks are done. Move calc to old location.
fbarchard@google.com [Thu, 9 Jan 2014 20:29:27 +0000 (20:29 +0000)]
Remainder calc needs to be after blocks are done.  Move calc to old location.
BUG=303
TESTED=Djb2 unittests
R=tpsiaki@google.com

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

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

6 months agoScale mirror bug fix.
fbarchard@google.com [Thu, 9 Jan 2014 20:21:24 +0000 (20:21 +0000)]
Scale mirror bug fix.
BUG=304
TESTED=try
R=tpsiaki@google.com

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

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

6 months agocompare_common visual c port
fbarchard@google.com [Thu, 9 Jan 2014 19:11:09 +0000 (19:11 +0000)]
compare_common visual c port
BUG=303
TESTED=cl /c /TC /Iinclude source/compare_common.cc
R=tpsiaki@google.com

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

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

6 months agoPorting parts of compare to c89
fbarchard@google.com [Wed, 8 Jan 2014 00:59:40 +0000 (00:59 +0000)]
Porting parts of compare to c89
BUG=303
TESTED=try bots still build, gcc and vc direct for c testing.
R=tpsiaki@google.com

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

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

6 months agocast malloc to uint8*
fbarchard@google.com [Tue, 7 Jan 2014 06:06:01 +0000 (06:06 +0000)]
cast malloc to uint8*
BUG=303
TESTED=visual c higher warnings
R=tpsiaki@google.com

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

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

6 months agoDeclare parameters that are unused, since C does not let you give a type without...
fbarchard@google.com [Tue, 7 Jan 2014 05:42:27 +0000 (05:42 +0000)]
Declare parameters that are unused, since C does not let you give a type without name.
BUG=303
TEST=compile -x c

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

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

6 months agouse LIBYUV_BOOL instead of bool
fbarchard@google.com [Tue, 7 Jan 2014 03:59:31 +0000 (03:59 +0000)]
use LIBYUV_BOOL instead of bool
BUG=303
TESTED=try
R=tpsiaki@google.com

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

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

6 months agoSwitch to c style casts for all source and includes.
fbarchard@google.com [Tue, 7 Jan 2014 03:03:00 +0000 (03:03 +0000)]
Switch to c style casts for all source and includes.
BUG=303
TESTED=try
R=tpsiaki@google.com

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

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

6 months agoBuild 2 libs - one with Neon and one without, then merge them together. Allows for...
fbarchard@google.com [Tue, 7 Jan 2014 01:01:07 +0000 (01:01 +0000)]
Build 2 libs - one with Neon and one without, then merge them together.  Allows for a fat binary that runs on regular arm.
BUG=298
TESTED=untested
R=tomfinegan@chromium.org

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

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

6 months agoPort a few functions to C
fbarchard@google.com [Mon, 6 Jan 2014 22:37:28 +0000 (22:37 +0000)]
Port a few functions to C
BUG=303
TESTED=try bots
R=johannkoenig@google.com, tpsiaki@google.com

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

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

6 months agoOnly do 1x1 work around for large source
fbarchard@google.com [Fri, 3 Jan 2014 08:42:55 +0000 (08:42 +0000)]
Only do 1x1 work around for large source
BUG=302
TESTED=hammer effects

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

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

6 months agoWarning fixes for implicite casts that vs2012 complains about with higher warning...
fbarchard@google.com [Fri, 3 Jan 2014 02:38:49 +0000 (02:38 +0000)]
Warning fixes for implicite casts that vs2012 complains about with higher warning levels
BUG=302
TESTED=hammer build
R=tpsiaki@google.com

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

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

6 months ago64 bit clip for argb scale down
fbarchard@google.com [Fri, 3 Jan 2014 02:13:35 +0000 (02:13 +0000)]
64 bit clip for argb scale down
BUG=302
TEST=out\release\libyuv_unittest --gtest_filter=*ARGBScaleDownClipBy3by4*
R=tpsiaki@google.com

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

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

6 months agopoint sample 64 bit column filter
fbarchard@google.com [Fri, 3 Jan 2014 02:03:07 +0000 (02:03 +0000)]
point sample 64 bit column filter
BUG=302
TESTED=ARGBScaleClipTo320x240_None etc
R=tpsiaki@google.com

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

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

6 months agoclip by adjusting pointer
fbarchard@google.com [Fri, 3 Jan 2014 01:43:21 +0000 (01:43 +0000)]
clip by adjusting pointer
BUG=302
TEST=ARGBScaleDownClipBy2_None
R=tpsiaki@google.com

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

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

6 months agogargantuan width support on ARGBScale
fbarchard@google.com [Fri, 3 Jan 2014 01:15:31 +0000 (01:15 +0000)]
gargantuan width support on ARGBScale
BUG=302
TEST=libyuv ARGBScale tests with LIBYUV_WIDTH=90000
R=tpsiaki@google.com

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

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

6 months agoWork around for 1 pixel destination
fbarchard@google.com [Fri, 3 Jan 2014 00:51:12 +0000 (00:51 +0000)]
Work around for 1 pixel destination
BUG=302
TEST=*1x1*
R=tpsiaki@google.com

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

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

6 months agoUse 64 bit fixed point for scaling columns if source is 32k or wider.
fbarchard@google.com [Fri, 3 Jan 2014 00:34:55 +0000 (00:34 +0000)]
Use 64 bit fixed point for scaling columns if source is 32k or wider.
BUG=302
TESTED=out\release\libyuv_unittest --gtest_filter=*I*ToI*
R=tpsiaki@google.com

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

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

6 months agoUse 64 bit Sum for planar function to remove size limitation
fbarchard@google.com [Thu, 2 Jan 2014 22:57:06 +0000 (22:57 +0000)]
Use 64 bit Sum for planar function to remove size limitation
BUG=302
TESTED=out\release\libyuv_unittest --gtest_filter=*Psnr
R=tpsiaki@google.com

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

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

6 months agoFixedDiv1 using a single 64/32 divide. Removes size restriction from slope.
fbarchard@google.com [Thu, 2 Jan 2014 22:32:09 +0000 (22:32 +0000)]
FixedDiv1 using a single 64/32 divide.  Removes size restriction from slope.
BUG=302
TESTED=libyuv scale tests
R=tpsiaki@google.com

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

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

6 months agoAdd little endian 555/565 kCMPixelFormat's to alias list
fbarchard@google.com [Thu, 2 Jan 2014 20:31:40 +0000 (20:31 +0000)]
Add little endian 555/565 kCMPixelFormat's to alias list
BUG=none
TESTED=unittests added
R=tpsiaki@google.com

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

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

6 months agoApple uses 'BGRA' to mean 'ARGB', so map this on Apple machines.
fbarchard@google.com [Tue, 31 Dec 2013 19:01:14 +0000 (19:01 +0000)]
Apple uses 'BGRA' to mean 'ARGB', so map this on Apple machines.
BUG=229
TESTED=untested
R=tpsiaki@google.com

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

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

6 months agoOver unittest crash on divide overflow.
fbarchard@google.com [Tue, 31 Dec 2013 00:54:22 +0000 (00:54 +0000)]
Over unittest crash on divide overflow.
BUG=299
TESTED=try
R=wuwang@google.com

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

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

6 months agoCombines multiple allocs into one call.
fbarchard@google.com [Mon, 30 Dec 2013 21:11:21 +0000 (21:11 +0000)]
Combines multiple allocs into one call.
BUG=300
TESTED=libyuv_unitests pass
R=tpsiaki@google.com

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

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

6 months agosobel use one alloc instead of 3.
fbarchard@google.com [Mon, 30 Dec 2013 18:39:43 +0000 (18:39 +0000)]
sobel use one alloc instead of 3.
BUG=300
TESTED=try bots
R=tpsiaki@google.com

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

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

7 months agoAdd edge to sobel buffers to avoid overwrites.
fbarchard@google.com [Fri, 27 Dec 2013 22:54:51 +0000 (22:54 +0000)]
Add edge to sobel buffers to avoid overwrites.
BUG=296
TESTED=Sobel unittest in Effects
R=tpsiaki@google.com

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

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

7 months agolint fixes
fbarchard@google.com [Fri, 27 Dec 2013 02:09:58 +0000 (02:09 +0000)]
lint fixes
BUG=none
TEST=LINT
R=tpsiaki@google.com

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

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

7 months agoConversions use malloc for row buffers.
fbarchard@google.com [Fri, 27 Dec 2013 02:00:30 +0000 (02:00 +0000)]
Conversions use malloc for row buffers.
BUG=296
TESTED=libyuv convert_test
R=tpsiaki@google.com

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

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

7 months agoSobel use malloc for row buffers
fbarchard@google.com [Fri, 27 Dec 2013 01:29:14 +0000 (01:29 +0000)]
Sobel use malloc for row buffers
BUG=296
TESTED=Sobel*
R=tpsiaki@google.com

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

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

7 months agoConvert common low levels use malloc
fbarchard@google.com [Fri, 27 Dec 2013 01:21:49 +0000 (01:21 +0000)]
Convert common low levels use malloc
BUG=296
TESTED=untested
R=tpsiaki@google.com

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

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