Skip to content

Commit

Permalink
+add Parameter yuvType in functions Simd::Yuv420pToBgr, Simd::Yuv422p…
Browse files Browse the repository at this point in the history
…ToBgr, Simd::Yuv444pToBgr; The mark of functions SimdYuv420pToBgr, SimdYuv422pToBgr, SimdYuv444pToBgr as deprecated; Base implementation, SSE4.1, AVX2 optimizations of function Yuv422pToBgraV2.
  • Loading branch information
ermig1979 committed Aug 8, 2023
1 parent f6989cd commit f2ac83f
Show file tree
Hide file tree
Showing 42 changed files with 951 additions and 682 deletions.
8 changes: 8 additions & 0 deletions docs/2023.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ <h5>New features</h5>
<li>Base implementation, SSE4.1, AVX2, AVX-512BW, NEON optimizations of function Yuv420pToBgrV2.</li>
<li>Base implementation, SSE4.1, AVX2, AVX-512BW, NEON optimizations of function Yuv422pToBgrV2.</li>
<li>Base implementation, SSE4.1, AVX2, AVX-512BW, NEON optimizations of function Yuv444pToBgrV2.</li>
<li>Parameter yuvType in function Simd::Yuv420pToBgr.</li>
<li>Parameter yuvType in function Simd::Yuv422pToBgr.</li>
<li>Parameter yuvType in function Simd::Yuv444pToBgr.</li>
<li>The mark of function SimdYuv420pToBgr as deprecated.</li>
<li>The mark of function SimdYuv422pToBgr as deprecated.</li>
<li>The mark of function SimdYuv444pToBgr as deprecated.</li>
<li>Base implementation, SSE4.1, AVX2 optimizations of function Yuv422pToBgraV2.</li>
</ul>

<h4>Test framework</h4>
Expand All @@ -48,6 +55,7 @@ <h5>New features</h5>
<li>Tests for verifying functionality of function Yuv420pToBgrV2.</li>
<li>Tests for verifying functionality of function Yuv422pToBgrV2.</li>
<li>Tests for verifying functionality of function Yuv444pToBgrV2.</li>
<li>Tests for verifying functionality of function Yuv422pToBgraV2.</li>
</ul>

<a href="#HOME">Home</a>
Expand Down
297 changes: 120 additions & 177 deletions docs/help/group__yuv__conversion.html

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions docs/help/namespace_simd.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/help/namespacemembers_func_y.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions docs/help/namespacemembers_y.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions prj/vs2019/Avx2.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<ClCompile Include="..\..\src\Simd\SimdAvx2WarpAffine.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgr.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgra.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgraV2.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgrV2.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToHue.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToUyvy.cpp" />
Expand Down
3 changes: 3 additions & 0 deletions prj/vs2019/Avx2.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgrV2.cpp">
<Filter>Avx2</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgraV2.cpp">
<Filter>Avx2</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="Avx2">
Expand Down
1 change: 1 addition & 0 deletions prj/vs2019/Sse41.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
<ClCompile Include="..\..\src\Simd\SimdSse41Winograd3.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgr.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgra.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgraV2.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgrV2.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToHue.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToUyvy.cpp" />
Expand Down
3 changes: 3 additions & 0 deletions prj/vs2019/Sse41.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgrV2.cpp">
<Filter>Sse41</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgraV2.cpp">
<Filter>Sse41</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="Sse41">
Expand Down
1 change: 1 addition & 0 deletions prj/vs2022/Avx2.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<ClCompile Include="..\..\src\Simd\SimdAvx2WarpAffine.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgr.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgra.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgraV2.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgrV2.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToHue.cpp" />
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToUyvy.cpp" />
Expand Down
3 changes: 3 additions & 0 deletions prj/vs2022/Avx2.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgrV2.cpp">
<Filter>Avx2</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Simd\SimdAvx2YuvToBgraV2.cpp">
<Filter>Avx2</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="Avx2">
Expand Down
1 change: 1 addition & 0 deletions prj/vs2022/Sse41.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
<ClCompile Include="..\..\src\Simd\SimdSse41Winograd3.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgr.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgra.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgraV2.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgrV2.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToHue.cpp" />
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToUyvy.cpp" />
Expand Down
3 changes: 3 additions & 0 deletions prj/vs2022/Sse41.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgrV2.cpp">
<Filter>Sse41</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Simd\SimdSse41YuvToBgraV2.cpp">
<Filter>Sse41</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="Sse41">
Expand Down
3 changes: 3 additions & 0 deletions src/Simd/SimdAvx2.h
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ namespace Simd
void Yuv422pToBgra(const uint8_t * y, size_t yStride, const uint8_t * u, size_t uStride, const uint8_t * v, size_t vStride,
size_t width, size_t height, uint8_t * bgra, size_t bgraStride, uint8_t alpha);

void Yuv422pToBgraV2(const uint8_t* y, size_t yStride, const uint8_t* u, size_t uStride, const uint8_t* v, size_t vStride,
size_t width, size_t height, uint8_t* bgra, size_t bgraStride, uint8_t alpha, SimdYuvType yuvType);

void Yuv444pToBgra(const uint8_t * y, size_t yStride, const uint8_t * u, size_t uStride, const uint8_t * v, size_t vStride,
size_t width, size_t height, uint8_t * bgra, size_t bgraStride, uint8_t alpha);

Expand Down
2 changes: 1 addition & 1 deletion src/Simd/SimdAvx2YuvToBgr.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2022 Yermalayeu Ihar.
* Copyright (c) 2011-2023 Yermalayeu Ihar.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/Simd/SimdAvx2YuvToBgrV2.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2022 Yermalayeu Ihar.
* Copyright (c) 2011-2023 Yermalayeu Ihar.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit f2ac83f

Please sign in to comment.