Home
last modified time | relevance | path

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

/external/pdfium/third_party/libopenjpeg20/
Dcio.c48 OPJ_UINT32 p_nb_bytes) in opj_write_bytes_BE() argument
51 OPJ_UINT32) - p_nb_bytes; in opj_write_bytes_BE()
53 assert(p_nb_bytes > 0 && p_nb_bytes <= sizeof(OPJ_UINT32)); in opj_write_bytes_BE()
55 memcpy(p_buffer, l_data_ptr, p_nb_bytes); in opj_write_bytes_BE()
59 OPJ_UINT32 p_nb_bytes) in opj_write_bytes_LE() argument
61 const OPJ_BYTE * l_data_ptr = ((const OPJ_BYTE *) &p_value) + p_nb_bytes - 1; in opj_write_bytes_LE()
64 assert(p_nb_bytes > 0 && p_nb_bytes <= sizeof(OPJ_UINT32)); in opj_write_bytes_LE()
66 for (i = 0; i < p_nb_bytes; ++i) { in opj_write_bytes_LE()
72 OPJ_UINT32 p_nb_bytes) in opj_read_bytes_BE() argument
76 assert(p_nb_bytes > 0 && p_nb_bytes <= sizeof(OPJ_UINT32)); in opj_read_bytes_BE()
[all …]
Dcio.h177 OPJ_UINT32 p_nb_bytes);
187 OPJ_UINT32 p_nb_bytes);
197 OPJ_UINT32 p_nb_bytes);
207 OPJ_UINT32 p_nb_bytes);
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,
398 OPJ_OFF_T opj_stream_default_skip(OPJ_OFF_T p_nb_bytes, void * p_user_data);
403 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, in opj_read_from_file() argument
94 OPJ_SIZE_T l_nb_read = fread(p_buffer, 1, p_nb_bytes, p_file); 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() argument
112 return fwrite(p_buffer, 1, p_nb_bytes, p_file); in opj_write_from_file()
115 static OPJ_OFF_T opj_skip_from_file(OPJ_OFF_T p_nb_bytes, FILE * p_user_data) in opj_skip_from_file() argument
117 if (OPJ_FSEEK(p_user_data, p_nb_bytes, SEEK_CUR)) { in opj_skip_from_file()
121 return p_nb_bytes; in opj_skip_from_file()
124 static OPJ_BOOL opj_seek_from_file(OPJ_OFF_T p_nb_bytes, FILE * p_user_data) in opj_seek_from_file() argument
126 if (OPJ_FSEEK(p_user_data, p_nb_bytes, SEEK_SET)) { in opj_seek_from_file()
Dopenjpeg.h597 typedef OPJ_SIZE_T(* opj_stream_read_fn)(void * p_buffer, OPJ_SIZE_T p_nb_bytes,
604 OPJ_SIZE_T p_nb_bytes, void * p_user_data) ;
609 typedef OPJ_OFF_T(* opj_stream_skip_fn)(OPJ_OFF_T p_nb_bytes,
615 typedef OPJ_BOOL(* opj_stream_seek_fn)(OPJ_OFF_T p_nb_bytes,