diff options
author | Niklas Haas <git@haasn.xyz> | 2017-07-25 23:06:27 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-08-03 21:48:25 +0200 |
commit | 1aab0376014ff7fc278a81847c989b3970aa0736 (patch) | |
tree | 3942c4563227490bdb9afc7ba9ce845f0db1da22 /video/mp_image.h | |
parent | 0f956f0929bacd6f4ad1a8c8ad4892ee14001b2d (diff) | |
download | mpv-1aab0376014ff7fc278a81847c989b3970aa0736.tar.bz2 mpv-1aab0376014ff7fc278a81847c989b3970aa0736.tar.xz |
vd_lavc: decode embedded ICC profiles
Since these need to be refcounted, we throw them directly into struct
mp_image instead of being part of mp_colorspace. Even though they would
semantically make more sense in mp_colorspace, having them there is
really awkward because mp_colorspace is passed around and stored a lot,
and this way their lifetime is exactly tied to the lifetime of the
mp_image associated with it.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r-- | video/mp_image.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h index e949b9b81f..640e2709e9 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -100,6 +100,8 @@ typedef struct mp_image { struct AVBufferRef *bufs[MP_MAX_PLANES]; // Points to AVHWFramesContext* (same as AVFrame.hw_frames_ctx) struct AVBufferRef *hwctx; + // Embedded ICC profile, if any + struct AVBufferRef *icc_profile; } mp_image_t; int mp_chroma_div_up(int size, int shift); |