You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
hwcontext: Improve allocation in derived contexts
Use the flags argument of av_hwframe_ctx_create_derived() to pass the
mapping flags which will be used on allocation. Also, set the format
and hardware context on the allocated frame automatically - the user
should not be required to do this themselves.
(cherry picked from commit c5714b51aa)
This commit is contained in:
@@ -121,6 +121,11 @@ struct AVHWFramesInternal {
|
||||
* context it was derived from.
|
||||
*/
|
||||
AVBufferRef *source_frames;
|
||||
/**
|
||||
* Flags to apply to the mapping from the source to the derived
|
||||
* frame context when trying to allocate in the derived context.
|
||||
*/
|
||||
int source_allocation_map_flags;
|
||||
};
|
||||
|
||||
typedef struct HWMapDescriptor {
|
||||
|
||||
Reference in New Issue
Block a user