diff options
author | Lionel CHAZALLON <LongChair@hotmail.com> | 2017-10-23 08:51:49 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-23 21:07:24 +0200 |
commit | cfcee4cfe70536faeb9f2aaa87257d067e902b70 (patch) | |
tree | b6dfc61144a7394974657b5dfdfc34d9fcf1576a /options/options.c | |
parent | 762b8cc30007480f06d338ac77d6e91cc04cd320 (diff) | |
download | mpv-cfcee4cfe70536faeb9f2aaa87257d067e902b70.tar.bz2 mpv-cfcee4cfe70536faeb9f2aaa87257d067e902b70.tar.xz |
Add DRM_PRIME Format Handling and Display for RockChip MPP decoders
This commit allows to use the AV_PIX_FMT_DRM_PRIME newly introduced
format in ffmpeg that allows decoders to provide an AVDRMFrameDescriptor
struct.
That struct holds dmabuf fds and information allowing zerocopy rendering
using KMS / DRM Atomic.
This has been tested on RockChip ROCK64 device.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 2f26402526..a79a57f449 100644 --- a/options/options.c +++ b/options/options.c @@ -111,6 +111,7 @@ const struct m_opt_choice_alternatives mp_hwdec_names[] = { {"d3d11va-copy",HWDEC_D3D11VA_COPY}, {"rpi", HWDEC_RPI}, {"rpi-copy", HWDEC_RPI_COPY}, + {"rkmpp", HWDEC_RKMPP}, {"mediacodec", HWDEC_MEDIACODEC}, {"mediacodec-copy",HWDEC_MEDIACODEC_COPY}, {"cuda", HWDEC_CUDA}, @@ -181,6 +182,7 @@ static const m_option_t mp_vo_opt_list[] = { OPT_STRING_VALIDATE("drm-connector", drm_connector_spec, 0, drm_validate_connector_opt), OPT_INT("drm-mode", drm_mode_id, 0), + OPT_INT("drm-overlay", drm_overlay_id, 0), #endif OPT_STRING_VALIDATE("opengl-hwdec-interop", gl_hwdec_interop, 0, ra_hwdec_validate_opt), |