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

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/arm/vp56dsp_init_arm.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
#include <stdint.h>
 
22
 
 
23
#include "libavutil/arm/cpu.h"
22
24
#include "libavcodec/avcodec.h"
23
25
#include "libavcodec/vp56dsp.h"
24
26
 
25
27
void ff_vp6_edge_filter_hor_neon(uint8_t *yuv, int stride, int t);
26
28
void ff_vp6_edge_filter_ver_neon(uint8_t *yuv, int stride, int t);
27
29
 
28
 
void ff_vp56dsp_init_arm(VP56DSPContext *s, enum CodecID codec)
 
30
void ff_vp56dsp_init_arm(VP56DSPContext *s, enum AVCodecID codec)
29
31
{
30
 
    if (codec != CODEC_ID_VP5 && HAVE_NEON) {
 
32
    int cpu_flags = av_get_cpu_flags();
 
33
 
 
34
    if (codec != AV_CODEC_ID_VP5 && have_neon(cpu_flags)) {
31
35
        s->edge_filter_hor = ff_vp6_edge_filter_hor_neon;
32
36
        s->edge_filter_ver = ff_vp6_edge_filter_ver_neon;
33
37
    }