Go to file
Chuanbo Weng c5552788c5 Use vload to read unaligned data instead of dereference operator.
According to opencl 1.2 spec 6.1.5:
    For arguments to a __kernel function declared to be a pointer to a
    data type, the OpenCL compiler can assume that the pointee is always
    appropriately aligned as required by the data type. The behavior of
    an unaligned load or store is undefined, except for the
    vloadn, vload_halfn, vstoren, and vstore_halfn functions defined in
    section 6.12.7.

Original code read data of type T from address not aligned by multiple
of sizeof(T), so the result is incorrect. With this patch, the cases
./opencv_perf_imgproc
--gtest_filter=OCL_ImgSize_TmplSize_Method_MatType_MatchTemplate.MatchTemplate/*
could work well with beignet 0.9.3.

Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com>
2014-09-17 19:28:07 +08:00
3rdparty Merge pull request #2925 from BloodAxe:osx-framework-script 2014-07-19 18:04:15 +00:00
apps Several type of formal refactoring: 2014-08-13 15:21:35 +04:00
cmake Merge pull request #3205 from parafin:ximea_unix-3.0 2014-09-14 18:44:41 +00:00
data moved part of video to contrib/{outflow, bgsegm}; moved matlab to contrib 2014-08-10 23:24:16 +04:00
doc Merge pull request #3175 from avdmitry:modern_doc_theme 2014-09-14 20:10:36 +00:00
include Split highgui module to videoio and highgui 2014-07-14 23:16:47 +04:00
modules Use vload to read unaligned data instead of dereference operator. 2014-09-17 19:28:07 +08:00
platforms Fix cmake to build OpenCV framework on OSX 2014-07-01 22:31:57 +03:00
samples Merge pull request #3200 from pierriko:master 2014-09-14 18:50:33 +00:00
.gitattributes Made changes to OpenCVFindMatlab suggested by SpecLad 2013-09-14 13:32:15 +10:00
.gitignore Merge remote-tracking branch 'origin/2.4' into merge-2.4 2014-01-14 11:53:59 +04:00
.tgitconfig Add tgit.icon project config 2014-02-26 17:46:52 +08:00
CMakeLists.txt XIMEA cam support: allow on OS X too 2014-09-09 19:25:14 +04:00
index.rst GSoC Python Tutorials 2013-09-23 13:41:14 +05:30
LICENSE adding LICENSE file and a sample of its reference in ocl.hpp 2013-12-18 19:33:25 +04:00
README.md Replaced Gittip button 2014-02-15 13:10:09 +04:00

OpenCV: Open Source Computer Vision Library

Gittip

Resources

Contributing

Please read before starting work on a pull request: http://code.opencv.org/projects/opencv/wiki/How_to_contribute

Summary of guidelines:

  • One pull request per issue;
  • Choose the right base branch;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.