/external/pdfium/core/fxcodec/jpx/ |
D | jpx_decode_utils.cpp | 16 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()
|
D | jpx_decode_utils.h | 21 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,
|
D | jpx_unittest.cpp | 18 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/ |
D | cio.h | 146 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,
|
D | cio.c | 158 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 …]
|
D | mct.h | 64 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,
|
D | 0006-tcd_init_tile.patch | 7 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);
|
D | mct.c | 83 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 …]
|
D | dwt.c | 82 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 …]
|
D | sparse_array.c | 146 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()
|
D | bio.c | 85 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()
|
D | 0003-dwt-decode.patch | 19 + 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 …]
|
D | tcd.c | 115 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 …]
|
D | openjpeg.h | 133 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,
|
D | openjpeg.c | 91 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()
|
D | tcd.h | 420 OPJ_SIZE_T opj_tcd_get_encoded_tile_size(opj_tcd_t *p_tcd); 439 OPJ_SIZE_T p_src_length);
|
D | t1.c | 1756 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 …]
|
D | 0012-mct_sse.patch | 53 OPJ_SIZE_T n)
|
D | image.c | 72 (OPJ_SIZE_T)comp->w > SIZE_MAX / comp->h / sizeof(OPJ_INT32)) { in opj_image_create()
|
D | t2.c | 1344 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()
|
D | j2k.c | 4704 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/ |
D | jp2.c | 198 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()
|