search for: output_buf

Displaying 6 results from an estimated 6 matches for "output_buf".

2010 Apr 10
2
Is Speex 1.0 and >=1.1 compatible?
...767.0; if (buf_len == frame_size) { speex_encode(enc_state, sample_buf, &bits); buf_len = 0; if (++frame_cnt == 4) // Four frames per packet { speex_bits_insert_terminator(&bits); int nbytes = speex_bits_nbytes(&bits); char output_buf[nbytes]; nbytes = speex_bits_write(&bits, output_buf, nbytes); writeEncodedSamples(output_buf, nbytes); speex_bits_reset(&bits); frame_cnt = 0; } } } return count; } /* AudioEncoderSpeex::writeSamples */ The decoder have looked like this...
2010 Apr 11
2
Is Speex 1.0 and >=1.1 compatible?
...s); > > buf_len = 0; > > > > if (++frame_cnt == 4) // Four frames per packet > > { > > > > speex_bits_insert_terminator(&bits); > > int nbytes = speex_bits_nbytes(&bits); > > char output_buf[nbytes]; > > nbytes = speex_bits_write(&bits, output_buf, nbytes); > > writeEncodedSamples(output_buf, nbytes); > > speex_bits_reset(&bits); > > frame_cnt = 0; > > > > } > > > > } &...
2010 Apr 10
0
Is Speex 1.0 and >=1.1 compatible?
...{ > speex_encode(enc_state, sample_buf,&bits); > buf_len = 0; > > if (++frame_cnt == 4) // Four frames per packet > { > speex_bits_insert_terminator(&bits); > int nbytes = speex_bits_nbytes(&bits); > char output_buf[nbytes]; > nbytes = speex_bits_write(&bits, output_buf, nbytes); > writeEncodedSamples(output_buf, nbytes); > speex_bits_reset(&bits); > frame_cnt = 0; > } > } > } > > return count; > > } /* AudioEncoderS...
2010 Apr 11
0
Is Speex 1.0 and >=1.1 compatible?
...t; buf_len = 0; >>> >>> if (++frame_cnt == 4) // Four frames per packet >>> { >>> >>> speex_bits_insert_terminator(&bits); >>> int nbytes = speex_bits_nbytes(&bits); >>> char output_buf[nbytes]; >>> nbytes = speex_bits_write(&bits, output_buf, nbytes); >>> writeEncodedSamples(output_buf, nbytes); >>> speex_bits_reset(&bits); >>> frame_cnt = 0; >>> >>> } >>> >&g...
2015 Nov 02
2
noalias parameter attribute not currently exploited by alias analysis?
...bcmy01 from eembc-1.1, but have created a simpler test case which demonstrates the same issue which is unencumbered by the EEMBC license. Consider this simple example program: #include <stdint.h> #include <stdio.h> void main_loop(int len, uint8_t *restrict input_buf, uint8_t *restrict output_buf) { int i; uint8_t a, b, c; #pragma clang loop unroll_count(8) for (i = 0; i < len; i++) { a = *input_buf++; b = *input_buf++; c = *input_buf++; a = (uint8_t) (a - 10); b = (uint8_t) (b - 20); c = (uint8_t) (c - 30); *output_buf++ = a; *output_buf++ =...
2011 Mar 30
2
[PATCH] xenstore-stat v2
...ff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c index 94b82b9..cd8b4d8 100644 --- a/tools/xenstore/xenstore_client.c +++ b/tools/xenstore/xenstore_client.c @@ -37,6 +37,7 @@ enum mode { MODE_rm, MODE_write, MODE_watch, + MODE_stat, }; static char *output_buf = NULL; @@ -99,6 +100,9 @@ usage(enum mode mode, int incl_mode, const char *progname) case MODE_watch: mstr = incl_mode ? "watch " : ""; errx(1, "Usage: %s %s[-h] [-n NR] key", progname, mstr); + case MODE_stat: + mstr = incl_mode ? "stat " : &quo...