Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: celt/arm/armcpu.h

Issue 28553003: Updating Opus to a pre-release of 1.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Removing failing file Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « celt/arch.h ('k') | celt/arm/armcpu.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « celt/arch.h ('k') | celt/arm/armcpu.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698