search for: celt_int16

Displaying 7 results from an estimated 7 matches for "celt_int16".

2010 Mar 25
0
Blackfin inline assembly for fixed math
...ND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef FIXED_BFIN_H #define FIXED_BFIN_H #undef MAX16 static inline celt_int16 MAX16(celt_int16 a, celt_int16 b) { celt_int32 res; __asm__ ( "%1 = %1.L (X);\n\t" "%2 = %2.L (X);\n\t" "%0 = MAX(%1,%2);" : "=d" (res) : "%d" (a), "d" (b) ); return res; } #undef MIN16 static...
2010 Mar 03
2
uint decode error on visual studio...
...for writing\n",encodedfilename); return -1; } FILE* outputfile=fopen(outputfilename,"wb"); if(!outputfile) { printf("ERROR opening %s for writing\n",outputfilename); return -1; } int bytes_per_packet = ((gBitRate*gFrameSize/gSampleRate+4)/8)*gNrChannels; int error=0; celt_int16* pcmbuffer=(celt_int16*)malloc(sizeof(celt_int16)*gFrameSize*gNrChannels); unsigned char* encodedbuffer=(unsigned char*)malloc(bytes_per_packet); CELTMode* mode=celt_mode_create(gSampleRate,gFrameSize,&error); if(mode==NULL || error!=CELT_OK) { printf("ERROR: celt_mode_create %s\n",...
2010 Jul 01
4
(no subject)
Jean-Mark, Tim, Could either of you expound on the following comment in cwrs.c? /*If _k==0, the following do-while loop will overflow the buffer.*/ ---------------------------------------------------------------- ...because the following do-loop does overflow the buffer when k=126 k=2; do _u[k]=(k<<1)-1; while(++k<len); Thanks, MikeH -------------- next
2011 May 04
1
V8.1 Fixed Point
I realize this is ancient history, but I am trying to compile Ver 8.1 (from the download page) using Fixed Point and am getting compile errors as follows: argument of type "celt_sig *" is incompatible with parameter of type "celt_int16 *" libcelt81_orig_DSP/libcelt celt.c line 321 1304524612394 19769 argument of type "celt_sig *" is incompatible with parameter of type "celt_int16 *" libcelt81_orig_DSP/libcelt celt.c line 368 1304524612394 19771 argument of type "celt_w...
2010 Sep 13
1
Small mistake in celt_types.h for MacOS X
Hi JM, When porting my project to the Mac, I found that the definition for "celt_int16" and "celt_uint16" are wrong for the MacOS X Framework in celt_types.h, and need to be changed to "int16_t" and "u_int16_t" respectively. Just thought you ought to know. John Ridges
2011 May 09
1
V11.1 Problem
...========================= ==================== #ifdef FIXED_POINT #ifndef DISABLE_FLOAT_API CELT_STATIC int celt_encode_with_ec_float(CELTEncoder * restrict st, const float * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes, ec_enc *enc) { int j, ret, C, N; VARDECL(celt_int16, in); ALLOC_STACK; SAVE_STACK;<<<<<<<<<<<<<<<ERROR Here "declaration may not appear after executable statement in block" ============================================================================ ==================== .and ===...
2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...t a/libcelt/cwrs.h b/libcelt/cwrs.h index 1224a26..443213f 100644 --- a/libcelt/cwrs.h +++ b/libcelt/cwrs.h @@ -35,7 +35,7 @@ #include "entenc.h" #include "entdec.h" -int log2_frac(ec_uint32 val, int frac); +int log2_frac(celt_uint32 val, int frac); void get_required_bits(celt_int16 *bits, int N, int K, int frac); diff --git a/libcelt/ecintrin.h b/libcelt/ecintrin.h index 9222a3c..1a7f168 100644 --- a/libcelt/ecintrin.h +++ b/libcelt/ecintrin.h @@ -26,6 +26,7 @@ */ /*Some common macros for potential platform-specific optimization.*/ +#include "celt_types.h" #i...