Home
last modified time | relevance | path

Searched refs:p_nb_bytes (Results 1 – 5 of 5) sorted by relevance

/external/pdfium/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/
Dcio.c47 void opj_write_bytes_BE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes) in opj_write_bytes_BE() argument
49 const OPJ_BYTE * l_data_ptr = ((const OPJ_BYTE *) &p_value) + p_nb_bytes; in opj_write_bytes_BE()
51 assert(p_nb_bytes > 0 && p_nb_bytes <= sizeof(OPJ_UINT32)); in opj_write_bytes_BE()
53 memcpy(p_buffer,l_data_ptr,p_nb_bytes); in opj_write_bytes_BE()
56 void opj_write_bytes_LE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes) in opj_write_bytes_LE() argument
58 const OPJ_BYTE * l_data_ptr = ((const OPJ_BYTE *) &p_value) + p_nb_bytes - 1; in opj_write_bytes_LE()
61 assert(p_nb_bytes > 0 && p_nb_bytes <= sizeof(OPJ_UINT32)); in opj_write_bytes_LE()
63 for (i=0;i<p_nb_bytes;++i) { in opj_write_bytes_LE()
68 void opj_read_bytes_BE(const OPJ_BYTE * p_buffer, OPJ_UINT32 * p_value, OPJ_UINT32 p_nb_bytes) in opj_read_bytes_BE() argument
72 assert(p_nb_bytes > 0 && p_nb_bytes <= sizeof(OPJ_UINT32)); in opj_read_bytes_BE()
[all …]
Dcio.h180 void opj_write_bytes_BE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes);
189 void opj_read_bytes_BE(const OPJ_BYTE * p_buffer, OPJ_UINT32 * p_value, OPJ_UINT32 p_nb_bytes);
198 void opj_write_bytes_LE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes);
207 void opj_read_bytes_LE(const OPJ_BYTE * p_buffer, OPJ_UINT32 * p_value, OPJ_UINT32 p_nb_bytes);
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);
385 OPJ_OFF_T opj_stream_default_skip (OPJ_OFF_T p_nb_bytes, void * p_user_data);
390 OPJ_BOOL opj_stream_default_seek (OPJ_OFF_T p_nb_bytes, void * p_user_data);
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() argument
93 OPJ_SIZE_T l_nb_read = fread(p_buffer,1,p_nb_bytes,p_file); 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() argument
110 return fwrite(p_buffer,1,p_nb_bytes,p_file); in opj_write_from_file()
113 static OPJ_OFF_T opj_skip_from_file (OPJ_OFF_T p_nb_bytes, FILE * p_user_data) in opj_skip_from_file() argument
115 if (OPJ_FSEEK(p_user_data,p_nb_bytes,SEEK_CUR)) { in opj_skip_from_file()
119 return p_nb_bytes; in opj_skip_from_file()
122 static OPJ_BOOL opj_seek_from_file (OPJ_OFF_T p_nb_bytes, FILE * p_user_data) in opj_seek_from_file() argument
124 if (OPJ_FSEEK(p_user_data,p_nb_bytes,SEEK_SET)) { in opj_seek_from_file()
Dopenjpeg.h513 typedef OPJ_SIZE_T (* opj_stream_read_fn) (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_da…
518 typedef OPJ_SIZE_T (* opj_stream_write_fn) (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_d…
523 typedef OPJ_OFF_T (* opj_stream_skip_fn) (OPJ_OFF_T p_nb_bytes, void * p_user_data) ;
528 typedef OPJ_BOOL (* opj_stream_seek_fn) (OPJ_OFF_T p_nb_bytes, void * p_user_data) ;
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpx_opj.cpp28 static OPJ_SIZE_T opj_read_from_memory (void * p_buffer, OPJ_SIZE_T p_nb_bytes, decodeData* srcDat… in opj_read_from_memory() argument
33 OPJ_SIZE_T readlength = p_nb_bytes; in opj_read_from_memory()
38 if(bufferLength <= p_nb_bytes) { in opj_read_from_memory()
45 static OPJ_SIZE_T opj_write_from_memory (void * p_buffer, OPJ_SIZE_T p_nb_bytes, decodeData* srcDat… in opj_write_from_memory() argument
50 OPJ_SIZE_T writeLength = p_nb_bytes; in opj_write_from_memory()
52 if(bufferLength <= p_nb_bytes) { in opj_write_from_memory()
59 static OPJ_OFF_T opj_skip_from_memory (OPJ_OFF_T p_nb_bytes, decodeData* srcData) in opj_skip_from_memory() argument
64 OPJ_OFF_T postion = srcData->offset + p_nb_bytes; in opj_skip_from_memory()
70 return p_nb_bytes; in opj_skip_from_memory()
72 static OPJ_BOOL opj_seek_from_memory (OPJ_OFF_T p_nb_bytes, decodeData * srcData) in opj_seek_from_memory() argument
[all …]