summaryrefslogtreecommitdiff
path: root/libavfilter/drawutils.h
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2021-12-23 20:06:29 -0600
committerrcombs <rcombs@rcombs.me>2022-01-04 19:39:22 -0600
commit66343e46cfb1bd85dcecc066b9bf444823bd0d82 (patch)
tree2e5dee000b3baf13024197ec684e1dff350d9b8f /libavfilter/drawutils.h
parentf67bd3a8254f50676dee037a0c0b31e4148c1a85 (diff)
lavfi/drawutils: overhaul to improve pixel format support
- No longer mixes u8 and u16 component accesses (this was UB) - De-duplicated 8->16 conversion - De-duplicated component -> plane+offset conversion - De-duplicated planar + packed RGB - No longer calls ff_fill_rgba_map - Removed redundant comp_mask data member - RGB0 and related formats no longer write an alpha value to the 0 byte - Non-planar YA formats now work correctly - High-bit-depth semi-planar YUV now works correctly
Diffstat (limited to 'libavfilter/drawutils.h')
-rw-r--r--libavfilter/drawutils.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavfilter/drawutils.h b/libavfilter/drawutils.h
index 2ca2475585..396688514e 100644
--- a/libavfilter/drawutils.h
+++ b/libavfilter/drawutils.h
@@ -37,7 +37,6 @@ typedef struct FFDrawContext {
enum AVPixelFormat format;
unsigned nb_planes;
int pixelstep[MAX_PLANES]; /*< offset between pixels */
- uint8_t comp_mask[MAX_PLANES]; /*< bitmask of used non-alpha components */
uint8_t hsub[MAX_PLANES]; /*< horizontal subsampling */
uint8_t vsub[MAX_PLANES]; /*< vertical subsampling */
uint8_t hsub_max;