~ubuntu-branches/ubuntu/trusty/gst-libav1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/celp_math.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-09-24 17:07:00 UTC
  • mfrom: (1.1.17) (7.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20130924170700-4dg62s3pwl0pdakz
Tags: 1.2.0-1
* New upstream stable release:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <stdint.h>
27
27
 
28
28
/**
29
 
 * fixed-point implementation of cosine in [0; PI) domain.
30
 
 * @param arg fixed-point cosine argument, 0 <= arg < 0x4000
31
 
 *
32
 
 * @return value of (1<<15) * cos(arg * PI / (1<<14)), -0x8000 <= result <= 0x7fff
33
 
 */
34
 
int16_t ff_cos(uint16_t arg);
35
 
 
36
 
/**
37
29
 * fixed-point implementation of exp2(x) in [0; 1] domain.
38
30
 * @param power argument to exp2, 0 <= power <= 0x7fff
39
31
 *
48
40
 *
49
41
 * @return value of (1<<15) * log2(value)
50
42
 */
51
 
int ff_log2(uint32_t value);
 
43
int ff_log2_q15(uint32_t value);
52
44
 
53
45
/**
54
46
 * Shift value left or right depending on sign of offset parameter.
63
55
    else           return value <<  offset;
64
56
}
65
57
 
66
 
/**
67
 
 * Return the dot product.
68
 
 * @param a input data array
69
 
 * @param b input data array
70
 
 * @param length number of elements
71
 
 *
72
 
 * @return dot product = sum of elementwise products
73
 
 */
74
 
float ff_dot_productf(const float* a, const float* b, int length);
75
 
 
76
58
#endif /* AVCODEC_CELP_MATH_H */