Skip to content

Commit

Permalink
temp4
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-Prasad-V committed Jun 27, 2024
1 parent 439719c commit bb3de2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cuda/cuda-conversion.cu
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ __global__ void kernel_split_frame_y16_y16_from_y12i_cuda(uint16_t* a, uint16_t*
}


template<class SOURCE>
//template<class SOURCE>
void rscuda::y16_y16_from_y12i_10_cuda_helper(uint8_t* const dest[], int count, const SOURCE * source)
{
/*
Expand Down
4 changes: 2 additions & 2 deletions src/cuda/cuda-conversion.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace rscuda
struct y12i_pixel { uint8_t rl : 8, rh : 4, ll : 4, lh : 8; __host__ __device__ int l() const { return lh << 4 | ll; } __host__ __device__ int r() const { return rh << 8 | rl; } };
struct y12i_pixel_mipi { uint8_t rl : 8, rh : 4, ll : 4, lh : 8, padding : 8; __host__ __device__ int l() const { return lh << 4 | ll; } __host__ __device__ int r() const { return rh << 8 | rl; } };
void y8_y8_from_y8i_cuda_helper(uint8_t* const dest[], int count, const y8i_pixel * source);
template<class SOURCE>
//template<class SOURCE>
void y16_y16_from_y12i_10_cuda_helper(uint8_t* const dest[], int count, const SOURCE * source);
void unpack_yuy2_cuda_helper(const uint8_t* src, uint8_t* dst, int n, rs2_format format);

Expand All @@ -47,7 +47,7 @@ namespace rscuda

template<class SOURCE> void split_frame_y16_y16_from_y12i_cuda(uint8_t* const dest[], int count, const SOURCE * source)
{
y16_y16_from_y12i_10_cuda_helper<SOURCE>(dest, count, reinterpret_cast<const SOURCE*>(source));
y16_y16_from_y12i_10_cuda_helper(dest, count, reinterpret_cast<const SOURCE*>(source));
}

void unpack_z16_y8_from_sr300_inzi_cuda(uint8_t* const dest, const uint16_t* source, int count);
Expand Down

0 comments on commit bb3de2f

Please sign in to comment.