mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/video: Add ff_default_get_video_buffer2() to set specific alignment
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d740782701
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
bdadddf530
commit
1e99ff9d33
@ -41,7 +41,7 @@ AVFrame *ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
|
||||
return ff_get_video_buffer(link->dst->outputs[0], w, h);
|
||||
}
|
||||
|
||||
AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
|
||||
AVFrame *ff_default_get_video_buffer2(AVFilterLink *link, int w, int h, int align)
|
||||
{
|
||||
int pool_width = 0;
|
||||
int pool_height = 0;
|
||||
@ -89,6 +89,11 @@ AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
|
||||
return ff_frame_pool_get(link->frame_pool);
|
||||
}
|
||||
|
||||
AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
|
||||
{
|
||||
return ff_default_get_video_buffer2(link, w, h, av_cpu_max_align());
|
||||
}
|
||||
|
||||
AVFrame *ff_get_video_buffer(AVFilterLink *link, int w, int h)
|
||||
{
|
||||
AVFrame *ret = NULL;
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "avfilter.h"
|
||||
|
||||
AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h);
|
||||
AVFrame *ff_default_get_video_buffer2(AVFilterLink *link, int w, int h, int align);
|
||||
AVFrame *ff_null_get_video_buffer(AVFilterLink *link, int w, int h);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user