[FFmpeg-devel] [PATCH 6/7] avcodec/evc_parse: use unsigned types in structs where corresponds
James Almer
jamrial at gmail.com
Fri Jun 23 01:48:15 EEST 2023
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/evc_parse.h | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/libavcodec/evc_parse.h b/libavcodec/evc_parse.h
index 0f142976f5..9554622fee 100644
--- a/libavcodec/evc_parse.h
+++ b/libavcodec/evc_parse.h
@@ -41,27 +41,27 @@
// u(n) - unsigned integer using n bits.
// When n is "v" in the syntax table, the number of bits varies in a manner dependent on the value of other syntax elements.
typedef struct EVCParserSliceHeader {
- int slice_pic_parameter_set_id; // ue(v)
- int single_tile_in_slice_flag; // u(1)
- int first_tile_id; // u(v)
- int arbitrary_slice_flag; // u(1)
- int last_tile_id; // u(v)
- int num_remaining_tiles_in_slice_minus1; // ue(v)
- int delta_tile_id_minus1[EVC_MAX_TILE_ROWS * EVC_MAX_TILE_COLUMNS]; // ue(v)
-
- int slice_type; // ue(v)
- int no_output_of_prior_pics_flag; // u(1)
- int mmvd_group_enable_flag; // u(1)
- int slice_alf_enabled_flag; // u(1)
-
- int slice_alf_luma_aps_id; // u(5)
- int slice_alf_map_flag; // u(1)
- int slice_alf_chroma_idc; // u(2)
- int slice_alf_chroma_aps_id; // u(5)
- int slice_alf_chroma_map_flag; // u(1)
- int slice_alf_chroma2_aps_id; // u(5)
- int slice_alf_chroma2_map_flag; // u(1)
- int slice_pic_order_cnt_lsb; // u(v)
+ unsigned slice_pic_parameter_set_id; // ue(v)
+ uint8_t single_tile_in_slice_flag; // u(1)
+ uint8_t first_tile_id; // u(v)
+ uint8_t arbitrary_slice_flag; // u(1)
+ unsigned last_tile_id; // u(v)
+ unsigned num_remaining_tiles_in_slice_minus1; // ue(v)
+ unsigned delta_tile_id_minus1[EVC_MAX_TILE_ROWS * EVC_MAX_TILE_COLUMNS]; // ue(v)
+
+ unsigned slice_type; // ue(v)
+ uint8_t no_output_of_prior_pics_flag; // u(1)
+ uint8_t mmvd_group_enable_flag; // u(1)
+ uint8_t slice_alf_enabled_flag; // u(1)
+
+ uint8_t slice_alf_luma_aps_id; // u(5)
+ uint8_t slice_alf_map_flag; // u(1)
+ uint8_t slice_alf_chroma_idc; // u(2)
+ uint8_t slice_alf_chroma_aps_id; // u(5)
+ uint8_t slice_alf_chroma_map_flag; // u(1)
+ uint8_t slice_alf_chroma2_aps_id; // u(5)
+ uint8_t slice_alf_chroma2_map_flag; // u(1)
+ uint16_t slice_pic_order_cnt_lsb; // u(v)
// @note
// Currently the structure does not reflect the entire Slice Header RBSP layout.
--
2.41.0
More information about the ffmpeg-devel
mailing list