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
inline__device__void gpujpeg_comp_to_raw_store<GPUJPEG_444_U8_P012>(uint8_t *d_data_raw, int &image_width, int &image_height, int &image_position, int &x, int &y, uchar4 &r)
125
+
inline__device__void gpujpeg_comp_to_raw_store<GPUJPEG_444_U8_P012>(uint8_t *d_data_raw, int &image_width, int &image_height, int &offset, int &x, int &y, uchar4 &r)
126
126
{
127
-
image_position = image_position * 3;
128
-
d_data_raw[image_position + 0] = r.x;
129
-
d_data_raw[image_position + 1] = r.y;
130
-
d_data_raw[image_position + 2] = r.z;
127
+
d_data_raw[offset + 0] = r.x;
128
+
d_data_raw[offset + 1] = r.y;
129
+
d_data_raw[offset + 2] = r.z;
131
130
}
132
131
133
132
template<>
134
-
inline__device__void gpujpeg_comp_to_raw_store<GPUJPEG_4444_U8_P0123>(uint8_t *d_data_raw, int &image_width, int &image_height, int &image_position, int &x, int &y, uchar4 &r)
133
+
inline__device__void gpujpeg_comp_to_raw_store<GPUJPEG_4444_U8_P0123>(uint8_t *d_data_raw, int &image_width, int &image_height, int &offset, int &x, int &y, uchar4 &r)
inline__device__void gpujpeg_comp_to_raw_store<GPUJPEG_422_U8_P1020>(uint8_t *d_data_raw, int &image_width, int &image_height, int &image_position, int &x, int &y, uchar4 &r)
160
+
inline__device__void gpujpeg_comp_to_raw_store<GPUJPEG_422_U8_P1020>(uint8_t *d_data_raw, int &image_width, int &image_height, int &offset, int &x, int &y, uchar4 &r)
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);
89
89
90
-
template<enum gpujpeg_pixel_format>
91
-
inline__device__intunit_size() { return1; }
92
-
93
90
template<>
94
91
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