lavu/hwcontext_drm: preparations for RKMPP hwcontext

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka
2023-12-27 22:45:58 +08:00
parent c359d00d13
commit 49cc93e892
+10
View File
@@ -50,6 +50,12 @@ typedef struct AVDRMObjectDescriptor {
* DRM PRIME fd for the object.
*/
int fd;
/**
* DRM PRIME mapped virtual ptr for above fd.
*
* The content of this buffer must be readonly when acting decoder's out buffer.
*/
void *ptr;
/**
* Total size of the object.
*
@@ -63,6 +69,10 @@ typedef struct AVDRMObjectDescriptor {
* DRM_FORMAT_MOD_INVALID.
*/
uint64_t format_modifier;
/**
* User opaque for the object.
*/
void *opaque;
} AVDRMObjectDescriptor;
/**