search for: int16_t

Displaying 20 results from an estimated 249 matches for "int16_t".

Did you mean: uint16_t
2000 Apr 19
3
integer pcm decode patch
Hi! I've spent the last few nights digging into the Vorbis source and working to implement a vorbis_synthesis_pcmout_int() function that kicks out interleaved int16_t pcm data. I think its important to have this function available to make the job for people using the codec a little easier. This function abstracts out the conversion to int16_t and removes the extra overhead of moving the pcm data over the processors data bus just to do the int16_t conversion aft...
2006 Jun 17
3
Assistance with an encoding plugin
...er, write_callback); FLAC__stream_encoder_set_metadata_callback(plugin->encoder, metadata_callback); FLAC__stream_encoder_set_client_data(plugin->encoder, output_file_descriptor); FLAC__stream_encoder_init(plugin->encoder); while(/* audio data left to extract */) { /* audio buffer is an int16_t buffer that paranoia dumps interleaved audio into */ FLAC__stream_encoder_process_interleaved( encoder, audio_buffer, CD_FRAMESIZE_RAW / 4); } FLAC__stream_encoder_finish(e...
2015 May 15
0
[RFC V3 5/8] aarch64: celt_pitch_xcorr: Fixed point intrinsics
...al16 *_y, (const float32_t *)_y+i, (float32_t *)xcorr+i, len); } } +#else /* FIXED POINT */ + +/* + * Function: xcorr_kernel_neon_fixed + * --------------------------------- + * Computes 8 correlation values and stores them in sum[8] + */ +static void xcorr_kernel_neon_fixed(const int16_t *x, const int16_t *y, + int32_t sum[4], int len) { + int16x8_t YY[3]; + int16x4_t YEXT[3]; + int16x8_t XX[2]; + int16x4_t XX_2, YY_2; + int32x4_t SUMM; + const int16_t *xi = x; + const int16_t *yi = y; + + celt_assert(len>4); + + YY[0] = vld1q...
2015 May 08
0
[[RFC PATCH v2]: Ne10 fft fixed and previous 5/8] aarch64: celt_pitch_xcorr: Fixed point intrinsics
...al16 *_y, (const float32_t *)_y+i, (float32_t *)xcorr+i, len); } } +#else /* FIXED POINT */ + +/* + * Function: xcorr_kernel_neon_fixed + * --------------------------------- + * Computes 8 correlation values and stores them in sum[8] + */ +static void xcorr_kernel_neon_fixed(const int16_t *x, const int16_t *y, + int32_t sum[4], int len) { + int16x8_t YY[3]; + int16x4_t YEXT[3]; + int16x8_t XX[2]; + int16x4_t XX_2, YY_2; + int32x4_t SUMM; + const int16_t *xi = x; + const int16_t *yi = y; + + celt_assert(len>4); + + YY[0] = vld1q...
2004 Oct 22
5
theora-mmx_on_win32?
Hi. Has anyone tried http://svn.xiph.org/branches/theora-mmx this code on Win32 ? I can compile it with very small modification, 304c304 < ogg_int16_t *const temp= (ogg_int16_t*)align_tmp; --- > ogg_int16_t *const temp= (int16_t*)align_tmp; but outputs seem terribly broken. -> ex. http://mycomputer.cc/temp/mmx-out.ogg GCC version is 3.4.2. $ gcc --version gcc.exe (GCC) 3.4.2 (mingw-special) Can anyone help me ? -- TSUJIYAMA Akihiko...
2012 Feb 09
2
[PATCH] Remove even more CPP hackery
...Dave Yeo wrote: >> Yes that makes sense. Requiring a C99 compliant compiler seems quite reasonable. > Well I'm actually going to be even more reasonable than that. The only bits of C99 that flac will really require is header file > with C99 standard width integers (int8_t, uint8_t, int16_t etc). Erik I would recommend including with the distribution a file for windows developers to use. It's fairly simple /* since windows doesn't have stdint.h */ typedef unsigned __int64 uint64_t; typedef unsigned __int32 uint32_t; typedef unsigned __int16 uint16_t; typedef unsigned...
2009 Jan 08
1
[LLVMdev] Integer typedefs for MSVC
LLVM's typedefs for int32_t etc. under MSVC (in Support/DataTypes.h) conflict with those used by other third-party libraries. Instead of these: #ifdef _MSC_VER typedef __int64 int64_t; typedef unsigned __int64 uint64_t; typedef signed int int32_t; typedef unsigned int uint32_t; typedef short int16_t; typedef unsigned short uint16_t; typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed int ssize_t; #endif it would be preferable to use these: typedef __int8 int8_t; typedef __int16 int16_t; typedef __int32 int32_t; typedef __int64 int64_t; typedef unsigned __int8 uint8_t; t...
2012 Feb 09
1
[PATCH] Remove even more CPP hackery
...compliant compiler >>>> seems quite >> reasonable. >>> Well I'm actually going to be even more reasonable than that. >>> The only >> bits of C99 that flac will really require is header file >>> with C99 standard width integers (int8_t, uint8_t, int16_t >>> etc). Erik >> >> I would recommend including with the distribution a file for >> windows developers to use. It's fairly simple >> >> >> /* since windows doesn't have stdint.h */ typedef unsigned >> __int64 uint64_t; typedef unsigned...
2011 Sep 01
0
[PATCH 5/5] resample: Add NEON optimized inner_product_single for floating point
...;r" (ret) + : [a] "r" (a) + : "q0"); + return ret; +} +#endif +#undef WORD2INT +#define WORD2INT(x) (saturate_32bit_to_16bit(x)) + #define OVERRIDE_INNER_PRODUCT_SINGLE /* Only works when len % 4 == 0 */ static inline int32_t inner_product_single(const int16_t *a, const int16_t *b, unsigned int len) @@ -97,4 +121,81 @@ static inline int32_t inner_product_single(const int16_t *a, const int16_t *b, u return ret; } +#elif defined(FLOATING_POINT) + +static inline int32_t saturate_float_to_16bit(float a) { + int32_t ret; + asm ("vmov.f32 d0...
2020 Apr 07
2
Questions about vscale
...tic unless you can just commit to one specific value of vscale. Also, I had a question about your table. Based on your description of how LMUL works, I’d expect that LMUL == vscale, and that each column in your table would be the same: int64_t | vscale x 1 x i64 int32_t | vscale x 2 x i32 int16_t | vscale x 4 x i16 int8_t | vscale x 8 x i8 … which is basically equivalent to: int64_t | LMUL x 1 x i64 int32_t | LMUL x 2 x i32 int16_t | LMUL x 4 x i16 int8_t | LMUL x 8 x i8 … is this not the case? Thanks, Chris Tetreault From: llvm-dev <llvm-dev-bounces at lists.llvm.org<ma...
2017 Dec 19
0
[PATCH] Implement classless static routes
..., 197 insertions(+), 21 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c index 150ebfa7..ae050127 100644 --- a/usr/kinit/ipconfig/bootp_proto.c +++ b/usr/kinit/ipconfig/bootp_proto.c @@ -267,6 +267,87 @@ static char *bootp_ext119_decode(const void *ext, int16_t ext_size, void *tmp) return decoded_str; } +/* + * DESCRIPTION + * bootp_ext121_decode() decodes Classless Route Option data. + * + * ARGUMENTS + * const uint8_t *ext + * *ext is a pointer to a DHCP Classless Route Option data. + * For example, if *ext is {16, 192, 168, 192, 168, 42, 1},...
2011 Sep 01
6
[PATCH 0/5] ARM NEON optimization for samplerate converter
From: Jyri Sarha <jsarha at ti.com> I optimized Speex resampler for NEON capable ARM CPUs. The first patch should speed up resampling on any platform that can spare the increased memory usage. It would be nice to have these merged to the master branch. Please let me know if there is anything I can do to help the the merge. The patches have been rebased on top of master branch in
2018 Jun 12
0
[PATCH v2] Implement classless static routes
..., 215 insertions(+), 22 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c index 150ebfa7..ee218d5f 100644 --- a/usr/kinit/ipconfig/bootp_proto.c +++ b/usr/kinit/ipconfig/bootp_proto.c @@ -267,6 +267,87 @@ static char *bootp_ext119_decode(const void *ext, int16_t ext_size, void *tmp) return decoded_str; } +/* + * DESCRIPTION + * bootp_ext121_decode() decodes Classless Route Option data. + * + * ARGUMENTS + * const uint8_t *ext + * *ext is a pointer to a DHCP Classless Route Option data. + * For example, if *ext is {16, 192, 168, 192, 168, 42, 1},...
2006 Jun 19
0
Assistance with an encoding plugin
..._encoder_set_metadata_callback(plugin->encoder, >metadata_callback); >FLAC__stream_encoder_set_client_data(plugin->encoder, >output_file_descriptor); >FLAC__stream_encoder_init(plugin->encoder); > >while(/* audio data left to extract */) >{ > /* audio buffer is an int16_t buffer that paranoia dumps interleaved >audio into */ > FLAC__stream_encoder_process_interleaved( encoder, > audio_buffer, > CD_FRAMESIZE_RAW / >4); > >} >...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...ed, 212 insertions(+), 25 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c index 150ebfa..f6f9dd4 100644 --- a/usr/kinit/ipconfig/bootp_proto.c +++ b/usr/kinit/ipconfig/bootp_proto.c @@ -267,6 +267,87 @@ static char *bootp_ext119_decode(const void *ext, int16_t ext_size, void *tmp) return decoded_str; } +/* + * DESCRIPTION + * bootp_ext121_decode() decodes Classless Route Option data. + * + * ARGUMENTS + * const uint8_t *ext + * *ext is a pointer to a DHCP Classless Route Option data. + * For example, if *ext is {16, 192, 168, 192, 168, 42, 1},...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
..., 212 insertions(+), 25 deletions(-) diff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c index 150ebfa7..f6f9dd43 100644 --- a/usr/kinit/ipconfig/bootp_proto.c +++ b/usr/kinit/ipconfig/bootp_proto.c @@ -267,6 +267,87 @@ static char *bootp_ext119_decode(const void *ext, int16_t ext_size, void *tmp) return decoded_str; } +/* + * DESCRIPTION + * bootp_ext121_decode() decodes Classless Route Option data. + * + * ARGUMENTS + * const uint8_t *ext + * *ext is a pointer to a DHCP Classless Route Option data. + * For example, if *ext is {16, 192, 168, 192, 168, 42, 1},...
2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
...x->ut_user, sizeof(futx->ut_user)); + strncpy(futx->ut_id, utx->ut_id, sizeof(futx->ut_id)); + strncpy(futx->ut_line, utx->ut_line, sizeof(futx->ut_line)); + futx->ut_pid = (pid32_t)utx->ut_pid; + futx->ut_type = (int16_t)utx->ut_type; + futx->ut_exit.e_termination = (int16_t)utx->ut_exit.e_termination; + futx->ut_exit.e_exit = (int16_t)utx->ut_exit.e_exit; + futx->ut_tv.tv_sec = (time32_t)utx->ut_tv.tv_sec; + futx->ut_tv.tv_usec = (int32_t)utx-...
2019 Jan 21
2
A bug in command localboot was introduced in version 6.03.
diff --git a/core/localboot.c b/core/localboot.c index 0b8769e4..30bfb272 100644 --- a/core/localboot.c +++ b/core/localboot.c @@ -63,7 +63,6 @@ __export void local_boot(int16_t ax) ireg.eax.w[0] = 0; /* Reset drive */ __intcall(0x13, &ireg, NULL); - memset(&ireg, 0, sizeof(ireg)); ireg.eax.w[0] = 0x0201; /* Read one sector */ ireg.ecx.w[0] = 0x0001; /* C/H/S = 0/0/1 (first sector) */ ireg.ebx.w[0] = OFFS(trackbuf); 21.01.2019 11:03, Erwan Velu wri...
2002 Dec 10
2
mingw compiling problem for libogg
...have attached a patch that will fix this problem (i hope it attaches correctly) thx, Nehal --- os_types.h.old Fri Jul 19 02:25:52 2002 +++ os_types.h Tue Dec 10 14:15:44 2002 @@ -32,6 +32,13 @@ typedef __int32 ogg_int32_t; typedef unsigned __int32 ogg_uint32_t; typedef __int16 ogg_int16_t; +# elif defined(__MINGW32_VERSION) + /* Mingw */ +# include <stdint.h> + typedef int64_t ogg_int64_t; + typedef int32_t ogg_int32_t; + typedef uint32_t ogg_uint32_t; + typedef int16_t ogg_int16_t; # else /* Cygwin */ #include <_G_config.h> --- >8 ---- List arc...
2014 May 16
3
Error when compiling FFmpeg with speex-git.
...libavcodec/libspeexdec.o In file included from /home/user/build/include/speex/speex_types.h:122:0, from /home/user/build/include/speex/speex.h:43, from libavcodec/libspeexdec.c:21: /home/user/build/include/speex/speex_config_types.h:12:1: error: unknown type name ?int16_t? typedef int16_t spx_int16_t; ^ /home/user/build/include/speex/speex_config_types.h:13:1: error: unknown type name ?uint16_t? typedef uint16_t spx_uint16_t; ^ /home/user/build/include/speex/speex_config_types.h:14:1: error: unknown type name ?int32_t? typedef int32_t spx_int32_t; ^ /home/user...