/src/aom/av1/common/reconintra.h
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
3 | | * |
4 | | * This source code is subject to the terms of the BSD 2 Clause License and |
5 | | * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
6 | | * was not distributed with this source code in the LICENSE file, you can |
7 | | * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
8 | | * Media Patent License 1.0 was not distributed with this source code in the |
9 | | * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
10 | | */ |
11 | | |
12 | | #ifndef AOM_AV1_COMMON_RECONINTRA_H_ |
13 | | #define AOM_AV1_COMMON_RECONINTRA_H_ |
14 | | |
15 | | #include <stdlib.h> |
16 | | |
17 | | #include "aom/aom_integer.h" |
18 | | #include "av1/common/av1_common_int.h" |
19 | | #include "av1/common/blockd.h" |
20 | | |
21 | | #ifdef __cplusplus |
22 | | extern "C" { |
23 | | #endif |
24 | | |
25 | | void av1_init_intra_predictors(void); |
26 | | void av1_predict_intra_block_facade(const AV1_COMMON *cm, MACROBLOCKD *xd, |
27 | | int plane, int blk_col, int blk_row, |
28 | | TX_SIZE tx_size); |
29 | | void av1_predict_intra_block(const MACROBLOCKD *xd, BLOCK_SIZE sb_size, |
30 | | int enable_intra_edge_filter, int wpx, int hpx, |
31 | | TX_SIZE tx_size, PREDICTION_MODE mode, |
32 | | int angle_delta, int use_palette, |
33 | | FILTER_INTRA_MODE filter_intra_mode, |
34 | | const uint8_t *ref, int ref_stride, uint8_t *dst, |
35 | | int dst_stride, int col_off, int row_off, |
36 | | int plane); |
37 | | |
38 | | // Mapping of interintra to intra mode for use in the intra component |
39 | | static const PREDICTION_MODE interintra_to_intra_mode[INTERINTRA_MODES] = { |
40 | | DC_PRED, V_PRED, H_PRED, SMOOTH_PRED |
41 | | }; |
42 | | |
43 | | // Mapping of intra mode to the interintra mode |
44 | | static const INTERINTRA_MODE intra_to_interintra_mode[INTRA_MODES] = { |
45 | | II_DC_PRED, II_V_PRED, II_H_PRED, II_V_PRED, II_SMOOTH_PRED, II_V_PRED, |
46 | | II_H_PRED, II_H_PRED, II_V_PRED, II_SMOOTH_PRED, II_SMOOTH_PRED |
47 | | }; |
48 | | |
49 | | #define FILTER_INTRA_SCALE_BITS 4 |
50 | | |
51 | 89.5M | static INLINE int av1_is_directional_mode(PREDICTION_MODE mode) { |
52 | 89.5M | return mode >= V_PRED && mode <= D67_PRED; |
53 | 89.5M | } Unexecuted instantiation: decodeframe.c:av1_is_directional_mode decodemv.c:av1_is_directional_mode Line | Count | Source | 51 | 7.07M | static INLINE int av1_is_directional_mode(PREDICTION_MODE mode) { | 52 | 7.07M | return mode >= V_PRED && mode <= D67_PRED; | 53 | 7.07M | } |
Unexecuted instantiation: decoder.c:av1_is_directional_mode bitstream.c:av1_is_directional_mode Line | Count | Source | 51 | 23.6k | static INLINE int av1_is_directional_mode(PREDICTION_MODE mode) { | 52 | 23.6k | return mode >= V_PRED && mode <= D67_PRED; | 53 | 23.6k | } |
Unexecuted instantiation: encoder.c:av1_is_directional_mode Unexecuted instantiation: encoder_utils.c:av1_is_directional_mode Unexecuted instantiation: ethread.c:av1_is_directional_mode Unexecuted instantiation: firstpass.c:av1_is_directional_mode Unexecuted instantiation: palette.c:av1_is_directional_mode Unexecuted instantiation: rd.c:av1_is_directional_mode Unexecuted instantiation: rdopt.c:av1_is_directional_mode Unexecuted instantiation: reconinter_enc.c:av1_is_directional_mode Unexecuted instantiation: speed_features.c:av1_is_directional_mode Unexecuted instantiation: superres_scale.c:av1_is_directional_mode Unexecuted instantiation: svc_layercontext.c:av1_is_directional_mode Unexecuted instantiation: tpl_model.c:av1_is_directional_mode Unexecuted instantiation: tx_search.c:av1_is_directional_mode intra_mode_search.c:av1_is_directional_mode Line | Count | Source | 51 | 17.6M | static INLINE int av1_is_directional_mode(PREDICTION_MODE mode) { | 52 | 17.6M | return mode >= V_PRED && mode <= D67_PRED; | 53 | 17.6M | } |
Unexecuted instantiation: pred_common.c:av1_is_directional_mode Unexecuted instantiation: reconinter.c:av1_is_directional_mode reconintra.c:av1_is_directional_mode Line | Count | Source | 51 | 64.7M | static INLINE int av1_is_directional_mode(PREDICTION_MODE mode) { | 52 | 64.7M | return mode >= V_PRED && mode <= D67_PRED; | 53 | 64.7M | } |
Unexecuted instantiation: allintra_vis.c:av1_is_directional_mode Unexecuted instantiation: compound_type.c:av1_is_directional_mode Unexecuted instantiation: encodeframe.c:av1_is_directional_mode encodeframe_utils.c:av1_is_directional_mode Line | Count | Source | 51 | 23.6k | static INLINE int av1_is_directional_mode(PREDICTION_MODE mode) { | 52 | 23.6k | return mode >= V_PRED && mode <= D67_PRED; | 53 | 23.6k | } |
Unexecuted instantiation: encodemb.c:av1_is_directional_mode Unexecuted instantiation: encode_strategy.c:av1_is_directional_mode Unexecuted instantiation: partition_search.c:av1_is_directional_mode Unexecuted instantiation: nonrd_pickmode.c:av1_is_directional_mode |
54 | | |
55 | 7.72M | static INLINE int av1_is_diagonal_mode(PREDICTION_MODE mode) { |
56 | 7.72M | return mode >= D45_PRED && mode <= D67_PRED; |
57 | 7.72M | } Unexecuted instantiation: decodeframe.c:av1_is_diagonal_mode Unexecuted instantiation: decodemv.c:av1_is_diagonal_mode Unexecuted instantiation: decoder.c:av1_is_diagonal_mode Unexecuted instantiation: bitstream.c:av1_is_diagonal_mode Unexecuted instantiation: encoder.c:av1_is_diagonal_mode Unexecuted instantiation: encoder_utils.c:av1_is_diagonal_mode Unexecuted instantiation: ethread.c:av1_is_diagonal_mode Unexecuted instantiation: firstpass.c:av1_is_diagonal_mode Unexecuted instantiation: palette.c:av1_is_diagonal_mode Unexecuted instantiation: rd.c:av1_is_diagonal_mode Unexecuted instantiation: rdopt.c:av1_is_diagonal_mode Unexecuted instantiation: reconinter_enc.c:av1_is_diagonal_mode Unexecuted instantiation: speed_features.c:av1_is_diagonal_mode Unexecuted instantiation: superres_scale.c:av1_is_diagonal_mode Unexecuted instantiation: svc_layercontext.c:av1_is_diagonal_mode Unexecuted instantiation: tpl_model.c:av1_is_diagonal_mode Unexecuted instantiation: tx_search.c:av1_is_diagonal_mode intra_mode_search.c:av1_is_diagonal_mode Line | Count | Source | 55 | 7.72M | static INLINE int av1_is_diagonal_mode(PREDICTION_MODE mode) { | 56 | 7.72M | return mode >= D45_PRED && mode <= D67_PRED; | 57 | 7.72M | } |
Unexecuted instantiation: pred_common.c:av1_is_diagonal_mode Unexecuted instantiation: reconinter.c:av1_is_diagonal_mode Unexecuted instantiation: reconintra.c:av1_is_diagonal_mode Unexecuted instantiation: allintra_vis.c:av1_is_diagonal_mode Unexecuted instantiation: compound_type.c:av1_is_diagonal_mode Unexecuted instantiation: encodeframe.c:av1_is_diagonal_mode Unexecuted instantiation: encodeframe_utils.c:av1_is_diagonal_mode Unexecuted instantiation: encodemb.c:av1_is_diagonal_mode Unexecuted instantiation: encode_strategy.c:av1_is_diagonal_mode Unexecuted instantiation: partition_search.c:av1_is_diagonal_mode Unexecuted instantiation: nonrd_pickmode.c:av1_is_diagonal_mode |
58 | | |
59 | 11.8M | static INLINE int av1_use_angle_delta(BLOCK_SIZE bsize) { |
60 | 11.8M | return bsize >= BLOCK_8X8; |
61 | 11.8M | } Unexecuted instantiation: decodeframe.c:av1_use_angle_delta decodemv.c:av1_use_angle_delta Line | Count | Source | 59 | 4.35M | static INLINE int av1_use_angle_delta(BLOCK_SIZE bsize) { | 60 | 4.35M | return bsize >= BLOCK_8X8; | 61 | 4.35M | } |
Unexecuted instantiation: decoder.c:av1_use_angle_delta bitstream.c:av1_use_angle_delta Line | Count | Source | 59 | 11.8k | static INLINE int av1_use_angle_delta(BLOCK_SIZE bsize) { | 60 | 11.8k | return bsize >= BLOCK_8X8; | 61 | 11.8k | } |
Unexecuted instantiation: encoder.c:av1_use_angle_delta Unexecuted instantiation: encoder_utils.c:av1_use_angle_delta Unexecuted instantiation: ethread.c:av1_use_angle_delta Unexecuted instantiation: firstpass.c:av1_use_angle_delta Unexecuted instantiation: palette.c:av1_use_angle_delta Unexecuted instantiation: rd.c:av1_use_angle_delta Unexecuted instantiation: rdopt.c:av1_use_angle_delta Unexecuted instantiation: reconinter_enc.c:av1_use_angle_delta Unexecuted instantiation: speed_features.c:av1_use_angle_delta Unexecuted instantiation: superres_scale.c:av1_use_angle_delta Unexecuted instantiation: svc_layercontext.c:av1_use_angle_delta Unexecuted instantiation: tpl_model.c:av1_use_angle_delta Unexecuted instantiation: tx_search.c:av1_use_angle_delta intra_mode_search.c:av1_use_angle_delta Line | Count | Source | 59 | 7.43M | static INLINE int av1_use_angle_delta(BLOCK_SIZE bsize) { | 60 | 7.43M | return bsize >= BLOCK_8X8; | 61 | 7.43M | } |
Unexecuted instantiation: pred_common.c:av1_use_angle_delta Unexecuted instantiation: reconinter.c:av1_use_angle_delta Unexecuted instantiation: reconintra.c:av1_use_angle_delta Unexecuted instantiation: allintra_vis.c:av1_use_angle_delta Unexecuted instantiation: compound_type.c:av1_use_angle_delta Unexecuted instantiation: encodeframe.c:av1_use_angle_delta encodeframe_utils.c:av1_use_angle_delta Line | Count | Source | 59 | 296 | static INLINE int av1_use_angle_delta(BLOCK_SIZE bsize) { | 60 | 296 | return bsize >= BLOCK_8X8; | 61 | 296 | } |
Unexecuted instantiation: encodemb.c:av1_use_angle_delta Unexecuted instantiation: encode_strategy.c:av1_use_angle_delta Unexecuted instantiation: partition_search.c:av1_use_angle_delta Unexecuted instantiation: nonrd_pickmode.c:av1_use_angle_delta |
62 | | |
63 | 7.67M | static INLINE int av1_allow_intrabc(const AV1_COMMON *const cm) { |
64 | 7.67M | return frame_is_intra_only(cm) && cm->features.allow_screen_content_tools && |
65 | 7.67M | cm->features.allow_intrabc; |
66 | 7.67M | } decodeframe.c:av1_allow_intrabc Line | Count | Source | 63 | 1.98k | static INLINE int av1_allow_intrabc(const AV1_COMMON *const cm) { | 64 | 1.98k | return frame_is_intra_only(cm) && cm->features.allow_screen_content_tools && | 65 | 1.98k | cm->features.allow_intrabc; | 66 | 1.98k | } |
decodemv.c:av1_allow_intrabc Line | Count | Source | 63 | 4.35M | static INLINE int av1_allow_intrabc(const AV1_COMMON *const cm) { | 64 | 4.35M | return frame_is_intra_only(cm) && cm->features.allow_screen_content_tools && | 65 | 4.35M | cm->features.allow_intrabc; | 66 | 4.35M | } |
Unexecuted instantiation: decoder.c:av1_allow_intrabc bitstream.c:av1_allow_intrabc Line | Count | Source | 63 | 11.8k | static INLINE int av1_allow_intrabc(const AV1_COMMON *const cm) { | 64 | 11.8k | return frame_is_intra_only(cm) && cm->features.allow_screen_content_tools && | 65 | 11.8k | cm->features.allow_intrabc; | 66 | 11.8k | } |
Unexecuted instantiation: encoder.c:av1_allow_intrabc Unexecuted instantiation: encoder_utils.c:av1_allow_intrabc Unexecuted instantiation: ethread.c:av1_allow_intrabc Unexecuted instantiation: firstpass.c:av1_allow_intrabc Unexecuted instantiation: palette.c:av1_allow_intrabc Line | Count | Source | 63 | 1.26k | static INLINE int av1_allow_intrabc(const AV1_COMMON *const cm) { | 64 | 1.26k | return frame_is_intra_only(cm) && cm->features.allow_screen_content_tools && | 65 | 1.26k | cm->features.allow_intrabc; | 66 | 1.26k | } |
rdopt.c:av1_allow_intrabc Line | Count | Source | 63 | 112k | static INLINE int av1_allow_intrabc(const AV1_COMMON *const cm) { | 64 | 112k | return frame_is_intra_only(cm) && cm->features.allow_screen_content_tools && | 65 | 112k | cm->features.allow_intrabc; | 66 | 112k | } |
Unexecuted instantiation: reconinter_enc.c:av1_allow_intrabc Unexecuted instantiation: speed_features.c:av1_allow_intrabc Unexecuted instantiation: superres_scale.c:av1_allow_intrabc Unexecuted instantiation: svc_layercontext.c:av1_allow_intrabc Unexecuted instantiation: tpl_model.c:av1_allow_intrabc Unexecuted instantiation: tx_search.c:av1_allow_intrabc intra_mode_search.c:av1_allow_intrabc Line | Count | Source | 63 | 3.15M | static INLINE int av1_allow_intrabc(const AV1_COMMON *const cm) { | 64 | 3.15M | return frame_is_intra_only(cm) && cm->features.allow_screen_content_tools && | 65 | 3.15M | cm->features.allow_intrabc; | 66 | 3.15M | } |
Unexecuted instantiation: pred_common.c:av1_allow_intrabc Unexecuted instantiation: reconinter.c:av1_allow_intrabc Unexecuted instantiation: reconintra.c:av1_allow_intrabc Unexecuted instantiation: allintra_vis.c:av1_allow_intrabc Unexecuted instantiation: compound_type.c:av1_allow_intrabc Unexecuted instantiation: encodeframe.c:av1_allow_intrabc Unexecuted instantiation: encodeframe_utils.c:av1_allow_intrabc Unexecuted instantiation: encodemb.c:av1_allow_intrabc Unexecuted instantiation: encode_strategy.c:av1_allow_intrabc partition_search.c:av1_allow_intrabc Line | Count | Source | 63 | 23.6k | static INLINE int av1_allow_intrabc(const AV1_COMMON *const cm) { | 64 | 23.6k | return frame_is_intra_only(cm) && cm->features.allow_screen_content_tools && | 65 | 23.6k | cm->features.allow_intrabc; | 66 | 23.6k | } |
Unexecuted instantiation: nonrd_pickmode.c:av1_allow_intrabc |
67 | | |
68 | | static INLINE int av1_filter_intra_allowed_bsize(const AV1_COMMON *const cm, |
69 | 1.43M | BLOCK_SIZE bs) { |
70 | 1.43M | if (!cm->seq_params->enable_filter_intra || bs == BLOCK_INVALID) return 0; |
71 | | |
72 | 1.30M | return block_size_wide[bs] <= 32 && block_size_high[bs] <= 32; |
73 | 1.43M | } Unexecuted instantiation: decodeframe.c:av1_filter_intra_allowed_bsize decodemv.c:av1_filter_intra_allowed_bsize Line | Count | Source | 69 | 825k | BLOCK_SIZE bs) { | 70 | 825k | if (!cm->seq_params->enable_filter_intra || bs == BLOCK_INVALID) return 0; | 71 | | | 72 | 700k | return block_size_wide[bs] <= 32 && block_size_high[bs] <= 32; | 73 | 825k | } |
Unexecuted instantiation: decoder.c:av1_filter_intra_allowed_bsize bitstream.c:av1_filter_intra_allowed_bsize Line | Count | Source | 69 | 11.6k | BLOCK_SIZE bs) { | 70 | 11.6k | if (!cm->seq_params->enable_filter_intra || bs == BLOCK_INVALID) return 0; | 71 | | | 72 | 11.6k | return block_size_wide[bs] <= 32 && block_size_high[bs] <= 32; | 73 | 11.6k | } |
Unexecuted instantiation: encoder.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: encoder_utils.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: ethread.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: firstpass.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: palette.c:av1_filter_intra_allowed_bsize rd.c:av1_filter_intra_allowed_bsize Line | Count | Source | 69 | 287k | BLOCK_SIZE bs) { | 70 | 287k | if (!cm->seq_params->enable_filter_intra || bs == BLOCK_INVALID) return 0; | 71 | | | 72 | 287k | return block_size_wide[bs] <= 32 && block_size_high[bs] <= 32; | 73 | 287k | } |
Unexecuted instantiation: rdopt.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: reconinter_enc.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: speed_features.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: superres_scale.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: svc_layercontext.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: tpl_model.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: tx_search.c:av1_filter_intra_allowed_bsize intra_mode_search.c:av1_filter_intra_allowed_bsize Line | Count | Source | 69 | 296k | BLOCK_SIZE bs) { | 70 | 296k | if (!cm->seq_params->enable_filter_intra || bs == BLOCK_INVALID) return 0; | 71 | | | 72 | 296k | return block_size_wide[bs] <= 32 && block_size_high[bs] <= 32; | 73 | 296k | } |
Unexecuted instantiation: pred_common.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: reconinter.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: reconintra.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: allintra_vis.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: compound_type.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: encodeframe.c:av1_filter_intra_allowed_bsize encodeframe_utils.c:av1_filter_intra_allowed_bsize Line | Count | Source | 69 | 11.6k | BLOCK_SIZE bs) { | 70 | 11.6k | if (!cm->seq_params->enable_filter_intra || bs == BLOCK_INVALID) return 0; | 71 | | | 72 | 11.6k | return block_size_wide[bs] <= 32 && block_size_high[bs] <= 32; | 73 | 11.6k | } |
Unexecuted instantiation: encodemb.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: encode_strategy.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: partition_search.c:av1_filter_intra_allowed_bsize Unexecuted instantiation: nonrd_pickmode.c:av1_filter_intra_allowed_bsize |
74 | | |
75 | | static INLINE int av1_filter_intra_allowed(const AV1_COMMON *const cm, |
76 | 7.53M | const MB_MODE_INFO *mbmi) { |
77 | 7.53M | return mbmi->mode == DC_PRED && |
78 | 7.53M | mbmi->palette_mode_info.palette_size[0] == 0 && |
79 | 7.53M | av1_filter_intra_allowed_bsize(cm, mbmi->bsize); |
80 | 7.53M | } Unexecuted instantiation: decodeframe.c:av1_filter_intra_allowed decodemv.c:av1_filter_intra_allowed Line | Count | Source | 76 | 4.35M | const MB_MODE_INFO *mbmi) { | 77 | 4.35M | return mbmi->mode == DC_PRED && | 78 | 4.35M | mbmi->palette_mode_info.palette_size[0] == 0 && | 79 | 4.35M | av1_filter_intra_allowed_bsize(cm, mbmi->bsize); | 80 | 4.35M | } |
Unexecuted instantiation: decoder.c:av1_filter_intra_allowed bitstream.c:av1_filter_intra_allowed Line | Count | Source | 76 | 11.8k | const MB_MODE_INFO *mbmi) { | 77 | 11.8k | return mbmi->mode == DC_PRED && | 78 | 11.8k | mbmi->palette_mode_info.palette_size[0] == 0 && | 79 | 11.8k | av1_filter_intra_allowed_bsize(cm, mbmi->bsize); | 80 | 11.8k | } |
Unexecuted instantiation: encoder.c:av1_filter_intra_allowed Unexecuted instantiation: encoder_utils.c:av1_filter_intra_allowed Unexecuted instantiation: ethread.c:av1_filter_intra_allowed Unexecuted instantiation: firstpass.c:av1_filter_intra_allowed Unexecuted instantiation: palette.c:av1_filter_intra_allowed Unexecuted instantiation: rd.c:av1_filter_intra_allowed Unexecuted instantiation: rdopt.c:av1_filter_intra_allowed Unexecuted instantiation: reconinter_enc.c:av1_filter_intra_allowed Unexecuted instantiation: speed_features.c:av1_filter_intra_allowed Unexecuted instantiation: superres_scale.c:av1_filter_intra_allowed Unexecuted instantiation: svc_layercontext.c:av1_filter_intra_allowed Unexecuted instantiation: tpl_model.c:av1_filter_intra_allowed Unexecuted instantiation: tx_search.c:av1_filter_intra_allowed intra_mode_search.c:av1_filter_intra_allowed Line | Count | Source | 76 | 3.16M | const MB_MODE_INFO *mbmi) { | 77 | 3.16M | return mbmi->mode == DC_PRED && | 78 | 3.16M | mbmi->palette_mode_info.palette_size[0] == 0 && | 79 | 3.16M | av1_filter_intra_allowed_bsize(cm, mbmi->bsize); | 80 | 3.16M | } |
Unexecuted instantiation: pred_common.c:av1_filter_intra_allowed Unexecuted instantiation: reconinter.c:av1_filter_intra_allowed Unexecuted instantiation: reconintra.c:av1_filter_intra_allowed Unexecuted instantiation: allintra_vis.c:av1_filter_intra_allowed Unexecuted instantiation: compound_type.c:av1_filter_intra_allowed Unexecuted instantiation: encodeframe.c:av1_filter_intra_allowed encodeframe_utils.c:av1_filter_intra_allowed Line | Count | Source | 76 | 11.8k | const MB_MODE_INFO *mbmi) { | 77 | 11.8k | return mbmi->mode == DC_PRED && | 78 | 11.8k | mbmi->palette_mode_info.palette_size[0] == 0 && | 79 | 11.8k | av1_filter_intra_allowed_bsize(cm, mbmi->bsize); | 80 | 11.8k | } |
Unexecuted instantiation: encodemb.c:av1_filter_intra_allowed Unexecuted instantiation: encode_strategy.c:av1_filter_intra_allowed Unexecuted instantiation: partition_search.c:av1_filter_intra_allowed Unexecuted instantiation: nonrd_pickmode.c:av1_filter_intra_allowed |
81 | | |
82 | | extern const int8_t av1_filter_intra_taps[FILTER_INTRA_MODES][8][8]; |
83 | | |
84 | | static const int16_t dr_intra_derivative[90] = { |
85 | | // More evenly spread out angles and limited to 10-bit |
86 | | // Values that are 0 will never be used |
87 | | // Approx angle |
88 | | 0, 0, 0, // |
89 | | 1023, 0, 0, // 3, ... |
90 | | 547, 0, 0, // 6, ... |
91 | | 372, 0, 0, 0, 0, // 9, ... |
92 | | 273, 0, 0, // 14, ... |
93 | | 215, 0, 0, // 17, ... |
94 | | 178, 0, 0, // 20, ... |
95 | | 151, 0, 0, // 23, ... (113 & 203 are base angles) |
96 | | 132, 0, 0, // 26, ... |
97 | | 116, 0, 0, // 29, ... |
98 | | 102, 0, 0, 0, // 32, ... |
99 | | 90, 0, 0, // 36, ... |
100 | | 80, 0, 0, // 39, ... |
101 | | 71, 0, 0, // 42, ... |
102 | | 64, 0, 0, // 45, ... (45 & 135 are base angles) |
103 | | 57, 0, 0, // 48, ... |
104 | | 51, 0, 0, // 51, ... |
105 | | 45, 0, 0, 0, // 54, ... |
106 | | 40, 0, 0, // 58, ... |
107 | | 35, 0, 0, // 61, ... |
108 | | 31, 0, 0, // 64, ... |
109 | | 27, 0, 0, // 67, ... (67 & 157 are base angles) |
110 | | 23, 0, 0, // 70, ... |
111 | | 19, 0, 0, // 73, ... |
112 | | 15, 0, 0, 0, 0, // 76, ... |
113 | | 11, 0, 0, // 81, ... |
114 | | 7, 0, 0, // 84, ... |
115 | | 3, 0, 0, // 87, ... |
116 | | }; |
117 | | |
118 | | // Get the shift (up-scaled by 256) in X w.r.t a unit change in Y. |
119 | | // If angle > 0 && angle < 90, dx = -((int)(256 / t)); |
120 | | // If angle > 90 && angle < 180, dx = (int)(256 / t); |
121 | | // If angle > 180 && angle < 270, dx = 1; |
122 | 44.2M | static INLINE int av1_get_dx(int angle) { |
123 | 44.2M | if (angle > 0 && angle < 90) { |
124 | 10.6M | return dr_intra_derivative[angle]; |
125 | 33.5M | } else if (angle > 90 && angle < 180) { |
126 | 20.9M | return dr_intra_derivative[180 - angle]; |
127 | 20.9M | } else { |
128 | | // In this case, we are not really going to use dx. We may return any value. |
129 | 12.5M | return 1; |
130 | 12.5M | } |
131 | 44.2M | } Unexecuted instantiation: decodeframe.c:av1_get_dx Unexecuted instantiation: decodemv.c:av1_get_dx Unexecuted instantiation: decoder.c:av1_get_dx Unexecuted instantiation: bitstream.c:av1_get_dx Unexecuted instantiation: encoder.c:av1_get_dx Unexecuted instantiation: encoder_utils.c:av1_get_dx Unexecuted instantiation: ethread.c:av1_get_dx Unexecuted instantiation: firstpass.c:av1_get_dx Unexecuted instantiation: palette.c:av1_get_dx Unexecuted instantiation: rd.c:av1_get_dx Unexecuted instantiation: rdopt.c:av1_get_dx Unexecuted instantiation: reconinter_enc.c:av1_get_dx Unexecuted instantiation: speed_features.c:av1_get_dx Unexecuted instantiation: superres_scale.c:av1_get_dx Unexecuted instantiation: svc_layercontext.c:av1_get_dx Unexecuted instantiation: tpl_model.c:av1_get_dx Unexecuted instantiation: tx_search.c:av1_get_dx Unexecuted instantiation: intra_mode_search.c:av1_get_dx Unexecuted instantiation: pred_common.c:av1_get_dx Unexecuted instantiation: reconinter.c:av1_get_dx Line | Count | Source | 122 | 44.2M | static INLINE int av1_get_dx(int angle) { | 123 | 44.2M | if (angle > 0 && angle < 90) { | 124 | 10.6M | return dr_intra_derivative[angle]; | 125 | 33.5M | } else if (angle > 90 && angle < 180) { | 126 | 20.9M | return dr_intra_derivative[180 - angle]; | 127 | 20.9M | } else { | 128 | | // In this case, we are not really going to use dx. We may return any value. | 129 | 12.5M | return 1; | 130 | 12.5M | } | 131 | 44.2M | } |
Unexecuted instantiation: allintra_vis.c:av1_get_dx Unexecuted instantiation: compound_type.c:av1_get_dx Unexecuted instantiation: encodeframe.c:av1_get_dx Unexecuted instantiation: encodeframe_utils.c:av1_get_dx Unexecuted instantiation: encodemb.c:av1_get_dx Unexecuted instantiation: encode_strategy.c:av1_get_dx Unexecuted instantiation: partition_search.c:av1_get_dx Unexecuted instantiation: nonrd_pickmode.c:av1_get_dx |
132 | | |
133 | | // Get the shift (up-scaled by 256) in Y w.r.t a unit change in X. |
134 | | // If angle > 0 && angle < 90, dy = 1; |
135 | | // If angle > 90 && angle < 180, dy = (int)(256 * t); |
136 | | // If angle > 180 && angle < 270, dy = -((int)(256 * t)); |
137 | 44.2M | static INLINE int av1_get_dy(int angle) { |
138 | 44.2M | if (angle > 90 && angle < 180) { |
139 | 20.9M | return dr_intra_derivative[angle - 90]; |
140 | 23.2M | } else if (angle > 180 && angle < 270) { |
141 | 10.0M | return dr_intra_derivative[270 - angle]; |
142 | 13.1M | } else { |
143 | | // In this case, we are not really going to use dy. We may return any value. |
144 | 13.1M | return 1; |
145 | 13.1M | } |
146 | 44.2M | } Unexecuted instantiation: decodeframe.c:av1_get_dy Unexecuted instantiation: decodemv.c:av1_get_dy Unexecuted instantiation: decoder.c:av1_get_dy Unexecuted instantiation: bitstream.c:av1_get_dy Unexecuted instantiation: encoder.c:av1_get_dy Unexecuted instantiation: encoder_utils.c:av1_get_dy Unexecuted instantiation: ethread.c:av1_get_dy Unexecuted instantiation: firstpass.c:av1_get_dy Unexecuted instantiation: palette.c:av1_get_dy Unexecuted instantiation: rd.c:av1_get_dy Unexecuted instantiation: rdopt.c:av1_get_dy Unexecuted instantiation: reconinter_enc.c:av1_get_dy Unexecuted instantiation: speed_features.c:av1_get_dy Unexecuted instantiation: superres_scale.c:av1_get_dy Unexecuted instantiation: svc_layercontext.c:av1_get_dy Unexecuted instantiation: tpl_model.c:av1_get_dy Unexecuted instantiation: tx_search.c:av1_get_dy Unexecuted instantiation: intra_mode_search.c:av1_get_dy Unexecuted instantiation: pred_common.c:av1_get_dy Unexecuted instantiation: reconinter.c:av1_get_dy Line | Count | Source | 137 | 44.2M | static INLINE int av1_get_dy(int angle) { | 138 | 44.2M | if (angle > 90 && angle < 180) { | 139 | 20.9M | return dr_intra_derivative[angle - 90]; | 140 | 23.2M | } else if (angle > 180 && angle < 270) { | 141 | 10.0M | return dr_intra_derivative[270 - angle]; | 142 | 13.1M | } else { | 143 | | // In this case, we are not really going to use dy. We may return any value. | 144 | 13.1M | return 1; | 145 | 13.1M | } | 146 | 44.2M | } |
Unexecuted instantiation: allintra_vis.c:av1_get_dy Unexecuted instantiation: compound_type.c:av1_get_dy Unexecuted instantiation: encodeframe.c:av1_get_dy Unexecuted instantiation: encodeframe_utils.c:av1_get_dy Unexecuted instantiation: encodemb.c:av1_get_dy Unexecuted instantiation: encode_strategy.c:av1_get_dy Unexecuted instantiation: partition_search.c:av1_get_dy Unexecuted instantiation: nonrd_pickmode.c:av1_get_dy |
147 | | |
148 | | static INLINE int av1_use_intra_edge_upsample(int bs0, int bs1, int delta, |
149 | 87.8M | int type) { |
150 | 87.8M | const int d = abs(delta); |
151 | 87.8M | const int blk_wh = bs0 + bs1; |
152 | 87.8M | if (d == 0 || d >= 40) return 0; |
153 | 40.9M | return type ? (blk_wh <= 8) : (blk_wh <= 16); |
154 | 87.8M | } Unexecuted instantiation: decodeframe.c:av1_use_intra_edge_upsample Unexecuted instantiation: decodemv.c:av1_use_intra_edge_upsample Unexecuted instantiation: decoder.c:av1_use_intra_edge_upsample Unexecuted instantiation: bitstream.c:av1_use_intra_edge_upsample Unexecuted instantiation: encoder.c:av1_use_intra_edge_upsample Unexecuted instantiation: encoder_utils.c:av1_use_intra_edge_upsample Unexecuted instantiation: ethread.c:av1_use_intra_edge_upsample Unexecuted instantiation: firstpass.c:av1_use_intra_edge_upsample Unexecuted instantiation: palette.c:av1_use_intra_edge_upsample Unexecuted instantiation: rd.c:av1_use_intra_edge_upsample Unexecuted instantiation: rdopt.c:av1_use_intra_edge_upsample Unexecuted instantiation: reconinter_enc.c:av1_use_intra_edge_upsample Unexecuted instantiation: speed_features.c:av1_use_intra_edge_upsample Unexecuted instantiation: superres_scale.c:av1_use_intra_edge_upsample Unexecuted instantiation: svc_layercontext.c:av1_use_intra_edge_upsample Unexecuted instantiation: tpl_model.c:av1_use_intra_edge_upsample Unexecuted instantiation: tx_search.c:av1_use_intra_edge_upsample Unexecuted instantiation: intra_mode_search.c:av1_use_intra_edge_upsample Unexecuted instantiation: pred_common.c:av1_use_intra_edge_upsample Unexecuted instantiation: reconinter.c:av1_use_intra_edge_upsample reconintra.c:av1_use_intra_edge_upsample Line | Count | Source | 149 | 87.8M | int type) { | 150 | 87.8M | const int d = abs(delta); | 151 | 87.8M | const int blk_wh = bs0 + bs1; | 152 | 87.8M | if (d == 0 || d >= 40) return 0; | 153 | 40.9M | return type ? (blk_wh <= 8) : (blk_wh <= 16); | 154 | 87.8M | } |
Unexecuted instantiation: allintra_vis.c:av1_use_intra_edge_upsample Unexecuted instantiation: compound_type.c:av1_use_intra_edge_upsample Unexecuted instantiation: encodeframe.c:av1_use_intra_edge_upsample Unexecuted instantiation: encodeframe_utils.c:av1_use_intra_edge_upsample Unexecuted instantiation: encodemb.c:av1_use_intra_edge_upsample Unexecuted instantiation: encode_strategy.c:av1_use_intra_edge_upsample Unexecuted instantiation: partition_search.c:av1_use_intra_edge_upsample Unexecuted instantiation: nonrd_pickmode.c:av1_use_intra_edge_upsample |
155 | | #ifdef __cplusplus |
156 | | } // extern "C" |
157 | | #endif |
158 | | #endif // AOM_AV1_COMMON_RECONINTRA_H_ |