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

michael@0 1 /*
michael@0 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
michael@0 3 *
michael@0 4 * Use of this source code is governed by a BSD-style license
michael@0 5 * that can be found in the LICENSE file in the root of the source
michael@0 6 * tree. An additional intellectual property rights grant can be found
michael@0 7 * in the file PATENTS. All contributing project authors may
michael@0 8 * be found in the AUTHORS file in the root of the source tree.
michael@0 9 */
michael@0 10
michael@0 11
michael@0 12 #ifndef tokenize_h
michael@0 13 #define tokenize_h
michael@0 14
michael@0 15 #include "vp8/common/entropy.h"
michael@0 16 #include "block.h"
michael@0 17
michael@0 18 void vp8_tokenize_initialize();
michael@0 19
michael@0 20 typedef struct
michael@0 21 {
michael@0 22 short Token;
michael@0 23 short Extra;
michael@0 24 } TOKENVALUE;
michael@0 25
michael@0 26 typedef struct
michael@0 27 {
michael@0 28 const vp8_prob *context_tree;
michael@0 29 short Extra;
michael@0 30 unsigned char Token;
michael@0 31 unsigned char skip_eob_node;
michael@0 32 } TOKENEXTRA;
michael@0 33
michael@0 34 int rd_cost_mby(MACROBLOCKD *);
michael@0 35
michael@0 36 #ifdef VP8_ENTROPY_STATS
michael@0 37 void init_context_counters();
michael@0 38 void print_context_counters();
michael@0 39
michael@0 40 extern _int64 context_counters[BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [MAX_ENTROPY_TOKENS];
michael@0 41 #endif
michael@0 42
michael@0 43 extern const short *const vp8_dct_value_cost_ptr;
michael@0 44 /* TODO: The Token field should be broken out into a separate char array to
michael@0 45 * improve cache locality, since it's needed for costing when the rest of the
michael@0 46 * fields are not.
michael@0 47 */
michael@0 48 extern const TOKENVALUE *const vp8_dct_value_tokens_ptr;
michael@0 49
michael@0 50 #endif /* tokenize_h */

mercurial