Skip to content

Commit

Permalink
Changed for scheduling to static and fixed the number of threads for …
Browse files Browse the repository at this point in the history
…color conversion
  • Loading branch information
shaun-edwards committed Feb 16, 2018
1 parent 18e5bc5 commit e85d1aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ namespace librealsense
#ifdef __SSSE3__
auto src = reinterpret_cast<const __m128i *>(s);
auto dst = reinterpret_cast<__m128i *>(d[0]);
#pragma omp parallel for
#pragma omp parallel for num_threads(4)
for(int i = 0; i < n/16; i++)
{
const __m128i zero = _mm_set1_epi8(0);
Expand Down
2 changes: 1 addition & 1 deletion src/proc/align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace librealsense
const rs2_intrinsics& other_intrin, GET_DEPTH get_depth, TRANSFER_PIXEL transfer_pixel)
{
// Iterate over the pixels of the depth image
#pragma omp parallel for schedule(dynamic)
#pragma omp parallel for schedule(static)
for (int depth_y = 0; depth_y < depth_intrin.height; ++depth_y)
{
int depth_pixel_index = depth_y * depth_intrin.width;
Expand Down

0 comments on commit e85d1aa

Please sign in to comment.