media/libvpx/vp9/encoder/vp9_tokenize.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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 #ifndef VP9_ENCODER_VP9_TOKENIZE_H_
michael@0 12 #define VP9_ENCODER_VP9_TOKENIZE_H_
michael@0 13
michael@0 14 #include "vp9/common/vp9_entropy.h"
michael@0 15 #include "vp9/encoder/vp9_block.h"
michael@0 16
michael@0 17 void vp9_tokenize_initialize();
michael@0 18
michael@0 19 typedef struct {
michael@0 20 int16_t token;
michael@0 21 int16_t extra;
michael@0 22 } TOKENVALUE;
michael@0 23
michael@0 24 typedef struct {
michael@0 25 const vp9_prob *context_tree;
michael@0 26 int16_t extra;
michael@0 27 uint8_t token;
michael@0 28 uint8_t skip_eob_node;
michael@0 29 } TOKENEXTRA;
michael@0 30
michael@0 31 int vp9_sb_is_skippable(MACROBLOCKD *xd, BLOCK_SIZE bsize);
michael@0 32 int vp9_is_skippable_in_plane(MACROBLOCKD *xd, BLOCK_SIZE bsize,
michael@0 33 int plane);
michael@0 34 struct VP9_COMP;
michael@0 35
michael@0 36 void vp9_tokenize_sb(struct VP9_COMP *cpi, TOKENEXTRA **t, int dry_run,
michael@0 37 BLOCK_SIZE bsize);
michael@0 38
michael@0 39 extern const int *vp9_dct_value_cost_ptr;
michael@0 40 /* TODO: The Token field should be broken out into a separate char array to
michael@0 41 * improve cache locality, since it's needed for costing when the rest of the
michael@0 42 * fields are not.
michael@0 43 */
michael@0 44 extern const TOKENVALUE *vp9_dct_value_tokens_ptr;
michael@0 45
michael@0 46 #endif // VP9_ENCODER_VP9_TOKENIZE_H_

mercurial