1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

avcodec/prores_raw: Prettify ff_prores_raw_*_cb

the values contain 3 4 bit values, thus using hex is more natural
and shows more information

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2025-11-07 01:47:40 +01:00
parent ad956ff076
commit 9ccc33d84d

View File

@@ -97,30 +97,30 @@ static const uint8_t align_tile_w[16] = {
#define DC_CB_MAX 12 #define DC_CB_MAX 12
const uint8_t ff_prores_raw_dc_cb[DC_CB_MAX + 1] = { const uint8_t ff_prores_raw_dc_cb[DC_CB_MAX + 1] = {
16, 33, 50, 51, 51, 51, 68, 68, 68, 68, 68, 68, 118, 0x010, 0x021, 0x032, 0x033, 0x033, 0x033, 0x044, 0x044, 0x044, 0x044, 0x044, 0x044, 0x076,
}; };
#define AC_CB_MAX 94 #define AC_CB_MAX 94
const int16_t ff_prores_raw_ac_cb[AC_CB_MAX + 1] = { const int16_t ff_prores_raw_ac_cb[AC_CB_MAX + 1] = {
0, 529, 273, 273, 546, 546, 546, 290, 290, 290, 563, 563, 0x000, 0x211, 0x111, 0x111, 0x222, 0x222, 0x222, 0x122, 0x122, 0x122,
563, 563, 563, 563, 563, 563, 307, 307, 580, 580, 580, 580, 0x233, 0x233, 0x233, 0x233, 0x233, 0x233, 0x233, 0x233, 0x133, 0x133,
580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 580, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244,
580, 580, 580, 580, 580, 580, 853, 853, 853, 853, 853, 853, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244, 0x244,
853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355,
853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355,
853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355,
853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 358 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x355, 0x166,
}; };
#define RN_CB_MAX 27 #define RN_CB_MAX 27
const int16_t ff_prores_raw_rn_cb[RN_CB_MAX + 1] = { const int16_t ff_prores_raw_rn_cb[RN_CB_MAX + 1] = {
512, 256, 0, 0, 529, 529, 273, 273, 17, 17, 33, 33, 546, 0x200, 0x100, 0x000, 0x000, 0x211, 0x211, 0x111, 0x111, 0x011, 0x011, 0x021, 0x021, 0x222, 0x022,
34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 50, 50, 68, 0x022, 0x022, 0x022, 0x022, 0x022, 0x022, 0x022, 0x022, 0x022, 0x022, 0x022, 0x032, 0x032, 0x044
}; };
#define LN_CB_MAX 14 #define LN_CB_MAX 14
const int16_t ff_prores_raw_ln_cb[LN_CB_MAX + 1] = { const int16_t ff_prores_raw_ln_cb[LN_CB_MAX + 1] = {
256, 273, 546, 546, 290, 290, 1075, 1075, 563, 563, 563, 563, 563, 563, 51 0x100, 0x111, 0x222, 0x222, 0x122, 0x122, 0x433, 0x433, 0x233, 0x233, 0x233, 0x233, 0x233, 0x233, 0x033,
}; };
static int decode_comp(AVCodecContext *avctx, TileContext *tile, static int decode_comp(AVCodecContext *avctx, TileContext *tile,