mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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.
This commit is contained in:
@@ -27,6 +27,7 @@ enum hwdec_type {
|
||||
HWDEC_CUDA,
|
||||
HWDEC_CUDA_COPY,
|
||||
HWDEC_CRYSTALHD,
|
||||
HWDEC_RKMPP,
|
||||
};
|
||||
|
||||
#define HWDEC_IS_AUTO(x) ((x) == HWDEC_AUTO || (x) == HWDEC_AUTO_COPY)
|
||||
|
||||
Reference in New Issue
Block a user