Lines Matching defs:ptr
67 static int ima_read_block (SF_PRIVATE *psf, IMA_ADPCM_PRIVATE *pima, short *ptr, int len) ;
68 static int ima_write_block (SF_PRIVATE *psf, IMA_ADPCM_PRIVATE *pima, const short *ptr, int len) ;
70 static sf_count_t ima_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
71 static sf_count_t ima_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len) ;
72 static sf_count_t ima_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len) ;
73 static sf_count_t ima_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len) ;
75 static sf_count_t ima_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len) ;
76 static sf_count_t ima_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len) ;
77 static sf_count_t ima_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len) ;
78 static sf_count_t ima_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len) ;
571 ima_read_block (SF_PRIVATE *psf, IMA_ADPCM_PRIVATE *pima, short *ptr, int len)
576 { memset (&(ptr [indx]), 0, (size_t) ((len - indx) * sizeof (short))) ;
586 memcpy (&(ptr [indx]), &(pima->samples [pima->samplecount * pima->channels]), count * sizeof (short)) ;
596 ima_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len)
608 count = ima_read_block (psf, pima, ptr, readcount) ;
620 ima_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len)
637 ptr [total + k] = arith_shift_left (sptr [k], 16) ;
648 ima_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len)
668 ptr [total + k] = normfact * (float) (sptr [k]) ;
679 ima_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len)
699 ptr [total + k] = normfact * (double) (sptr [k]) ;
874 ima_write_block (SF_PRIVATE *psf, IMA_ADPCM_PRIVATE *pima, const short *ptr, int len)
883 memcpy (&(pima->samples [pima->samplecount * pima->channels]), &(ptr [total]), count * sizeof (short)) ;
896 ima_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len)
908 count = ima_write_block (psf, pima, ptr, writecount) ;
920 ima_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len)
936 sptr [k] = ptr [total + k] >> 16 ;
948 ima_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len)
967 sptr [k] = psf_lrintf (normfact * ptr [total + k]) ;
979 ima_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
998 sptr [k] = psf_lrint (normfact * ptr [total + k]) ;