You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of constexpr function, that may cause problems on some ancient
platforms (eg. CUDA 8.0 on OS X 10.11) use inline - should behave
the same.
this modifies the commit a12554c from 2024-09-24
inline__device__voidraw_to_comp_load(constuint8_t* d_data_raw, int &image_width, int &image_height, int &image_position, int &x, int &y, uchar4 &r);
87
87
88
88
template<enum gpujpeg_pixel_format>
89
-
constexprint__device__unit_size() { return1; }
89
+
inline__device__intunit_size() { return1; }
90
90
91
91
template<>
92
92
inline__device__void raw_to_comp_load<GPUJPEG_U8>(constuint8_t* d_data_raw, int &image_width, int &image_height, int &image_position, int &x, int &y, uchar4 &r)
inline__device__void raw_to_comp_load<GPUJPEG_444_U8_P012>(constuint8_t* d_data_raw, int &image_width, int &image_height, int &offset, int &x, int &y, uchar4 &r)
inline__device__void raw_to_comp_load<GPUJPEG_4444_U8_P0123>(constuint8_t* d_data_raw, int &image_width, int &image_height, int &offset, int &x, int &y, uchar4 &r)
inline__device__void raw_to_comp_load<GPUJPEG_422_U8_P1020>(constuint8_t* d_data_raw, int &image_width, int &image_height, int &offset, int &x, int &y, uchar4 &r)
0 commit comments