media/libvpx/vp9/common/x86/vp9_postproc_x86.h

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 /*
     2  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
     3  *
     4  *  Use of this source code is governed by a BSD-style license
     5  *  that can be found in the LICENSE file in the root of the source
     6  *  tree. An additional intellectual property rights grant can be found
     7  *  in the file PATENTS.  All contributing project authors may
     8  *  be found in the AUTHORS file in the root of the source tree.
     9  */
    12 #ifndef VP9_COMMON_X86_VP9_POSTPROC_X86_H_
    13 #define VP9_COMMON_X86_VP9_POSTPROC_X86_H_
    15 /* Note:
    16  *
    17  * This platform is commonly built for runtime CPU detection. If you modify
    18  * any of the function mappings present in this file, be sure to also update
    19  * them in the function pointer initialization code
    20  */
    22 #if HAVE_MMX
    23 extern prototype_postproc_inplace(vp9_mbpost_proc_down_mmx);
    24 extern prototype_postproc(vp9_post_proc_down_and_across_mmx);
    25 extern prototype_postproc_addnoise(vp9_plane_add_noise_mmx);
    27 #if !CONFIG_RUNTIME_CPU_DETECT
    28 #undef  vp9_postproc_down
    29 #define vp9_postproc_down vp9_mbpost_proc_down_mmx
    31 #undef  vp9_postproc_downacross
    32 #define vp9_postproc_downacross vp9_post_proc_down_and_across_mmx
    34 #undef  vp9_postproc_addnoise
    35 #define vp9_postproc_addnoise vp9_plane_add_noise_mmx
    37 #endif
    38 #endif
    41 #if HAVE_SSE2
    42 extern prototype_postproc_inplace(vp9_mbpost_proc_down_xmm);
    43 extern prototype_postproc_inplace(vp9_mbpost_proc_across_ip_xmm);
    44 extern prototype_postproc(vp9_post_proc_down_and_across_xmm);
    45 extern prototype_postproc_addnoise(vp9_plane_add_noise_wmt);
    47 #if !CONFIG_RUNTIME_CPU_DETECT
    48 #undef  vp9_postproc_down
    49 #define vp9_postproc_down vp9_mbpost_proc_down_xmm
    51 #undef  vp9_postproc_across
    52 #define vp9_postproc_across vp9_mbpost_proc_across_ip_xmm
    54 #undef  vp9_postproc_downacross
    55 #define vp9_postproc_downacross vp9_post_proc_down_and_across_xmm
    57 #undef  vp9_postproc_addnoise
    58 #define vp9_postproc_addnoise vp9_plane_add_noise_wmt
    61 #endif
    62 #endif
    64 #endif  // VP9_COMMON_X86_VP9_POSTPROC_X86_H_

mercurial