Lines Matching defs:ptr
53 static sf_count_t dwvw_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
54 static sf_count_t dwvw_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len) ;
55 static sf_count_t dwvw_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len) ;
56 static sf_count_t dwvw_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len) ;
58 static sf_count_t dwvw_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len) ;
59 static sf_count_t dwvw_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len) ;
60 static sf_count_t dwvw_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len) ;
61 static sf_count_t dwvw_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len) ;
67 static int dwvw_decode_data (SF_PRIVATE *psf, DWVW_PRIVATE *pdwvw, int *ptr, int len) ;
70 static int dwvw_encode_data (SF_PRIVATE *psf, DWVW_PRIVATE *pdwvw, const int *ptr, int len) ;
187 dwvw_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len)
204 ptr [total + k] = iptr [k] >> 16 ;
216 dwvw_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len)
228 count = dwvw_decode_data (psf, pdwvw, ptr, readcount) ;
241 dwvw_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len)
261 ptr [total + k] = normfact * (float) (iptr [k]) ;
273 dwvw_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len)
293 ptr [total + k] = normfact * (double) (iptr [k]) ;
305 dwvw_decode_data (SF_PRIVATE *psf, DWVW_PRIVATE *pdwvw, int *ptr, int len)
347 ptr [count] = arith_shift_left (sample, 32 - pdwvw->bit_width) ;
483 dwvw_encode_data (SF_PRIVATE *psf, DWVW_PRIVATE *pdwvw, const int *ptr, int len)
488 { delta = (ptr [count] >> (32 - pdwvw->bit_width)) - pdwvw->last_sample ;
548 pdwvw->last_sample = ptr [count] >> (32 - pdwvw->bit_width) ;
558 dwvw_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len)
574 iptr [k] = arith_shift_left (ptr [total + k], 16) ;
587 dwvw_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len)
599 count = dwvw_encode_data (psf, pdwvw, ptr, writecount) ;
612 dwvw_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len)
631 iptr [k] = psf_lrintf (normfact * ptr [total + k]) ;
644 dwvw_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
663 iptr [k] = psf_lrint (normfact * ptr [total + k]) ;