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:
Lionel CHAZALLON
2017-10-23 08:51:49 -07:00
committed by wm4
parent 762b8cc300
commit cfcee4cfe7
20 changed files with 823 additions and 23 deletions

View File

@@ -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)