mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avfilter/vf_stereo3d: add fast path for interleave rows to alternating
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
752ab408b4
commit
a2a217b351
@ -631,7 +631,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
|||||||
s->in.format == ABOVE_BELOW_LR ||
|
s->in.format == ABOVE_BELOW_LR ||
|
||||||
s->in.format == ABOVE_BELOW_RL ||
|
s->in.format == ABOVE_BELOW_RL ||
|
||||||
s->in.format == ABOVE_BELOW_2_LR ||
|
s->in.format == ABOVE_BELOW_2_LR ||
|
||||||
s->in.format == ABOVE_BELOW_2_RL)) {
|
s->in.format == ABOVE_BELOW_2_RL ||
|
||||||
|
s->in.format == INTERLEAVE_ROWS_LR ||
|
||||||
|
s->in.format == INTERLEAVE_ROWS_RL)) {
|
||||||
oright = av_frame_clone(s->prev);
|
oright = av_frame_clone(s->prev);
|
||||||
oleft = av_frame_clone(s->prev);
|
oleft = av_frame_clone(s->prev);
|
||||||
if (!oright || !oleft) {
|
if (!oright || !oleft) {
|
||||||
@ -711,6 +713,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
|||||||
case ALTERNATING_LR:
|
case ALTERNATING_LR:
|
||||||
case ALTERNATING_RL:
|
case ALTERNATING_RL:
|
||||||
switch (s->in.format) {
|
switch (s->in.format) {
|
||||||
|
case INTERLEAVE_ROWS_LR:
|
||||||
|
case INTERLEAVE_ROWS_RL:
|
||||||
|
for (i = 0; i < s->nb_planes; i++) {
|
||||||
|
oleft->linesize[i] *= 2;
|
||||||
|
oright->linesize[i] *= 2;
|
||||||
|
}
|
||||||
case ABOVE_BELOW_LR:
|
case ABOVE_BELOW_LR:
|
||||||
case ABOVE_BELOW_RL:
|
case ABOVE_BELOW_RL:
|
||||||
case ABOVE_BELOW_2_LR:
|
case ABOVE_BELOW_2_LR:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user