summaryrefslogtreecommitdiffstats
path: root/media/base/yuv_convert_sse2.cc
Commit message (Collapse)AuthorAgeFilesLines
* Revised SSE2 color conversionhclam@chromium.org2011-02-141-89/+107
| | | | | | | | | | | | | | | | | | | | I discovered there's average and shuffle instructions which simplify the calculations of UV components. Also the extract instruction was very useful. In terms of the algorithm I rearranged the memory reads to be sequential. Overall this gives about 10% improvement on 64-bits machine. On 32-bits machine this gives 20% improvement. If compiled as 32-bits code this is quite slow compared to 64-bits, about 2x slow down. So working on MMX code will be a direction for improvement. BUG=None TEST=I tried it, it looks right. Review URL: http://codereview.chromium.org/6488014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74827 0039d316-1c4b-4281-b951-d872f2087c98
* Runtime check to enable SSE2 color space conversion codehclam@chromium.org2011-02-081-15/+10
| | | | | | | | | | | This will make text in chromoting view to looks much nicer. BUG=72218 TEST=Text looks much better in chromoting Review URL: http://codereview.chromium.org/6410127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74154 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmit "RGB to YUV conversion using SSE2""hclam@chromium.org2011-02-031-0/+194
| | | | | | | | | | | Introduce SSE2 patch again. BUG=None TEST=None Review URL: http://codereview.chromium.org/6334029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73552 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "RGB to YUV conversion using SSE2"hclam@chromium.org2011-02-011-189/+0
| | | | | | | | Reverting patch because ARM build is broken. TBR=ctguil git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73341 0039d316-1c4b-4281-b951-d872f2087c98
* RGB to YUV conversion using SSE2hclam@chromium.org2011-02-011-0/+189
This code uses SSE2 intrinsics with the feature of 2x2 subsampling for U and V. Performance compared to a pure C version is about 20% faster with better quality. BUG=None TEST=None Review URL: http://codereview.chromium.org/6268018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73339 0039d316-1c4b-4281-b951-d872f2087c98