aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_ps.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-04-10 14:42:37 +0200
committerAnton Khirnov <anton@khirnov.net>2024-05-31 19:26:06 +0200
commit63a96dbcced2a67e96ee7306874dd2574e2d7d74 (patch)
tree5d0ac9ef672a42ffb8abf8ab6f7179753c864d61 /libavcodec/hevc_ps.h
parent9127819d514a3a82031f7448b40714f2880d7804 (diff)
downloadffmpeg-63a96dbcced2a67e96ee7306874dd2574e2d7d74.tar.gz
lavc/hevc_ps: compactify ShortTermRPS
Do not use larger fields than needed, use size-1 bitfields for flags. Reduces sizeof(HEVCSPS) by 1280 bytes.
Diffstat (limited to 'libavcodec/hevc_ps.h')
-rw-r--r--libavcodec/hevc_ps.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h
index ed6372c747..d06d7cf1d4 100644
--- a/libavcodec/hevc_ps.h
+++ b/libavcodec/hevc_ps.h
@@ -70,16 +70,19 @@ typedef struct HEVCHdrParams {
} HEVCHdrParams;
typedef struct ShortTermRPS {
- uint8_t rps_predict;
- unsigned int delta_idx;
- uint8_t use_delta_flag;
- uint8_t delta_rps_sign;
- unsigned int abs_delta_rps;
- unsigned int num_negative_pics;
- int num_delta_pocs;
- int rps_idx_num_delta_pocs;
int32_t delta_poc[32];
uint32_t used;
+
+ uint8_t delta_idx;
+ uint8_t num_negative_pics;
+ uint8_t num_delta_pocs;
+ uint8_t rps_idx_num_delta_pocs;
+
+ uint16_t abs_delta_rps;
+ unsigned delta_rps_sign:1;
+
+ unsigned rps_predict:1;
+ unsigned use_delta:1;
} ShortTermRPS;
typedef struct HEVCWindow {