Lines Matching defs:ptr
50 static sf_count_t gsm610_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
51 static sf_count_t gsm610_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len) ;
52 static sf_count_t gsm610_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len) ;
53 static sf_count_t gsm610_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len) ;
55 static sf_count_t gsm610_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len) ;
56 static sf_count_t gsm610_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len) ;
57 static sf_count_t gsm610_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len) ;
58 static sf_count_t gsm610_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len) ;
60 static int gsm610_read_block (SF_PRIVATE *psf, GSM610_PRIVATE *pgsm610, short *ptr, int len) ;
61 static int gsm610_write_block (SF_PRIVATE *psf, GSM610_PRIVATE *pgsm610, const short *ptr, int len) ;
241 gsm610_read_block (SF_PRIVATE *psf, GSM610_PRIVATE *pgsm610, short *ptr, int len)
246 { memset (ptr + indx, 0, (len - indx) * sizeof (short)) ;
256 memcpy (&(ptr [indx]), &(pgsm610->samples [pgsm610->samplecount]), count * sizeof (short)) ;
266 gsm610_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len)
278 count = gsm610_read_block (psf, pgsm610, ptr, readcount) ;
291 gsm610_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len)
308 ptr [total + k] = arith_shift_left (sptr [k], 16) ;
317 gsm610_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len)
337 ptr [total + k] = normfact * sptr [k] ;
346 gsm610_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len)
366 ptr [total + k] = normfact * sptr [k] ;
474 gsm610_write_block (SF_PRIVATE *psf, GSM610_PRIVATE *pgsm610, const short *ptr, int len)
483 memcpy (&(pgsm610->samples [pgsm610->samplecount]), &(ptr [indx]), count * sizeof (short)) ;
496 gsm610_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len)
508 count = gsm610_write_block (psf, pgsm610, ptr, writecount) ;
521 gsm610_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len)
537 sptr [k] = ptr [total + k] >> 16 ;
547 gsm610_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len)
566 sptr [k] = psf_lrintf (normfact * ptr [total + k]) ;
578 gsm610_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
597 sptr [k] = psf_lrint (normfact * ptr [total + k]) ;