mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-12 02:07:33 +09:00
update libaom to rev 5bdd95475e07ac8641114cb139105b8d734a1b60 (without moz.build and aom_ports/aom_once.h)
This commit is contained in:
parent
402c27b560
commit
fb515ea77b
177 changed files with 21088 additions and 11681 deletions
44
third_party/aom/examples/inspect.c
vendored
44
third_party/aom/examples/inspect.c
vendored
|
|
@ -62,7 +62,10 @@ typedef enum {
|
|||
SEGMENT_ID_LAYER = 1 << 14,
|
||||
MOTION_MODE_LAYER = 1 << 15,
|
||||
COMPOUND_TYPE_LAYER = 1 << 16,
|
||||
ALL_LAYERS = (1 << 17) - 1
|
||||
INTRABC_LAYER = 1 << 17,
|
||||
PALETTE_LAYER = 1 << 18,
|
||||
UV_PALETTE_LAYER = 1 << 19,
|
||||
ALL_LAYERS = (1 << 20) - 1
|
||||
} LayerType;
|
||||
|
||||
static LayerType layers = 0;
|
||||
|
|
@ -106,13 +109,19 @@ static const arg_def_t dump_delta_q_arg =
|
|||
ARG_DEF("dq", "delta_q", 0, "Dump QIndex");
|
||||
static const arg_def_t dump_seg_id_arg =
|
||||
ARG_DEF("si", "seg_id", 0, "Dump Segment ID");
|
||||
static const arg_def_t dump_intrabc_arg =
|
||||
ARG_DEF("ibc", "intrabc", 0, "Dump If IntraBC Is Used");
|
||||
static const arg_def_t dump_palette_arg =
|
||||
ARG_DEF("plt", "palette", 0, "Dump Palette Size");
|
||||
static const arg_def_t dump_uv_palette_arg =
|
||||
ARG_DEF("uvp", "uv_palette", 0, "Dump UV Palette Size");
|
||||
static const arg_def_t usage_arg = ARG_DEF("h", "help", 0, "Help");
|
||||
static const arg_def_t skip_non_transform_arg = ARG_DEF(
|
||||
"snt", "skip_non_transform", 1, "Skip is counted as a non transform.");
|
||||
static const arg_def_t combined_arg =
|
||||
ARG_DEF("comb", "combined", 1, "combinining parameters into one output.");
|
||||
|
||||
int combined_parm_list[5];
|
||||
int combined_parm_list[15];
|
||||
int combined_parm_count = 0;
|
||||
|
||||
static const arg_def_t *main_args[] = { &limit_arg,
|
||||
|
|
@ -137,6 +146,9 @@ static const arg_def_t *main_args[] = { &limit_arg,
|
|||
&dump_motion_vectors_arg,
|
||||
&dump_delta_q_arg,
|
||||
&dump_seg_id_arg,
|
||||
&dump_intrabc_arg,
|
||||
&dump_palette_arg,
|
||||
&dump_uv_palette_arg,
|
||||
&usage_arg,
|
||||
&skip_non_transform_arg,
|
||||
&combined_arg,
|
||||
|
|
@ -236,6 +248,16 @@ const map_entry uv_prediction_mode_map[] = {
|
|||
|
||||
const map_entry skip_map[] = { ENUM(SKIP), ENUM(NO_SKIP), LAST_ENUM };
|
||||
|
||||
const map_entry intrabc_map[] = {
|
||||
{ "INTRABC", 1 }, { "NO_INTRABC", 0 }, LAST_ENUM
|
||||
};
|
||||
|
||||
const map_entry palette_map[] = {
|
||||
{ "ZERO_COLORS", 0 }, { "TWO_COLORS", 2 }, { "THREE_COLORS", 3 },
|
||||
{ "FOUR_COLORS", 4 }, { "FIVE_COLORS", 5 }, { "SIX_COLORS", 6 },
|
||||
{ "SEVEN_COLORS", 7 }, { "EIGHT_COLORS", 8 }, LAST_ENUM
|
||||
};
|
||||
|
||||
const map_entry config_map[] = { ENUM(MI_SIZE), LAST_ENUM };
|
||||
|
||||
static const char *exec_name;
|
||||
|
|
@ -666,6 +688,18 @@ void inspect(void *pbi, void *data) {
|
|||
if (layers & MOTION_VECTORS_LAYER) {
|
||||
buf += put_motion_vectors(buf);
|
||||
}
|
||||
if (layers & INTRABC_LAYER) {
|
||||
buf += put_block_info(buf, intrabc_map, "intrabc",
|
||||
offsetof(insp_mi_data, intrabc), 0);
|
||||
}
|
||||
if (layers & PALETTE_LAYER) {
|
||||
buf += put_block_info(buf, palette_map, "palette",
|
||||
offsetof(insp_mi_data, palette), 0);
|
||||
}
|
||||
if (layers & UV_PALETTE_LAYER) {
|
||||
buf += put_block_info(buf, palette_map, "uv_palette",
|
||||
offsetof(insp_mi_data, uv_palette), 0);
|
||||
}
|
||||
if (combined_parm_count > 0) buf += put_combined(buf);
|
||||
if (layers & REFERENCE_FRAME_LAYER) {
|
||||
buf += put_block_info(buf, refs_map, "referenceFrame",
|
||||
|
|
@ -858,6 +892,12 @@ static void parse_args(char **argv) {
|
|||
layers |= Q_INDEX_LAYER;
|
||||
else if (arg_match(&arg, &dump_seg_id_arg, argi))
|
||||
layers |= SEGMENT_ID_LAYER;
|
||||
else if (arg_match(&arg, &dump_intrabc_arg, argi))
|
||||
layers |= INTRABC_LAYER;
|
||||
else if (arg_match(&arg, &dump_palette_arg, argi))
|
||||
layers |= PALETTE_LAYER;
|
||||
else if (arg_match(&arg, &dump_uv_palette_arg, argi))
|
||||
layers |= UV_PALETTE_LAYER;
|
||||
else if (arg_match(&arg, &dump_all_arg, argi))
|
||||
layers |= ALL_LAYERS;
|
||||
else if (arg_match(&arg, &compress_arg, argi))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue