media/libvpx/vp8/common/entropymv.c

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 #include "entropymv.h"
    14 const MV_CONTEXT vp8_mv_update_probs[2] =
    15 {
    16     {{
    17         237,
    18         246,
    19         253, 253, 254, 254, 254, 254, 254,
    20         254, 254, 254, 254, 254, 250, 250, 252, 254, 254
    21     }},
    22     {{
    23         231,
    24         243,
    25         245, 253, 254, 254, 254, 254, 254,
    26         254, 254, 254, 254, 254, 251, 251, 254, 254, 254
    27     }}
    28 };
    29 const MV_CONTEXT vp8_default_mv_context[2] =
    30 {
    31     {{
    32         /* row */
    33         162,                                        /* is short */
    34         128,                                        /* sign */
    35         225, 146, 172, 147, 214,  39, 156,          /* short tree */
    36         128, 129, 132,  75, 145, 178, 206, 239, 254, 254 /* long bits */
    37     }},
    41     {{
    42         /* same for column */
    43         164,                                        /* is short */
    44         128,
    45         204, 170, 119, 235, 140, 230, 228,
    46         128, 130, 130,  74, 148, 180, 203, 236, 254, 254 /* long bits */
    48     }}
    49 };

mercurial