avutil/frame: deprecate palette_has_changed

Not only this is information that relies on the concept of a sequence of
frames, which is completely out of place as a field in AVFrame, but there are
no known or intended uses of this field.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2023-05-17 22:39:57 -03:00
parent 01d9a84ef5
commit 63767b79a5
48 changed files with 267 additions and 15 deletions

View File

@@ -125,7 +125,11 @@ static void cdg_load_palette(CDGraphicsContext *cc, uint8_t *data, int low)
b = ((color ) & 0x000F) * 17;
palette[i + array_offset] = (uint32_t)cc->alpha[i + array_offset] << 24 | r << 16 | g << 8 | b;
}
#if FF_API_PALETTE_HAS_CHANGED
FF_DISABLE_DEPRECATION_WARNINGS
cc->frame->palette_has_changed = 1;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
}
static int cdg_tile_block(CDGraphicsContext *cc, uint8_t *data, int b)