mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
[PR #2] [CLOSED] Introduce AVRKMPPDRMFrameDescriptor #231
Labels
No labels
bug
enhancement
help wanted
invalid
pull-request
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/ffmpeg-rockchip#231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nyanmisaka/ffmpeg-rockchip/pull/2
Author: @hbiyik
Created: 1/1/2024
Status: ❌ Closed
Base:
master← Head:ffmpeg-rockchip-keepapi📝 Commits (1)
94e9a39lavu: Introduce AVRKMPPDRMFrameDescriptor📊 Changes
4 files changed (+56 additions, -64 deletions)
View changed files
📝
libavcodec/rkmppdec.c(+3 -4)📝
libavutil/hwcontext_drm.h(+0 -10)📝
libavutil/hwcontext_rkmpp.c(+36 -49)📝
libavutil/hwcontext_rkmpp.h(+17 -1)📄 Description
This is exactly like AVDRMFrameDescriptor but attionally it holds MppBuffer instance used on each index. With that, AVDRMObjectDescriptor can be kept as is, and no need to modify the existing API.
MajorChanges:
Introduce AVRKMPPDRMFrameDescriptor which is inheriting AVDRMFrameDescriptor. Note: if ptr is accepted to be a member off AVDRMObjectDescriptor, then this change would not be necessary. Open for discussion.
Adapt hwcontext_rkmpp.c from AVDRMFrameDescriptor->AVRKMPPDRMFrameDescriptor. (Decoder / encoder and rga scalers are still using AVDRMFrameDescriptor and i think this is fine for future compatibility.)
Remove rkmpp_buffer_free, and use only rkmpp_free_drm_frame_descriptor for both desc and mpp_buf clean up. With this, there is no need to reference tge mppbuffer to drmdescriptor.
Not througly tested yet.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.