diff lsp.h @ 10557:f2f4d6fe3f6d libavcodec

Make sorting function used in TwinVQ a shared function
author vitor
date Sun, 22 Nov 2009 22:25:58 +0000
parents 5317dff91b48
children d4ca61e293a3
line wrap: on
line diff
--- a/lsp.h	Sun Nov 22 21:08:46 2009 +0000
+++ b/lsp.h	Sun Nov 22 22:25:58 2009 +0000
@@ -97,4 +97,11 @@
  */
 void ff_acelp_lspd2lpc(const double *lsp, float *lpc, int lp_half_order);
 
+/**
+ * Sort values in ascending order.
+ *
+ * @note O(n) if data already sorted, O(n^2) - otherwise
+ */
+void ff_sort_nearly_sorted_floats(float *vals, int len);
+
 #endif /* AVCODEC_LSP_H */