~ubuntu-branches/debian/sid/ffmpeg/sid

« back to all changes in this revision

Viewing changes to libavcodec/mips/h264chroma_init_mips.c

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun, Fabian Greffrath, Andreas Cadhalpun
  • Date: 2015-09-22 15:15:20 UTC
  • mfrom: (0.1.29)
  • Revision ID: package-import@ubuntu.com-20150922151520-hhmd3in9ykigjvs9
Tags: 7:2.8-1
[ Fabian Greffrath ]
* Pass the --dbg-package=ffmpeg-dbg parameter only to dh_strip.
* Add alternative Depends: libavcodec-ffmpeg-extra56 to libavcodec-dev and
  ffmpeg-dbg to allow for building and debugging with this library installed.

[ Andreas Cadhalpun ]
* Import new major upstream release 2.8.
* Remove the transitional lib*-ffmpeg-dev packages.
* Drop old Breaks on kodi-bin.
* Drop workaround for sparc, which is no Debian architecture anymore.
* Re-enable x265 on alpha, as it's available again.
* Disable unavailable frei0r, opencv and x264 on mips64el.
* Disable libopenjpeg (#787275) and libschroedinger (#787957) decoders.
  (Closes: #786670)
* Disable libdc1394 on sparc64, because it links against the broken due to
  #790560 libudev1.
* Enable libsnappy support.
* Add new symbols.
* Update debian/copyright.
* Update debian/tests/encdec_list.txt.
* Add hls-only-seek-if-there-is-an-offset.patch. (Closes: #798189)
* Add 'Breaks: libavutil-ffmpeg54 (>= 8:0)' to the libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (c) 2015 Zhou Xiaoyong <zhouxiaoyong@loongson.cn>
 
3
 * Copyright (c) 2015 Shivraj Patil (Shivraj.Patil@imgtec.com)
3
4
 *
4
5
 * This file is part of FFmpeg.
5
6
 *
20
21
 
21
22
#include "h264chroma_mips.h"
22
23
 
23
 
#if HAVE_LOONGSON3
 
24
#if HAVE_MSA
 
25
static av_cold void h264chroma_init_msa(H264ChromaContext *c, int bit_depth)
 
26
{
 
27
    const int high_bit_depth = bit_depth > 8;
 
28
 
 
29
    if (!high_bit_depth) {
 
30
        c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_msa;
 
31
        c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_msa;
 
32
        c->put_h264_chroma_pixels_tab[2] = ff_put_h264_chroma_mc2_msa;
 
33
 
 
34
        c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_msa;
 
35
        c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_msa;
 
36
        c->avg_h264_chroma_pixels_tab[2] = ff_avg_h264_chroma_mc2_msa;
 
37
    }
 
38
}
 
39
#endif  // #if HAVE_MSA
 
40
 
 
41
#if HAVE_MMI
24
42
static av_cold void h264chroma_init_mmi(H264ChromaContext *c, int bit_depth)
25
43
{
26
44
    int high_bit_depth = bit_depth > 8;
32
50
        c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_mmi;
33
51
    }
34
52
}
35
 
#endif /* HAVE_LOONGSON3 */
 
53
#endif /* HAVE_MMI */
36
54
 
37
55
av_cold void ff_h264chroma_init_mips(H264ChromaContext *c, int bit_depth)
38
56
{
39
 
#if HAVE_LOONGSON3
 
57
#if HAVE_MSA
 
58
    h264chroma_init_msa(c, bit_depth);
 
59
#endif  // #if HAVE_MSA
 
60
#if HAVE_MMI
40
61
    h264chroma_init_mmi(c, bit_depth);
41
 
#endif /* HAVE_LOONGSON3 */
 
62
#endif /* HAVE_MMI */
42
63
}