Home
last modified time | relevance | path

Searched refs:OPJ_SIZE_T (Results 1 – 22 of 22) sorted by relevance

/external/pdfium/core/fxcodec/jpx/
Djpx_decode_utils.cpp16 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, in opj_read_from_memory()
17 OPJ_SIZE_T nb_bytes, in opj_read_from_memory()
21 return static_cast<OPJ_SIZE_T>(-1); in opj_read_from_memory()
25 return static_cast<OPJ_SIZE_T>(-1); in opj_read_from_memory()
27 OPJ_SIZE_T bufferLength = srcData->src_size - srcData->offset; in opj_read_from_memory()
28 OPJ_SIZE_T readlength = nb_bytes < bufferLength ? nb_bytes : bufferLength; in opj_read_from_memory()
51 std::numeric_limits<OPJ_SIZE_T>::max() - srcData->offset) { in opj_skip_from_memory()
54 OPJ_SIZE_T checked_nb_bytes = static_cast<OPJ_SIZE_T>(unsigned_nb_bytes); in opj_skip_from_memory()
80 if (unsigned_nb_bytes > std::numeric_limits<OPJ_SIZE_T>::max()) { in opj_seek_from_memory()
83 OPJ_SIZE_T checked_nb_bytes = static_cast<OPJ_SIZE_T>(nb_bytes); in opj_seek_from_memory()
Djpx_decode_utils.h21 DecodeData(const uint8_t* data, OPJ_SIZE_T size) in DecodeData()
25 OPJ_SIZE_T src_size;
26 OPJ_SIZE_T offset;
30 OPJ_SIZE_T opj_read_from_memory(void* p_buffer,
31 OPJ_SIZE_T nb_bytes,
Djpx_unittest.cpp18 static const OPJ_SIZE_T kReadError = static_cast<OPJ_SIZE_T>(-1);
164 buffer, std::numeric_limits<OPJ_SIZE_T>::max(), &dd)); in TEST()
/external/pdfium/third_party/libopenjpeg20/
Dcio.h146 OPJ_SIZE_T m_bytes_in_buffer;
156 OPJ_SIZE_T m_buffer_size;
274 OPJ_SIZE_T opj_stream_read_data(opj_stream_private_t * p_stream,
275 … OPJ_BYTE * p_buffer, OPJ_SIZE_T p_size, struct opj_event_mgr * p_event_mgr);
285 OPJ_SIZE_T opj_stream_write_data(opj_stream_private_t * p_stream,
286 const OPJ_BYTE * p_buffer, OPJ_SIZE_T p_size,
386 OPJ_SIZE_T opj_stream_default_read(void * p_buffer, OPJ_SIZE_T p_nb_bytes,
392 OPJ_SIZE_T opj_stream_default_write(void * p_buffer, OPJ_SIZE_T p_nb_bytes,
Dcio.c158 opj_stream_t* OPJ_CALLCONV opj_stream_create(OPJ_SIZE_T p_buffer_size, in opj_stream_create()
281 OPJ_SIZE_T opj_stream_read_data(opj_stream_private_t * p_stream, in opj_stream_read_data()
282 … OPJ_BYTE * p_buffer, OPJ_SIZE_T p_size, opj_event_mgr_t * p_event_mgr) in opj_stream_read_data()
284 OPJ_SIZE_T l_read_nb_bytes = 0; in opj_stream_read_data()
301 return l_read_nb_bytes ? l_read_nb_bytes : (OPJ_SIZE_T) - 1; in opj_stream_read_data()
327 if (p_stream->m_bytes_in_buffer == (OPJ_SIZE_T) - 1) { in opj_stream_read_data()
334 return l_read_nb_bytes ? l_read_nb_bytes : (OPJ_SIZE_T) - 1; in opj_stream_read_data()
357 if (p_stream->m_bytes_in_buffer == (OPJ_SIZE_T) - 1) { in opj_stream_read_data()
364 return l_read_nb_bytes ? l_read_nb_bytes : (OPJ_SIZE_T) - 1; in opj_stream_read_data()
385 OPJ_SIZE_T opj_stream_write_data(opj_stream_private_t * p_stream, in opj_stream_write_data()
[all …]
Dmct.h64 OPJ_INT32* OPJ_RESTRICT c2, OPJ_SIZE_T n);
73 OPJ_INT32* OPJ_RESTRICT c2, OPJ_SIZE_T n);
89 OPJ_INT32* OPJ_RESTRICT c2, OPJ_SIZE_T n);
98 OPJ_FLOAT32* OPJ_RESTRICT c1, OPJ_FLOAT32* OPJ_RESTRICT c2, OPJ_SIZE_T n);
117 OPJ_SIZE_T n,
132 OPJ_SIZE_T n,
D0006-tcd_init_tile.patch7 OPJ_SIZE_T l_tile_data_size;
15 OPJ_SIZE_T w = (OPJ_SIZE_T)(l_tilec->x1 - l_tilec->x0);
16 OPJ_SIZE_T h = (OPJ_SIZE_T)(l_tilec->y1 - l_tilec->y0);
Dmct.c83 OPJ_SIZE_T n) in opj_mct_encode()
85 OPJ_SIZE_T i; in opj_mct_encode()
86 const OPJ_SIZE_T len = n; in opj_mct_encode()
125 OPJ_SIZE_T n) in opj_mct_encode()
127 OPJ_SIZE_T i; in opj_mct_encode()
128 const OPJ_SIZE_T len = n; in opj_mct_encode()
152 OPJ_SIZE_T n) in opj_mct_decode()
154 OPJ_SIZE_T i; in opj_mct_decode()
155 const OPJ_SIZE_T len = n; in opj_mct_decode()
187 OPJ_SIZE_T n) in opj_mct_decode()
[all …]
Ddwt.c82 OPJ_SIZE_T mem_count;
134 static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
139 static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_SIZE_T a_count,
157 void(*p_function)(OPJ_INT32 *, OPJ_SIZE_T, OPJ_INT32, OPJ_INT32, OPJ_INT32));
291 l_dest = b + (OPJ_SIZE_T)sn * (OPJ_SIZE_T)x; in opj_dwt_deinterleave_v()
337 ai = a + (v->sn * (OPJ_SIZE_T)x); in opj_dwt_interleave_v()
352 static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn, in opj_dwt_encode_1()
384 static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn, in opj_dwt_decode_1_()
628 OPJ_SIZE_T stride) in opj_idwt53_v_final_memcpy()
637 STOREU(&tiledp_col[(OPJ_SIZE_T)i * stride + 0], in opj_idwt53_v_final_memcpy()
[all …]
Dsparse_array.c146 OPJ_INT32* dest_ptr = buf + (y - y0) * (OPJ_SIZE_T)buf_line_stride + in opj_sparse_array_int32_read_or_write()
153 OPJ_INT32* dest_ptr = buf + (y - y0) * (OPJ_SIZE_T)buf_line_stride + in opj_sparse_array_int32_read_or_write()
165 … (OPJ_SIZE_T)block_width + block_x_offset; in opj_sparse_array_int32_read_or_write()
167 … OPJ_INT32* OPJ_RESTRICT dest_ptr = buf + (y - y0) * (OPJ_SIZE_T)buf_line_stride in opj_sparse_array_int32_read_or_write()
187 … OPJ_INT32* OPJ_RESTRICT dest_ptr = buf + (y - y0) * (OPJ_SIZE_T)buf_line_stride in opj_sparse_array_int32_read_or_write()
247 (OPJ_SIZE_T)block_width + block_x_offset; in opj_sparse_array_int32_read_or_write()
249 … (OPJ_SIZE_T)buf_line_stride + (x - x0) * buf_col_stride; in opj_sparse_array_int32_read_or_write()
268 (OPJ_SIZE_T)block_width + block_x_offset; in opj_sparse_array_int32_read_or_write()
270 … (OPJ_SIZE_T)buf_line_stride + (x - x0) * buf_col_stride; in opj_sparse_array_int32_read_or_write()
Dbio.c85 if ((OPJ_SIZE_T)bio->bp >= (OPJ_SIZE_T)bio->end) { in opj_bio_byteout()
96 if ((OPJ_SIZE_T)bio->bp >= (OPJ_SIZE_T)bio->end) { in opj_bio_bytein()
D0003-dwt-decode.patch19 + OPJ_SIZE_T mem_count;
29 +static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
36 +static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_SIZE_T a_count,
55 + void(*p_function)(OPJ_INT32 *, OPJ_SIZE_T, OPJ_INT32, OPJ_INT32, OPJ_INT32));
92 +static void opj_dwt_encode_1(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
103 +static void opj_dwt_decode_1_(OPJ_INT32 *a, OPJ_SIZE_T a_count, OPJ_INT32 dn,
123 +static void opj_dwt_encode_1_real(OPJ_INT32 *a, OPJ_SIZE_T a_count,
135 + void(*p_function)(OPJ_INT32 *, OPJ_SIZE_T, OPJ_INT32, OPJ_INT32, OPJ_INT32))
143 + OPJ_SIZE_T l_data_count;
144 OPJ_SIZE_T l_data_size;
[all …]
Dtcd.c115 OPJ_BOOL isEncoder, OPJ_FLOAT32 fraction, OPJ_SIZE_T sizeof_block,
721 OPJ_BOOL isEncoder, OPJ_FLOAT32 fraction, OPJ_SIZE_T sizeof_block, in opj_tcd_init_tile()
819 OPJ_SIZE_T l_tile_data_size; in opj_tcd_init_tile()
827 OPJ_SIZE_T w = (OPJ_SIZE_T)(l_tilec->x1 - l_tilec->x0); in opj_tcd_init_tile()
828 OPJ_SIZE_T h = (OPJ_SIZE_T)(l_tilec->y1 - l_tilec->y0); in opj_tcd_init_tile()
1408 OPJ_SIZE_T)p_cstr_info->numcomps * (OPJ_SIZE_T)p_cstr_info->numlayers * in opj_tcd_encode_tile()
1527 OPJ_SIZE_T l_data_size; in opj_tcd_decode_tile()
1530 OPJ_SIZE_T res_w = (OPJ_SIZE_T)(l_res->x1 - l_res->x0); in opj_tcd_decode_tile()
1531 OPJ_SIZE_T res_h = (OPJ_SIZE_T)(l_res->y1 - l_res->y0); in opj_tcd_decode_tile()
1660 OPJ_SIZE_T w = res->win_x1 - res->win_x0; in opj_tcd_decode_tile()
[all …]
Dopenjpeg.h133 typedef size_t OPJ_SIZE_T; typedef
597 typedef OPJ_SIZE_T(* opj_stream_read_fn)(void * p_buffer, OPJ_SIZE_T p_nb_bytes,
603 typedef OPJ_SIZE_T(* opj_stream_write_fn)(void * p_buffer,
604 OPJ_SIZE_T p_nb_bytes, void * p_user_data) ;
1109 OPJ_API void* OPJ_CALLCONV opj_image_data_alloc(OPJ_SIZE_T size);
1145 OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create(OPJ_SIZE_T p_buffer_size,
1222 OPJ_SIZE_T p_buffer_size,
Dopenjpeg.c91 static OPJ_SIZE_T opj_read_from_file(void * p_buffer, OPJ_SIZE_T p_nb_bytes, in opj_read_from_file()
94 OPJ_SIZE_T l_nb_read = fread(p_buffer, 1, p_nb_bytes, p_file); in opj_read_from_file()
95 return l_nb_read ? l_nb_read : (OPJ_SIZE_T) - 1; in opj_read_from_file()
109 static OPJ_SIZE_T opj_write_from_file(void * p_buffer, OPJ_SIZE_T p_nb_bytes, in opj_write_from_file()
1011 OPJ_SIZE_T p_size, in opj_stream_create_file_stream()
1054 void* OPJ_CALLCONV opj_image_data_alloc(OPJ_SIZE_T size) in opj_image_data_alloc()
Dtcd.h420 OPJ_SIZE_T opj_tcd_get_encoded_tile_size(opj_tcd_t *p_tcd);
439 OPJ_SIZE_T p_src_length);
Dt1.c1756 OPJ_INT32* OPJ_RESTRICT tiledp = &tilec->data[(OPJ_SIZE_T)y * tile_w + in opj_t1_clbl_decode_processor()
1757 (OPJ_SIZE_T)x]; in opj_t1_clbl_decode_processor()
1765 ((OPJ_INT32*)tiledp)[(j * (OPJ_SIZE_T)tile_w) + i + 0U] = tmp0 / 2; in opj_t1_clbl_decode_processor()
1766 ((OPJ_INT32*)tiledp)[(j * (OPJ_SIZE_T)tile_w) + i + 1U] = tmp1 / 2; in opj_t1_clbl_decode_processor()
1767 ((OPJ_INT32*)tiledp)[(j * (OPJ_SIZE_T)tile_w) + i + 2U] = tmp2 / 2; in opj_t1_clbl_decode_processor()
1768 ((OPJ_INT32*)tiledp)[(j * (OPJ_SIZE_T)tile_w) + i + 3U] = tmp3 / 2; in opj_t1_clbl_decode_processor()
1772 ((OPJ_INT32*)tiledp)[(j * (OPJ_SIZE_T)tile_w) + i] = tmp / 2; in opj_t1_clbl_decode_processor()
1776 OPJ_FLOAT32* OPJ_RESTRICT tiledp = (OPJ_FLOAT32*) &tilec->data[(OPJ_SIZE_T)y * in opj_t1_clbl_decode_processor()
1777 tile_w + (OPJ_SIZE_T)x]; in opj_t1_clbl_decode_processor()
2143 OPJ_SIZE_T tileIndex = 0; in opj_t1_encode_cblks()
[all …]
D0012-mct_sse.patch53 OPJ_SIZE_T n)
Dimage.c72 (OPJ_SIZE_T)comp->w > SIZE_MAX / comp->h / sizeof(OPJ_INT32)) { in opj_image_create()
Dt2.c1344 if ((((OPJ_SIZE_T)l_current_data + (OPJ_SIZE_T)l_seg->newlen) < in opj_t2_read_packet_data()
1345 (OPJ_SIZE_T)l_current_data) || in opj_t2_read_packet_data()
Dj2k.c4704 OPJ_SIZE_T l_current_read_size; in opj_j2k_read_sod()
9017 OPJ_SIZE_T l_start_offset_src; in opj_j2k_update_image_data()
9020 OPJ_SIZE_T l_start_offset_dest; in opj_j2k_update_image_data()
9168 l_start_offset_src = (OPJ_SIZE_T)l_offset_x0_src + (OPJ_SIZE_T)l_offset_y0_src in opj_j2k_update_image_data()
9169 * (OPJ_SIZE_T)src_data_stride; in opj_j2k_update_image_data()
9172 l_start_offset_dest = (OPJ_SIZE_T)l_start_x_dest + (OPJ_SIZE_T)l_start_y_dest in opj_j2k_update_image_data()
9173 * (OPJ_SIZE_T)l_img_comp_dest->w; in opj_j2k_update_image_data()
9192 OPJ_SIZE_T l_width = l_img_comp_dest->w; in opj_j2k_update_image_data()
9193 OPJ_SIZE_T l_height = l_img_comp_dest->h; in opj_j2k_update_image_data()
9209 (OPJ_SIZE_T)l_img_comp_dest->w * l_img_comp_dest->h * sizeof(OPJ_INT32)); in opj_j2k_update_image_data()
[all …]
/external/ImageMagick/coders/
Djp2.c198 static OPJ_SIZE_T JP2ReadHandler(void *buffer,OPJ_SIZE_T length,void *context) in JP2ReadHandler()
209 return((OPJ_SIZE_T) -1); in JP2ReadHandler()
210 return((OPJ_SIZE_T) count); in JP2ReadHandler()
241 static OPJ_SIZE_T JP2WriteHandler(void *buffer,OPJ_SIZE_T length,void *context) in JP2WriteHandler()
251 return((OPJ_SIZE_T) count); in JP2WriteHandler()