| Index: celt/arm/armcpu.h
|
| diff --git a/src/opus.c b/celt/arm/armcpu.h
|
| similarity index 76%
|
| copy from src/opus.c
|
| copy to celt/arm/armcpu.h
|
| index d6ae7bab24e688901361e9681386d99492fb067f..68d80fe222560a7d01a0ebd317e752f0ed0ab8fa 100644
|
| --- a/src/opus.c
|
| +++ b/celt/arm/armcpu.h
|
| @@ -1,5 +1,5 @@
|
| -/* Copyright (c) 2011 Xiph.Org Foundation, Skype Limited
|
| - Written by Jean-Marc Valin and Koen Vos */
|
| +/* Copyright (c) 2010 Xiph.Org Foundation
|
| + * Copyright (c) 2013 Parrot */
|
| /*
|
| Redistribution and use in source and binary forms, with or without
|
| modification, are permitted provided that the following conditions
|
| @@ -25,23 +25,11 @@
|
| SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifdef HAVE_CONFIG_H
|
| -#include "config.h"
|
| -#endif
|
| +/* Original code from libtheora modified to suit to Opus */
|
|
|
| -#include "opus.h"
|
| -#include "opus_private.h"
|
| +#ifndef ARMCPU_H
|
| +#define ARMCPU_H
|
|
|
| -int encode_size(int size, unsigned char *data)
|
| -{
|
| - if (size < 252)
|
| - {
|
| - data[0] = size;
|
| - return 1;
|
| - } else {
|
| - data[0] = 252+(size&0x3);
|
| - data[1] = (size-(int)data[0])>>2;
|
| - return 2;
|
| - }
|
| -}
|
| +int opus_select_arch(void);
|
|
|
| +#endif
|
|
|