/src/libvpx/vp9/common/vp9_scan.h
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2013 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 | | */ |
10 | | |
11 | | #ifndef VPX_VP9_COMMON_VP9_SCAN_H_ |
12 | | #define VPX_VP9_COMMON_VP9_SCAN_H_ |
13 | | |
14 | | #include "vpx/vpx_integer.h" |
15 | | #include "vpx_ports/mem.h" |
16 | | |
17 | | #include "vp9/common/vp9_enums.h" |
18 | | #include "vp9/common/vp9_blockd.h" |
19 | | |
20 | | #ifdef __cplusplus |
21 | | extern "C" { |
22 | | #endif |
23 | | |
24 | 10.1G | #define MAX_NEIGHBORS 2 |
25 | | |
26 | | typedef struct ScanOrder { |
27 | | const int16_t *scan; |
28 | | const int16_t *iscan; |
29 | | const int16_t *neighbors; |
30 | | } ScanOrder; |
31 | | |
32 | | extern const ScanOrder vp9_default_scan_orders[TX_SIZES]; |
33 | | extern const ScanOrder vp9_scan_orders[TX_SIZES][TX_TYPES]; |
34 | | |
35 | | static INLINE int get_coef_context(const int16_t *neighbors, |
36 | 5.08G | const uint8_t *token_cache, int c) { |
37 | 5.08G | return (1 + token_cache[neighbors[MAX_NEIGHBORS * c + 0]] + |
38 | 5.08G | token_cache[neighbors[MAX_NEIGHBORS * c + 1]]) >> |
39 | 5.08G | 1; |
40 | 5.08G | } Unexecuted instantiation: vp9_decodeframe.c:get_coef_context vp9_detokenize.c:get_coef_context Line | Count | Source | 36 | 153M | const uint8_t *token_cache, int c) { | 37 | 153M | return (1 + token_cache[neighbors[MAX_NEIGHBORS * c + 0]] + | 38 | 153M | token_cache[neighbors[MAX_NEIGHBORS * c + 1]]) >> | 39 | 153M | 1; | 40 | 153M | } |
Unexecuted instantiation: vp9_decoder.c:get_coef_context Unexecuted instantiation: vp9_scan.c:get_coef_context Unexecuted instantiation: vp9_quantize.c:get_coef_context vp9_tokenize.c:get_coef_context Line | Count | Source | 36 | 128M | const uint8_t *token_cache, int c) { | 37 | 128M | return (1 + token_cache[neighbors[MAX_NEIGHBORS * c + 0]] + | 38 | 128M | token_cache[neighbors[MAX_NEIGHBORS * c + 1]]) >> | 39 | 128M | 1; | 40 | 128M | } |
Unexecuted instantiation: vp9_tpl_model.c:get_coef_context Unexecuted instantiation: vp9_quantize_sse2.c:get_coef_context Unexecuted instantiation: vp9_quantize_ssse3.c:get_coef_context Unexecuted instantiation: vp9_quantize_avx2.c:get_coef_context Unexecuted instantiation: quantize.c:get_coef_context Unexecuted instantiation: quantize_sse2.c:get_coef_context Unexecuted instantiation: quantize_ssse3.c:get_coef_context Unexecuted instantiation: quantize_avx.c:get_coef_context Unexecuted instantiation: quantize_avx2.c:get_coef_context Unexecuted instantiation: highbd_quantize_intrin_sse2.c:get_coef_context Unexecuted instantiation: highbd_quantize_intrin_avx2.c:get_coef_context vp9_encodemb.c:get_coef_context Line | Count | Source | 36 | 920M | const uint8_t *token_cache, int c) { | 37 | 920M | return (1 + token_cache[neighbors[MAX_NEIGHBORS * c + 0]] + | 38 | 920M | token_cache[neighbors[MAX_NEIGHBORS * c + 1]]) >> | 39 | 920M | 1; | 40 | 920M | } |
vp9_rdopt.c:get_coef_context Line | Count | Source | 36 | 3.88G | const uint8_t *token_cache, int c) { | 37 | 3.88G | return (1 + token_cache[neighbors[MAX_NEIGHBORS * c + 0]] + | 38 | 3.88G | token_cache[neighbors[MAX_NEIGHBORS * c + 1]]) >> | 39 | 3.88G | 1; | 40 | 3.88G | } |
Unexecuted instantiation: vp9_pickmode.c:get_coef_context |
41 | | |
42 | | static INLINE const ScanOrder *get_scan(const MACROBLOCKD *xd, TX_SIZE tx_size, |
43 | 277M | PLANE_TYPE type, int block_idx) { |
44 | 277M | const MODE_INFO *const mi = xd->mi[0]; |
45 | | |
46 | 277M | if (is_inter_block(mi) || type != PLANE_TYPE_Y || xd->lossless) { |
47 | 215M | return &vp9_default_scan_orders[tx_size]; |
48 | 215M | } else { |
49 | 61.7M | const PREDICTION_MODE mode = get_y_mode(mi, block_idx); |
50 | 61.7M | return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; |
51 | 61.7M | } |
52 | 277M | } Unexecuted instantiation: vp9_decodeframe.c:get_scan Unexecuted instantiation: vp9_detokenize.c:get_scan Unexecuted instantiation: vp9_decoder.c:get_scan Unexecuted instantiation: vp9_scan.c:get_scan Unexecuted instantiation: vp9_quantize.c:get_scan Line | Count | Source | 43 | 9.86M | PLANE_TYPE type, int block_idx) { | 44 | 9.86M | const MODE_INFO *const mi = xd->mi[0]; | 45 | | | 46 | 9.86M | if (is_inter_block(mi) || type != PLANE_TYPE_Y || xd->lossless) { | 47 | 5.76M | return &vp9_default_scan_orders[tx_size]; | 48 | 5.76M | } else { | 49 | 4.10M | const PREDICTION_MODE mode = get_y_mode(mi, block_idx); | 50 | 4.10M | return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; | 51 | 4.10M | } | 52 | 9.86M | } |
Unexecuted instantiation: vp9_tpl_model.c:get_scan Unexecuted instantiation: vp9_quantize_sse2.c:get_scan Unexecuted instantiation: vp9_quantize_ssse3.c:get_scan Unexecuted instantiation: vp9_quantize_avx2.c:get_scan Unexecuted instantiation: quantize.c:get_scan Unexecuted instantiation: quantize_sse2.c:get_scan Unexecuted instantiation: quantize_ssse3.c:get_scan Unexecuted instantiation: quantize_avx.c:get_scan Unexecuted instantiation: quantize_avx2.c:get_scan Unexecuted instantiation: highbd_quantize_intrin_sse2.c:get_scan Unexecuted instantiation: highbd_quantize_intrin_avx2.c:get_scan Line | Count | Source | 43 | 22.9M | PLANE_TYPE type, int block_idx) { | 44 | 22.9M | const MODE_INFO *const mi = xd->mi[0]; | 45 | | | 46 | 22.9M | if (is_inter_block(mi) || type != PLANE_TYPE_Y || xd->lossless) { | 47 | 17.4M | return &vp9_default_scan_orders[tx_size]; | 48 | 17.4M | } else { | 49 | 5.42M | const PREDICTION_MODE mode = get_y_mode(mi, block_idx); | 50 | 5.42M | return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; | 51 | 5.42M | } | 52 | 22.9M | } |
Line | Count | Source | 43 | 244M | PLANE_TYPE type, int block_idx) { | 44 | 244M | const MODE_INFO *const mi = xd->mi[0]; | 45 | | | 46 | 244M | if (is_inter_block(mi) || type != PLANE_TYPE_Y || xd->lossless) { | 47 | 192M | return &vp9_default_scan_orders[tx_size]; | 48 | 192M | } else { | 49 | 52.2M | const PREDICTION_MODE mode = get_y_mode(mi, block_idx); | 50 | 52.2M | return &vp9_scan_orders[tx_size][intra_mode_to_tx_type_lookup[mode]]; | 51 | 52.2M | } | 52 | 244M | } |
Unexecuted instantiation: vp9_pickmode.c:get_scan |
53 | | |
54 | | #ifdef __cplusplus |
55 | | } // extern "C" |
56 | | #endif |
57 | | |
58 | | #endif // VPX_VP9_COMMON_VP9_SCAN_H_ |