/titanic_41/usr/src/cmd/audio/utilities/ |
H A D | AudioHdr.cc | 59 bytes_per_unit = 0; in Clear() 70 if ((bytes_per_unit < 1) || (samples_per_unit < 1) || in Validate() 79 if (bytes_per_unit > 4) in Validate() 86 if ((bytes_per_unit != 4) && (bytes_per_unit != 8)) in Validate() 95 if (bytes_per_unit != 1) in Validate() 104 if ((bytes_per_unit != 1) || (samples_per_unit != 2)) in Validate() 111 if ((bytes_per_unit != 3) || (samples_per_unit != 8)) in Validate() 129 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Time() 132 ((double)(channels * bytes_per_unit * sample_rate) / in Bytes_to_Time() 149 ((double)(channels * bytes_per_unit * sample_rate) / in Time_to_Bytes() [all …]
|
H A D | AudioTypePcm.cc | 61 switch (h.bytes_per_unit) { in CanConvert() 69 switch (h.bytes_per_unit) { in CanConvert() 78 switch (h.bytes_per_unit) { in CanConvert() 242 (outhdr.bytes_per_unit <= inhdr.bytes_per_unit)) { in Convert() 282 switch (inhdr.bytes_per_unit) { in Convert() 284 switch (outhdr.bytes_per_unit) { in Convert() 292 switch (outhdr.bytes_per_unit) { in Convert() 300 switch (outhdr.bytes_per_unit) { in Convert() 312 switch (inhdr.bytes_per_unit) { in Convert() 314 switch (outhdr.bytes_per_unit) { in Convert() [all …]
|
H A D | AudioHdrParse.cc | 128 if ((samples_per_unit == 0) || (bytes_per_unit == 0) || in EncodingString() 133 iprec = (bytes_per_unit * 8) / samples_per_unit; in EncodingString() 134 prec = ((Double)bytes_per_unit * 8.) / (Double)samples_per_unit; in EncodingString() 418 bytes_per_unit = 1; in EncodingParse() 426 bytes_per_unit = 1; in EncodingParse() 439 bytes_per_unit = irint(prec / 8.); in EncodingParse() 449 bytes_per_unit = irint(prec / 8.); in EncodingParse() 459 bytes_per_unit = irint(prec / 8.); in EncodingParse() 469 bytes_per_unit = irint(prec / 8.); in EncodingParse() 479 bytes_per_unit = irint(prec / 8.); in EncodingParse() [all …]
|
H A D | filehdr.c | 822 hdrp->bytes_per_unit = 1; in audio_decode_filehdr() 827 hdrp->bytes_per_unit = 1; in audio_decode_filehdr() 836 hdrp->bytes_per_unit = 1; in audio_decode_filehdr() 841 hdrp->bytes_per_unit = 2; in audio_decode_filehdr() 846 hdrp->bytes_per_unit = 3; in audio_decode_filehdr() 851 hdrp->bytes_per_unit = 4; in audio_decode_filehdr() 856 hdrp->bytes_per_unit = 4; in audio_decode_filehdr() 861 hdrp->bytes_per_unit = 8; in audio_decode_filehdr() 866 hdrp->bytes_per_unit = 1; in audio_decode_filehdr() 871 hdrp->bytes_per_unit = 3; in audio_decode_filehdr() [all …]
|
H A D | hdr_misc.c | 51 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_bytes_to_secs() 67 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_secs_to_bytes() 71 offset -= (offset % (hp->bytes_per_unit * hp->channels)); in audio_secs_to_bytes() 192 (h1->bytes_per_unit != h2->bytes_per_unit) || in audio_cmp_hdr() 257 (void) sprintf(pbuf, "%u-bit", hdrp->bytes_per_unit * 8); in audio_enc_to_str() 267 (double)(hdrp->bytes_per_unit * 8) / in audio_enc_to_str()
|
H A D | AudioTypeG72X.cc | 64 (h.bytes_per_unit != 2)) in CanConvert() 70 (h.bytes_per_unit != 1)) in CanConvert() 75 (h.bytes_per_unit != 1)) in CanConvert() 83 if (h.bytes_per_unit != 3) in CanConvert() 130 (inhdr.bytes_per_unit == outhdr.bytes_per_unit)) { in Convert() 136 4 * outhdr.bytes_per_unit * outhdr.channels); in Convert()
|
H A D | AudioTypeChannel.cc | 97 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert() 114 (inhdr.bytes_per_unit > 2)) in Convert() 134 switch (inhdr.bytes_per_unit) { in Convert()
|
H A D | AudioTypeSampleRate.cc | 63 (h.bytes_per_unit != 2) || in CanConvert() 177 cnt = (size_t)nsamp * h.bytes_per_unit; in Flush() 185 cnt = (size_t)nsamp * h.bytes_per_unit; in Flush()
|
H A D | AudioTypeMux.cc | 102 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert() 114 unitsz = (size_t)inhdr.bytes_per_unit; in Convert()
|
H A D | AudioUnixfile.cc | 142 hdr_local.bytes_per_unit = ohdr.bytes_per_unit; in decode_filehdr() 210 ohdr.bytes_per_unit = hdr_local.bytes_per_unit; in encode_filehdr()
|
H A D | device_ctl.c | 98 prinfo->precision = hdrp->bytes_per_unit * 8; in audio__setplayhdr() 119 hdrp->bytes_per_unit = prinfo->precision / 8; in audio__setplayhdr()
|
H A D | AudioGain.cc | 204 newhdr.bytes_per_unit = 8; in Process()
|
/titanic_41/usr/src/cmd/audio/include/ |
H A D | AudioHdr.h | 125 unsigned int bytes_per_unit; // bytes per sample unit variable 131 sample_rate(0), samples_per_unit(0), bytes_per_unit(0), in AudioHdr() 142 bytes_per_unit(hdr.bytes_per_unit), in AudioHdr() 192 hdr.bytes_per_unit = bytes_per_unit; in Audio_hdr() 204 (bytes_per_unit == tst.bytes_per_unit) &&
|
H A D | audio_hdr.h | 93 unsigned bytes_per_unit; /* bytes per sample unit */ member
|
/titanic_41/usr/src/cmd/audio/audioconvert/ |
H A D | convert.cc | 276 ihdr.bytes_per_unit = unitsz; in add_pcm_convert() 377 ihdr.bytes_per_unit = unitsz; in add_compress() 381 ihdr.bytes_per_unit = unitsz; in add_compress() 438 ihdr.bytes_per_unit = unitsz; in add_decompress() 443 ihdr.bytes_per_unit = 2; in add_decompress() 545 (ihp.bytes_per_unit != ohp.bytes_per_unit)) 592 ohdr.encoding, ohdr.bytes_per_unit, in build_conversion_list() 617 ohdr.encoding, ohdr.bytes_per_unit, in build_conversion_list() 631 ohdr.encoding, ohdr.bytes_per_unit, in build_conversion_list() 636 ohdr.encoding, ohdr.bytes_per_unit, in build_conversion_list() [all …]
|
H A D | parse.cc | 117 hdr.bytes_per_unit = 2; in audioformat_parse() 123 hdr.bytes_per_unit = 2; in audioformat_parse() 129 hdr.bytes_per_unit = 1; in audioformat_parse()
|
H A D | main.cc | 397 hdr.bytes_per_unit = 0; in init_header()
|
/titanic_41/usr/src/cmd/lvm/metassist/common/ |
H A D | volume_string.c | 268 d *= units[i].bytes_per_unit; in sizestr_to_bytes() 326 if (bytes >= units[i].bytes_per_unit) { in bytes_to_sizestr() 331 value = ((long double)bytes / use_units.bytes_per_unit); in bytes_to_sizestr()
|
H A D | volume_string.h | 55 uint64_t bytes_per_unit; member
|
/titanic_41/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 431 (File_hdr.bytes_per_unit == 1)) { in main() 435 File_hdr.bytes_per_unit = 1; in main() 443 (File_hdr.bytes_per_unit == 3)) { in main() 447 File_hdr.bytes_per_unit = 1; in main() 522 File_hdr.bytes_per_unit * File_hdr.channels; in main() 574 if (File_hdr.bytes_per_unit == 2 && in main() 585 frame = File_hdr.bytes_per_unit * File_hdr.channels; in main() 596 frame = File_hdr.bytes_per_unit * File_hdr.channels; in main()
|
/titanic_41/usr/src/cmd/audio/audiorecord/ |
H A D | audiorecord.c | 426 Precision = File_hdr.bytes_per_unit * 8; in main() 527 Dev_hdr.bytes_per_unit = Precision / 8; in main() 542 Dev_hdr.bytes_per_unit == 1) { in main() 548 Dev_hdr.bytes_per_unit = AUDIO_PRECISION_8 / 8; in main() 608 if (Dev_hdr.bytes_per_unit == 2 && in main() 701 Dev_hdr.channels, Dev_hdr.bytes_per_unit); in main()
|
/titanic_41/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fsinfo.c | 422 int rc, bytes_per_unit; in smb_fssize() local 440 bytes_per_unit = in smb_fssize() 451 fssize->fs_caller_units = quota.q_limit / bytes_per_unit; in smb_fssize() 456 (quota.q_limit - quota.q_used) / bytes_per_unit; in smb_fssize()
|