fbarchard@google.com
6b6eb8cd36
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
2013-12-27 02:09:58 +00:00
fbarchard@google.com
d9c9f37ac4
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
2013-12-27 02:00:30 +00:00
fbarchard@google.com
b2a51d042d
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
2013-12-27 01:29:14 +00:00
fbarchard@google.com
05d025df22
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
2013-12-27 01:21:49 +00:00
fbarchard@google.com
e86abbd244
Use malloc for row buffers in scalers removing size limitations.
...
BUG=296
TESTED=libyuvTest.Scale*
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/6369004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@925 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-27 01:11:26 +00:00
fbarchard@google.com
aab73bbe8a
format conversion use malloc
...
BUG=296
TESTED=convert_test
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/6339004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@924 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-26 23:25:03 +00:00
fbarchard@google.com
4752dc5949
Clear destinations to different values to detect returning with error code rather than doing the conversion.
...
BUG=296
TESTED=convert_unittest
R=johannkoenig@google.com
Review URL: https://webrtc-codereview.appspot.com/6349004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@923 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-26 23:09:57 +00:00
fbarchard@google.com
ae9a1388a7
Use malloc for row buffers in rotate
...
BUG=296
TESTED=rotate_test
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/6329004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@922 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-26 21:41:11 +00:00
fbarchard@google.com
cf17f0cd2b
Scale exit early if simple version used
...
BUG=none
TEST=none
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/6319004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@921 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-26 20:00:54 +00:00
fbarchard@google.com
06ed625808
Neon RGBToUV more accurate coefficients and subsample averaging. Instead of adding 4 pixels and making coefficients 4x smaller, this makes the coefficients 2x small and does a shift, for best accuracy.
...
BUG=297
TESTED=try bots
R=tpsiaki@google.com , yunqingwang@google.com
Review URL: https://webrtc-codereview.appspot.com/6309004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@920 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-26 19:17:21 +00:00
fbarchard@google.com
b74ed8076a
Add ifdef for scale functions on dsp2
...
BUG=none
TEST=none
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/6159004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@919 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-18 19:50:00 +00:00
fbarchard@google.com
55b911ce7b
Make LABELALIGN to 32 bytes for 32 bit x86 NaCL
...
BUG=none
TEST=ncval
R=nfullagar@google.com
Review URL: https://webrtc-codereview.appspot.com/6089004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@918 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-18 00:53:02 +00:00
fbarchard@google.com
b14f46fa30
NaCL pepper_33 port of scale and compare using lock/unlock. Remove less useful scaling tests and change default size to a multiple of 16 for better assembly coverage.
...
BUG=none
TESTED=ncval
R=nfullagar@google.com
Review URL: https://webrtc-codereview.appspot.com/5939005
git-svn-id: http://libyuv.googlecode.com/svn/trunk@917 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-17 18:27:06 +00:00
fbarchard@google.com
f2bd31538e
Change name of variable for convert to crop_width/height instead of dst_width/height to clarify that it is used to crop the original before rotation and is not the final destination size.
...
BUG=none
TESTED=local builds still work
R=wjia@google.com , wjia@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/5859004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@915 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-16 18:23:04 +00:00
nfullagar@google.com
6f0a1dca2c
First pass using bundle_lock / bundle_unlock from binutils update.
...
Remove hand placed BUNDLEALIGN and add new asm directives into
psuedo-instruction macros. Moving forward, this will make for easier and
more consistent psuedo-instruction alignment with bundle boundaries.
This is mostly a NaCl CL but does include a few changes that will slightly
change loop alignments in non-NaCl builds.
BUG=253
TEST=trybots,ncval
R=fbarchard@google.com
Review URL: https://webrtc-codereview.appspot.com/4889004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@913 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-13 22:40:53 +00:00
fbarchard@google.com
31ca87408e
Include libjpeg unconditionally
...
libjpeg/libjpeg.gyp should be used in both local and system libjpeg,
otherwise, header file won't found when build with system libjpeg. see
the comments in third_party/libjpeg/libjpeg.gyp
BUG=chromium:316499
R=michaelbai@chromium.org
Review URL: https://webrtc-codereview.appspot.com/5709004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@912 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-13 00:25:28 +00:00
fbarchard@google.com
0287a3cb53
Fix for I422ToARGB which used movq instead of movd
...
BUG=293
TESTED=LIBYUV_DISABLE_ASM=1 valgrind out/Debug/remoting_unittests --single-process-tests --gtest_filter=*YuvToRgb*
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/5669004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@911 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-12 01:59:45 +00:00
fbarchard@google.com
5ed2b2e465
Test scaling to/from 1 pixel
...
BUG=none
TEST=scale unittests updated to test to/from 1 pixel
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/5479005
git-svn-id: http://libyuv.googlecode.com/svn/trunk@908 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-10 01:25:35 +00:00
fbarchard@google.com
dd2fca5f9c
scale down 4
...
BUG=none
TEST=none
R=ryanpetrie@google.com
Review URL: https://webrtc-codereview.appspot.com/5389004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@907 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-09 21:07:37 +00:00
fbarchard@google.com
a6b8e0da51
Reduce filter to None if 1 pixel wide.
...
BUG=none
TESTED=talk media_unittest YuvScalerTest.TestScaleUp1x6OptInt
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/5449005
git-svn-id: http://libyuv.googlecode.com/svn/trunk@906 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-09 19:56:16 +00:00
fbarchard@google.com
5316f38375
clamp pointer to max row to avoid stepping off source image.
...
BUG=292
TESTED=BackgroundOverlayKernelTest.ProcessVideo_ForegroundBackground
Review URL: https://webrtc-codereview.appspot.com/5379004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@905 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-08 21:13:09 +00:00
fbarchard@google.com
0db78ad127
Switch from xor/mov bx, to movzx ebx, which still passes drmemory and valgrind.
...
BUG=none
TESTED=drmemory
Review URL: https://webrtc-codereview.appspot.com/5339004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@904 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-08 19:23:41 +00:00
fbarchard@google.com
5f29eaafae
Fix for off by one in scale - only source should be src - 0x10001 because dest will hit exact pixel.
...
BUG=292
TESTED=valgrind
Review URL: https://webrtc-codereview.appspot.com/5359004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@902 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-08 18:03:00 +00:00
fbarchard@google.com
aae7deb5cf
yuv use scale slope calc
...
BUG=none
TEST=drmem
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/5319004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@899 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-07 00:55:23 +00:00
fbarchard@google.com
3f5a860be8
Swap x and dx to get slope right.
...
BUG=none
TEST=ARGBScaleClipFrom320x240_Bilinear
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/5299004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@898 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-06 19:49:56 +00:00
fbarchard@google.com
5e24e55f98
Couple fixes for scale common
...
BUG=none
TESTED=local build
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/5289004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@897 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-06 19:20:40 +00:00
fbarchard@google.com
980150f7f1
Compute slope considering filtering, mirror.
...
BUG=261
TEST=valgrind
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/5199004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@896 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-06 18:13:46 +00:00
fbarchard@google.com
09d5f2bfd6
Change scale factors to test QVGA to/from CIF
...
BUG=261
TESTED=valgrind
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/5129004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@895 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-05 22:32:46 +00:00
fbarchard@google.com
ec0cc5bb2d
Function to switch filters to a simplier one based on scale factors.
...
BUG=none
TEST=untested
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4989004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@894 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-05 00:28:12 +00:00
fbarchard@google.com
99a1298c54
I444ToI420 etc use ScalePlane on Y to allow mirroring.
...
BUG=291
TESTED=unittests still pass.
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4979004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@893 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-04 23:36:06 +00:00
fbarchard@google.com
a8e4dcb5d5
Use scaling for YUV to YUV.
...
BUG=none
TEST=I4*ToI4*
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4969004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@892 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-04 20:31:53 +00:00
fbarchard@google.com
48e5364313
Use xor/mov bx instead of movzx to avoid drmemory bug
...
BUG=none
TEST=none
R=johannkoenig@google.com , tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4879004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@891 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-04 03:04:58 +00:00
fbarchard@google.com
064d2768a8
Windows Arm makefile and build fix.
...
BUG=290
TESTED=make -f winarm.mk
R=kjellander@google.com , mflodman@webrtc.org , tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4839004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@890 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-03 19:13:53 +00:00
fbarchard@google.com
339ce58196
Aligned buffer sizes for subsampled Bayer formats.
...
BUG=289
TEST=drmemory
Review URL: https://webrtc-codereview.appspot.com/4819004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@888 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-03 11:30:57 +00:00
fbarchard@google.com
d0a4b4ac01
Switch I4xxToI420 to point sample to pass drmemory.
...
BUG=289
TESTED=drmemory
R=ryanpetrie@google.com
Review URL: https://webrtc-codereview.appspot.com/4809004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@886 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-03 07:00:11 +00:00
fbarchard@google.com
04f40278df
yasm ALIGN uppercase
...
BUG=none
TEST=untested
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4769005
git-svn-id: http://libyuv.googlecode.com/svn/trunk@885 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-03 00:51:14 +00:00
fbarchard@google.com
545a51c1d3
use scale for subsampling to handle odd source width to even destination width.
...
BUG=289
TEST=drmemory
R=nfullagar@google.com , ryanpetrie@google.com
Review URL: https://webrtc-codereview.appspot.com/4779004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@884 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-03 00:27:29 +00:00
fbarchard@google.com
0014ce0056
test odd width and fix for unaligned used on odd width conversion.
...
BUG=283
TESTED=try bots
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4729004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@883 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-02 20:07:29 +00:00
fbarchard@google.com
06f730d8a6
Change do while loops to for loops to allow 0 or 1 wide
...
BUG=289
TESTED=drmemory on odd width
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4719004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@882 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-02 20:03:04 +00:00
fbarchard@google.com
0e82bd7e9f
respect subsample in planar unittest
...
BUG=289
TESTED=drmemory on YUY2ToI420_Opt with odd width
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4709004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@881 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-02 18:03:42 +00:00
fbarchard@google.com
c2295807bd
Reduce alignment for loops from 16 bytes to 4 bytes. Reduces outer loop overhead without hurting innerloop time.
...
BUG=none
TESTED=try bots
R=fbarchard@chromium.org , mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/4659004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@880 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-12-02 15:57:39 +00:00
fbarchard@google.com
dbe4814361
Move scale row functions to scale_win etc
...
BUG=none
TEST=untested
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4509005
git-svn-id: http://libyuv.googlecode.com/svn/trunk@879 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-28 01:16:15 +00:00
fbarchard@google.com
9cd5bc0ceb
Remove most comments about NaCL since it is fully supported.
...
BUG=none
TESTED=untested
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4579004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@878 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-28 00:25:07 +00:00
fbarchard@google.com
a77571812e
Lint fixes for macros
...
BUG=none
TEST=lint
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4499004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@877 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-27 01:33:09 +00:00
fbarchard@google.com
67e6419668
Port more functions in row_posix.cc to NaCl
...
BUG=253
TEST=libyuv_unittest,ncval,trybots
R=tpsiaki@google.com
Review URL: https://webrtc-codereview.appspot.com/4489004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@876 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-27 01:15:24 +00:00
fbarchard@google.com
4163003f66
Add CIF scale test to confirm DrMemory bug is fixed.
...
BUG=none
TESTED=untested
R=wuwang@google.com
Review URL: https://webrtc-codereview.appspot.com/4479004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@875 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-27 00:36:14 +00:00
fbarchard@google.com
83e4d02de2
Use all.gyp for All target in DEPS runhooks
...
BUG=288
TEST=none
R=kjellander@google.com
Review URL: https://webrtc-codereview.appspot.com/4289004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@874 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-22 19:06:38 +00:00
fbarchard@google.com
c904bd7933
Android support
...
To use the Chromium toolchain out-of-the-box,
it seems like an All target is needed by default.
To compile using the Android tools:
1. add ;target_os=['android'] to your .gclient
2. gclient sync --nohooks
3. from your trunk dir, run:
source build/android/envsetup.sh
4. gclient runhooks
5. ninja -C out/Release
BUG=libyuv:288
R=wuwang@google.com
Review URL: https://webrtc-codereview.appspot.com/4119007
git-svn-id: http://libyuv.googlecode.com/svn/trunk@873 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-21 19:57:10 +00:00
nfullagar@google.com
a6c94b2227
Port gcc asm code in scale.cc to NaCl x86-64
...
BUG=253
TEST=manually run tests, trybots and ncval
R=fbarchard@google.com
Review URL: https://webrtc-codereview.appspot.com/4029005
git-svn-id: http://libyuv.googlecode.com/svn/trunk@872 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-21 19:38:17 +00:00
fbarchard@google.com
30cfb5b4ef
Add Android deps
...
BUG=288
TESTED=untested
R=wuwang@google.com
Review URL: https://webrtc-codereview.appspot.com/4179004
git-svn-id: http://libyuv.googlecode.com/svn/trunk@871 16f28f9a-4ce2-e073-06de-1de4eb20be90
2013-11-21 18:27:36 +00:00