Home
last modified time | relevance | path

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

/external/pdfium/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/
Dcio.h151 OPJ_SIZE_T m_bytes_in_buffer;
161 OPJ_SIZE_T m_buffer_size;
274 OPJ_SIZE_T opj_stream_read_data (opj_stream_private_t * p_stream,OPJ_BYTE * p_buffer, OPJ_SIZE_T p_…
284 OPJ_SIZE_T opj_stream_write_data (opj_stream_private_t * p_stream,const OPJ_BYTE * p_buffer, OPJ_SI…
375 OPJ_SIZE_T opj_stream_default_read (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data);
380 OPJ_SIZE_T opj_stream_default_write (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data);
Dcio.c151 opj_stream_t* OPJ_CALLCONV opj_stream_create(OPJ_SIZE_T p_buffer_size,OPJ_BOOL l_is_input) in opj_stream_create()
266 OPJ_SIZE_T opj_stream_read_data (opj_stream_private_t * p_stream,OPJ_BYTE * p_buffer, OPJ_SIZE_T p_… in opj_stream_read_data()
268 OPJ_SIZE_T l_read_nb_bytes = 0; in opj_stream_read_data()
285 return l_read_nb_bytes ? l_read_nb_bytes : (OPJ_SIZE_T)-1; in opj_stream_read_data()
311 if (p_stream->m_bytes_in_buffer == (OPJ_SIZE_T)-1) { in opj_stream_read_data()
318 return l_read_nb_bytes ? l_read_nb_bytes : (OPJ_SIZE_T)-1; in opj_stream_read_data()
343 if (p_stream->m_bytes_in_buffer == (OPJ_SIZE_T)-1) { in opj_stream_read_data()
350 return l_read_nb_bytes ? l_read_nb_bytes : (OPJ_SIZE_T)-1; in opj_stream_read_data()
373 OPJ_SIZE_T opj_stream_write_data (opj_stream_private_t * p_stream, in opj_stream_write_data()
375 OPJ_SIZE_T p_size, in opj_stream_write_data()
[all …]
Dbio.c84 if ((OPJ_SIZE_T)bio->bp >= (OPJ_SIZE_T)bio->end) { in opj_bio_byteout()
94 if ((OPJ_SIZE_T)bio->bp >= (OPJ_SIZE_T)bio->end) { in opj_bio_bytein()
Dopenjpeg.h133 typedef size_t OPJ_SIZE_T; typedef
593 typedef OPJ_SIZE_T (* opj_stream_read_fn) (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_da…
598 typedef OPJ_SIZE_T (* opj_stream_write_fn) (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_d…
1114 OPJ_API opj_stream_t* OPJ_CALLCONV opj_stream_create(OPJ_SIZE_T p_buffer_size, OPJ_BOOL p_is_input);
1181 OPJ_SIZE_T p_buffer_size,
Dmct.c82 OPJ_SIZE_T i; in opj_mct_encode()
83 const OPJ_SIZE_T len = n; in opj_mct_encode()
120 OPJ_SIZE_T i; in opj_mct_encode()
121 const OPJ_SIZE_T len = n; in opj_mct_encode()
147 OPJ_SIZE_T i; in opj_mct_decode()
148 const OPJ_SIZE_T len = n; in opj_mct_decode()
214 OPJ_SIZE_T i; in opj_mct_encode_real()
215 const OPJ_SIZE_T len = n; in opj_mct_encode_real()
Dopenjpeg.c91 static OPJ_SIZE_T opj_read_from_file (void * p_buffer, OPJ_SIZE_T p_nb_bytes, FILE * p_file) in opj_read_from_file()
93 OPJ_SIZE_T l_nb_read = fread(p_buffer,1,p_nb_bytes,p_file); in opj_read_from_file()
94 return l_nb_read ? l_nb_read : (OPJ_SIZE_T)-1; in opj_read_from_file()
108 static OPJ_SIZE_T opj_write_from_file (void * p_buffer, OPJ_SIZE_T p_nb_bytes, FILE * p_file) in opj_write_from_file()
929 OPJ_SIZE_T p_size, in opj_stream_create_file_stream()
Dt2.c1152 …if ((((OPJ_SIZE_T)l_current_data + (OPJ_SIZE_T)l_seg->newlen) < (OPJ_SIZE_T)l_current_data) || (l_… in opj_t2_read_packet_data()
Dtcd.c110 …t *p_tcd, OPJ_UINT32 p_tile_no, OPJ_BOOL isEncoder, OPJ_FLOAT32 fraction, OPJ_SIZE_T sizeof_block);
658 …_t *p_tcd, OPJ_UINT32 p_tile_no, OPJ_BOOL isEncoder, OPJ_FLOAT32 fraction, OPJ_SIZE_T sizeof_block) in opj_tcd_init_tile()
Dj2k.c4368 OPJ_SIZE_T l_current_read_size;
/external/pdfium/core/src/fxcodec/codec/
Dcodec_int.h285 DecodeData(unsigned char* src_data, OPJ_SIZE_T src_size) : in DecodeData()
289 OPJ_SIZE_T src_size;
290 OPJ_SIZE_T offset;
294 OPJ_SIZE_T opj_read_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_user_data);
295 OPJ_SIZE_T opj_write_from_memory (void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_user_data);
Dfx_codec_jpx_opj.cpp27 OPJ_SIZE_T opj_read_from_memory(void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_user_data) in opj_read_from_memory()
37 OPJ_SIZE_T bufferLength = srcData->src_size - srcData->offset; in opj_read_from_memory()
38 OPJ_SIZE_T readlength = nb_bytes < bufferLength ? nb_bytes : bufferLength; in opj_read_from_memory()
43 OPJ_SIZE_T opj_write_from_memory(void* p_buffer, OPJ_SIZE_T nb_bytes, void* p_user_data) in opj_write_from_memory()
53 OPJ_SIZE_T bufferLength = srcData->src_size - srcData->offset; in opj_write_from_memory()
54 OPJ_SIZE_T writeLength = nb_bytes < bufferLength ? nb_bytes : bufferLength; in opj_write_from_memory()
76 if (unsignedNbBytes > std::numeric_limits<OPJ_SIZE_T>::max() - srcData->offset) { in opj_skip_from_memory()
79 OPJ_SIZE_T checkedNbBytes = static_cast<OPJ_SIZE_T>(unsignedNbBytes); in opj_skip_from_memory()
104 if (unsignedNbBytes > std::numeric_limits<OPJ_SIZE_T>::max()) { in opj_seek_from_memory()
107 OPJ_SIZE_T checkedNbBytes = static_cast<OPJ_SIZE_T>(nb_bytes); in opj_seek_from_memory()
[all …]
Dfx_codec_jpx_unittest.cpp14 static const OPJ_SIZE_T kReadError = static_cast<OPJ_SIZE_T>(-1);
15 static const OPJ_SIZE_T kWriteError = static_cast<OPJ_SIZE_T>(-1);
174 buffer, std::numeric_limits<OPJ_SIZE_T>::max(), &dd)); in TEST()