Home
last modified time | relevance | path

Searched refs:bytes_per_unit (Results 1 – 22 of 22) sorted by relevance

/titanic_41/usr/src/cmd/audio/utilities/
H A DAudioHdr.cc59 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 DAudioTypePcm.cc61 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 DAudioHdrParse.cc128 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 Dfilehdr.c822 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 Dhdr_misc.c51 ((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 DAudioTypeG72X.cc64 (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 DAudioTypeChannel.cc97 (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 DAudioTypeSampleRate.cc63 (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 DAudioTypeMux.cc102 (inhdr.bytes_per_unit != outhdr.bytes_per_unit)) in Convert()
114 unitsz = (size_t)inhdr.bytes_per_unit; in Convert()
H A DAudioUnixfile.cc142 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 Ddevice_ctl.c98 prinfo->precision = hdrp->bytes_per_unit * 8; in audio__setplayhdr()
119 hdrp->bytes_per_unit = prinfo->precision / 8; in audio__setplayhdr()
H A DAudioGain.cc204 newhdr.bytes_per_unit = 8; in Process()
/titanic_41/usr/src/cmd/audio/include/
H A DAudioHdr.h125 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 Daudio_hdr.h93 unsigned bytes_per_unit; /* bytes per sample unit */ member
/titanic_41/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc276 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 Dparse.cc117 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 Dmain.cc397 hdr.bytes_per_unit = 0; in init_header()
/titanic_41/usr/src/cmd/lvm/metassist/common/
H A Dvolume_string.c268 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 Dvolume_string.h55 uint64_t bytes_per_unit; member
/titanic_41/usr/src/cmd/audio/audioplay/
H A Daudioplay.c431 (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 Daudiorecord.c426 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 Dsmb_fsinfo.c422 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()