media/libvpx/vp8/encoder/tokenize.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 tokenize_h
    13 #define tokenize_h
    15 #include "vp8/common/entropy.h"
    16 #include "block.h"
    18 void vp8_tokenize_initialize();
    20 typedef struct
    21 {
    22     short Token;
    23     short Extra;
    24 } TOKENVALUE;
    26 typedef struct
    27 {
    28     const vp8_prob *context_tree;
    29     short           Extra;
    30     unsigned char   Token;
    31     unsigned char   skip_eob_node;
    32 } TOKENEXTRA;
    34 int rd_cost_mby(MACROBLOCKD *);
    36 #ifdef VP8_ENTROPY_STATS
    37 void init_context_counters();
    38 void print_context_counters();
    40 extern _int64 context_counters[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [MAX_ENTROPY_TOKENS];
    41 #endif
    43 extern const short *const vp8_dct_value_cost_ptr;
    44 /* TODO: The Token field should be broken out into a separate char array to
    45  *  improve cache locality, since it's needed for costing when the rest of the
    46  *  fields are not.
    47  */
    48 extern const TOKENVALUE *const vp8_dct_value_tokens_ptr;
    50 #endif  /* tokenize_h */

mercurial