Move flags into a bitfield in cu_info_t.

Reduces the size of cu_info_t.
This commit is contained in:
Arttu Ylä-Outinen 2016-03-09 15:35:45 +02:00
parent 30e9ee988d
commit 4be5c8f349

View file

@ -118,14 +118,14 @@ typedef struct
*/ */
typedef struct typedef struct
{ {
int8_t type; //!< \brief block type, CU_INTER / CU_INTRA unsigned type : 3; //!< \brief block type, CU_INTER / CU_INTRA
int8_t depth; //!< \brief depth / size of this block unsigned depth : 3; //!< \brief depth / size of this block
int8_t part_size; //!< \brief Currently only 2Nx2N, TODO: AMP/SMP/NxN parts unsigned part_size : 3; //!< \brief Currently only 2Nx2N, TODO: AMP/SMP/NxN parts
int8_t tr_depth; //!< \brief transform depth unsigned tr_depth : 3; //!< \brief transform depth
int8_t coded; //!< \brief flag to indicate this block is coded and reconstructed unsigned coded : 1; //!< \brief flag to indicate this block is coded and reconstructed
int8_t skipped; //!< \brief flag to indicate this block is skipped unsigned skipped : 1; //!< \brief flag to indicate this block is skipped
int8_t merged; //!< \brief flag to indicate this block is merged unsigned merged : 1; //!< \brief flag to indicate this block is merged
int8_t merge_idx; //!< \brief merge index unsigned merge_idx : 3; //!< \brief merge index
cu_cbf_t cbf; cu_cbf_t cbf;
struct { struct {