Lines Matching +full:1 +full:x64 +full:- +full:bit
9 * October 7, 1998 - cbagwell@sprynet.com
25 {"\x2e\x73\x6e\x64", MACHINE_IS_LITTLEENDIAN, "big-endian `.snd'"},
26 {"\x64\x6e\x73\x2e", MACHINE_IS_BIGENDIAN , "little-endian `.snd'"},
27 {"\x00\x64\x73\x2e", MACHINE_IS_BIGENDIAN , "little-endian `\\0ds.' (for DEC)"},
28 {"\x2e\x73\x64\x00", MACHINE_IS_LITTLEENDIAN, "big-endian `\\0ds.'"},
41 "Unspecified", "8-bit mu-law", "8-bit signed linear", "16-bit signed linear",
42 "24-bit signed linear", "32-bit signed linear", "Floating-point",
44 "8-bit fixed-point", "16-bit fixed-point", "24-bit fixed-point",
45 "32-bit fixed-point", "Unknown", "Non-audio data", "Mu-law squelch",
46 "16-bit linear with emphasis", "16-bit linear with compression",
47 "16-bit linear with emphasis and compression", "Music Kit DSP commands",
48 "Music Kit DSP samples", "4-bit G.721 ADPCM", "G.722 ADPCM",
49 "3-bit G.723 ADPCM", "5-bit G.723 ADPCM", "8-bit a-law", "Unknown"};
75 case Adpcm_g721 : *size = 4; return SOX_ENCODING_G721; /* read-only */ in sox_enc()
76 case Adpcm_g723_3: *size = 3; return SOX_ENCODING_G723; /* read-only */ in sox_enc()
77 case Adpcm_g723_5: *size = 5; return SOX_ENCODING_G723; /* read-only */ in sox_enc()
91 * Returns 1 if there is residual input, returns -1 if eof, else returns 0.
96 priv_t * p = (priv_t *) ft->priv; in unpack_input()
99 if (p->in_bits < (int)ft->encoding.bits_per_sample) { in unpack_input()
100 if (lsx_read_b_buf(ft, &in_byte, (size_t) 1) != 1) { in unpack_input()
102 return -1; in unpack_input()
104 p->in_buffer |= (in_byte << p->in_bits); in unpack_input()
105 p->in_bits += 8; in unpack_input()
107 *code = p->in_buffer & ((1 << ft->encoding.bits_per_sample) - 1); in unpack_input()
108 p->in_buffer >>= ft->encoding.bits_per_sample; in unpack_input()
109 p->in_bits -= ft->encoding.bits_per_sample; in unpack_input()
110 return p->in_bits > 0; in unpack_input()
115 priv_t * p = (priv_t *)ft->priv; in dec_read()
119 for (done = 0; samp > 0 && unpack_input(ft, &code) >= 0; ++done, --samp) in dec_read()
121 (*p->dec_routine)(code, AUDIO_ENCODING_LINEAR, &p->state),); in dec_read()
127 priv_t * p = (priv_t *) ft->priv; in startread()
130 uint32_t data_size; /* big-endians. At least extra bytes (totalling */ in startread()
131 uint32_t ft_encoding; /* hdr_size - FIXED_HDR) are an "info" field of */ in startread()
146 ft->encoding.reverse_bytes = id[i].reverse_bytes; in startread()
169 case Adpcm_g721 : p->dec_routine = g721_decoder ; break; in startread()
170 case Adpcm_g723_3: p->dec_routine = g723_24_decoder; break; in startread()
171 case Adpcm_g723_5: p->dec_routine = g723_40_decoder; break; in startread()
173 if (p->dec_routine) { in startread()
174 g72x_init_state(&p->state); in startread()
175 ft->handler.seek = NULL; in startread()
176 ft->handler.read = dec_read; in startread()
180 size_t info_size = hdr_size - FIXED_HDR; in startread()
181 char * buf = lsx_calloc(1, info_size + 1); /* +1 ensures null-terminated */ in startread()
186 sox_append_comments(&ft->oob.comments, buf); in startread()
197 char * comment = lsx_cat_comments(ft->oob.comments); in write_header()
198 size_t len = strlen(comment) + 1; /* Write out null-terminated */ in write_header()
200 int i = ft->encoding.reverse_bytes == MACHINE_IS_BIGENDIAN? 2 : 0; in write_header()
201 uint64_t size64 = ft->olength ? ft->olength : ft->signal.length; in write_header()
204 : size64*(ft->encoding.bits_per_sample >> 3) > UINT_MAX in write_header()
206 : (unsigned)(size64*(ft->encoding.bits_per_sample >> 3)); in write_header()
211 ||lsx_writedw(ft, ft_enc(ft->encoding.bits_per_sample, ft->encoding.encoding)) in write_header()
212 ||lsx_writedw(ft, (unsigned)(ft->signal.rate + .5)) in write_header()
213 ||lsx_writedw(ft, ft->signal.channels) in write_header()
215 ||lsx_padbytes(ft, info_len - len); in write_header()