summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-07-27 10:49:27 +0000
committerAnton Khirnov <anton@khirnov.net>2014-07-28 08:09:18 +0000
commit4aa80808bcc2a30fcd7ce5b38594319df3a85b36 (patch)
tree95a810b13979b7e560aa29696cda3ab17c63f3d9 /libavcodec/hevc.h
parent0daa2554636ba1d31f3162ffb86991e84eb938a8 (diff)
hevc: eliminate unnecessary cbf_c{b,r} arrays
They are replaced by passing additional parameters to the transform functions.
Diffstat (limited to 'libavcodec/hevc.h')
-rw-r--r--libavcodec/hevc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index 6894160161..ad13d10a5e 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -78,7 +78,6 @@
*/
#define SAMPLE(tab, x, y) ((tab)[(y) * s->sps->width + (x)])
#define SAMPLE_CTB(tab, x, y) ((tab)[(y) * min_cb_width + (x)])
-#define SAMPLE_CBF(tab, x, y) ((tab)[((y) & ((1<<log2_trafo_size)-1)) * MAX_CU_SIZE + ((x) & ((1<<log2_trafo_size)-1))])
#define IS_IDR(s) (s->nal_unit_type == NAL_IDR_W_RADL || s->nal_unit_type == NAL_IDR_N_LP)
#define IS_BLA(s) (s->nal_unit_type == NAL_BLA_W_RADL || s->nal_unit_type == NAL_BLA_W_LP || \
@@ -647,8 +646,6 @@ typedef struct PredictionUnit {
} PredictionUnit;
typedef struct TransformTree {
- uint8_t cbf_cb[MAX_TRANSFORM_DEPTH][MAX_CU_SIZE * MAX_CU_SIZE];
- uint8_t cbf_cr[MAX_TRANSFORM_DEPTH][MAX_CU_SIZE * MAX_CU_SIZE];
uint8_t cbf_luma;
} TransformTree;