Lines Matching defs:ptr

79 static sf_count_t paf24_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
80 static sf_count_t paf24_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len) ;
81 static sf_count_t paf24_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len) ;
82 static sf_count_t paf24_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len) ;
84 static sf_count_t paf24_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len) ;
85 static sf_count_t paf24_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len) ;
86 static sf_count_t paf24_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len) ;
87 static sf_count_t paf24_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len) ;
301 psf->header.ptr [0] = 0 ;
320 psf_fwrite (psf->header.ptr, psf->header.indx, 1, psf) ;
514 paf24_read (SF_PRIVATE *psf, PAF24_PRIVATE *ppaf24, int *ptr, int len)
519 { memset (&(ptr [total]), 0, (len - total) * sizeof (int)) ;
529 memcpy (&(ptr [total]), &(ppaf24->samples [ppaf24->read_count * ppaf24->channels]), count * sizeof (int)) ;
538 paf24_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t len)
555 ptr [total + k] = iptr [k] >> 16 ;
563 paf24_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t len)
571 total = paf24_read (psf, ppaf24, ptr, len) ;
577 paf24_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t len)
597 ptr [total + k] = normfact * iptr [k] ;
605 paf24_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t len)
625 ptr [total + k] = normfact * iptr [k] ;
686 paf24_write (SF_PRIVATE *psf, PAF24_PRIVATE *ppaf24, const int *ptr, int len)
695 memcpy (&(ppaf24->samples [ppaf24->write_count * ppaf24->channels]), &(ptr [total]), count * sizeof (int)) ;
707 paf24_write_s (SF_PRIVATE *psf, const short *ptr, sf_count_t len)
723 iptr [k] = ptr [total + k] << 16 ;
734 paf24_write_i (SF_PRIVATE *psf, const int *ptr, sf_count_t len)
746 count = paf24_write (psf, ppaf24, ptr, writecount) ;
758 paf24_write_f (SF_PRIVATE *psf, const float *ptr, sf_count_t len)
777 iptr [k] = psf_lrintf (normfact * ptr [total + k]) ;
789 paf24_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
808 iptr [k] = psf_lrint (normfact * ptr [total+k]) ;