From 4be5c8f349dc43251431c01691906a5ae1c828a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arttu=20Yl=C3=A4-Outinen?= Date: Wed, 9 Mar 2016 15:35:45 +0200 Subject: [PATCH] Move flags into a bitfield in cu_info_t. Reduces the size of cu_info_t. --- src/cu.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cu.h b/src/cu.h index 7b60805b..a5e71dd9 100644 --- a/src/cu.h +++ b/src/cu.h @@ -118,14 +118,14 @@ typedef struct */ typedef struct { - int8_t type; //!< \brief block type, CU_INTER / CU_INTRA - int8_t depth; //!< \brief depth / size of this block - int8_t part_size; //!< \brief Currently only 2Nx2N, TODO: AMP/SMP/NxN parts - int8_t tr_depth; //!< \brief transform depth - int8_t coded; //!< \brief flag to indicate this block is coded and reconstructed - int8_t skipped; //!< \brief flag to indicate this block is skipped - int8_t merged; //!< \brief flag to indicate this block is merged - int8_t merge_idx; //!< \brief merge index + unsigned type : 3; //!< \brief block type, CU_INTER / CU_INTRA + unsigned depth : 3; //!< \brief depth / size of this block + unsigned part_size : 3; //!< \brief Currently only 2Nx2N, TODO: AMP/SMP/NxN parts + unsigned tr_depth : 3; //!< \brief transform depth + unsigned coded : 1; //!< \brief flag to indicate this block is coded and reconstructed + unsigned skipped : 1; //!< \brief flag to indicate this block is skipped + unsigned merged : 1; //!< \brief flag to indicate this block is merged + unsigned merge_idx : 3; //!< \brief merge index cu_cbf_t cbf; struct {