nemandza82 / symd Goto Github PK
View Code? Open in Web Editor NEWC++ header only template library designed to make it easier to write high-performance SIMD (SSE, AVX, Neon) and multi-threaded code.
License: MIT License
C++ header only template library designed to make it easier to write high-performance SIMD (SSE, AVX, Neon) and multi-threaded code.
License: MIT License
To support operations which take multiple consecutive elements of input collection and/or generate multiple consecutive elements of output collection, Symd bust have something like blocking view.
Examples of such operations are for instance color conversions. Here is example usage of such view:
size_t width = 1920;
size_t height = 1080;
std::vector<float> YUV444(width * height * 3);
std::vector<float> RGB24_mc(YUV444.size());
symd::map(symd::views::block_view<3,1>(RGB24_mc), [](auto yuv)
{
return yuvToRgbKernel(yuv[1], yuv[0], v[2]);
}, symd::views::block_view<3,1>(YUV444));
symd::views::block_view<3,1>(YUV444) creates block view of input collection where blocks are of 3x1 size.
Optimal implementation could be achieved by implementing block_view, and overriding all necessary view operations (getWidth, getHeight, getPitch, fetchData, fetchVecData, saveData, saveVecData and more).
Fetch and save methods should fetch and save all elements within block so they are accessible within the kernel.
For this we added failing test:
TEST_CASE("Mapping - blocking input YUV444 to RGB")
Which after correct implementation should pass.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.