diff options
author | wm4 <wm4@nowhere> | 2019-10-20 01:54:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-20 02:17:31 +0200 |
commit | 07aa29ed8e11797310bbc8d569cc58e29bb794e3 (patch) | |
tree | 12f04a4c2f70fdc40bf8cf7060635bccfff06935 /options/options.h | |
parent | fd539a542f04e88a8c5b245cc3c3b80b03c2a4b7 (diff) | |
download | mpv-07aa29ed8e11797310bbc8d569cc58e29bb794e3.tar.bz2 mpv-07aa29ed8e11797310bbc8d569cc58e29bb794e3.tar.xz |
video: add zimg wrapper
This provides a very similar API to sws_utils.h, which can be used to
convert and scale from one mp_image to another.
This commit adds only the code, but does not use it anywhere.
The code is quite preliminary and barely tested. It supports only a few
pixel formats, and will return failure for many others. (Unlike
libswscale, which tries to support anything that FFmpeg knows.)
zimg itself accepts only planar formats. Supporting other formats
requires manual packing/unpacking. (Compared to libswscale, the zimg API
is generally lower level, but allows for more flexibility.) Only BGR0
output was actually tested. It appears to work.
Diffstat (limited to 'options/options.h')
-rw-r--r-- | options/options.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/options/options.h b/options/options.h index be76364c89..fb5f842565 100644 --- a/options/options.h +++ b/options/options.h @@ -55,8 +55,9 @@ typedef struct mp_vo_opts { double override_display_fps; double timing_offset; - // vo_drm struct sws_opts *sws_opts; + struct zimg_opts *zimg_opts; + // vo_drm struct drm_opts *drm_opts; |