diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-08-31 16:52:28 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2024-03-07 21:12:12 +0200 |
commit | d471f2902eb4f824fb5b62c3a30b26581d1e22b9 (patch) | |
tree | 3db807047fa7190882a73bfccac1bbbaae45f66d /video | |
parent | 0d33394955cb9d90905e8ade8776a3574d694544 (diff) | |
download | mpv-d471f2902eb4f824fb5b62c3a30b26581d1e22b9.tar.bz2 mpv-d471f2902eb4f824fb5b62c3a30b26581d1e22b9.tar.xz |
mp_image: add imgfmt_name to mp_image_params
Convenience to override name if imgfmt is not set.
Allows to create mp_image_params without setting imgfmt. Will be useful
for the next change where mp_imgfmt is not available. This is workaround
that will be remved once all codebase switches to pl_fmt.
Diffstat (limited to 'video')
-rw-r--r-- | video/mp_image.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h index 149b63ead1..9658efd433 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -43,6 +43,7 @@ // usually copy the whole struct, so that fields added later will be preserved. struct mp_image_params { enum mp_imgfmt imgfmt; // pixel format + const char *imgfmt_name; // pixel format name enum mp_imgfmt hw_subfmt; // underlying format for some hwaccel pixfmts int w, h; // image dimensions int p_w, p_h; // define pixel aspect ratio (undefined: 0/0) |