Lines Matching refs:p_file
91 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()
97 static OPJ_UINT64 opj_get_data_length_from_file (FILE * p_file) in opj_get_data_length_from_file() argument
101 OPJ_FSEEK(p_file, 0, SEEK_END); in opj_get_data_length_from_file()
102 file_length = (OPJ_OFF_T)OPJ_FTELL(p_file); in opj_get_data_length_from_file()
103 OPJ_FSEEK(p_file, 0, SEEK_SET); in opj_get_data_length_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()
931 FILE *p_file; in opj_stream_create_file_stream() local
940 p_file = fopen(fname, mode); in opj_stream_create_file_stream()
942 if (! p_file) { in opj_stream_create_file_stream()
948 fclose(p_file); in opj_stream_create_file_stream()
952 opj_stream_set_user_data(l_stream, p_file, (opj_stream_free_user_data_fn) fclose); in opj_stream_create_file_stream()
953 opj_stream_set_user_data_length(l_stream, opj_get_data_length_from_file(p_file)); in opj_stream_create_file_stream()