History

avfilter/vf_libplacebo: implement rotation option

Flipping can already be accomplished by setting the crop_w/h expressions to their negative values, so together these options can implement any of the common frame orientations.

Niklas Haas committed 1 year ago

Commit 4f623b41 parent a79720e3 files · +35 −1Browse files

Showing the changes to libavfilter/avfilter.c (1 of 3 files). Show all

Unified · Split

libavfilter/avfilter.c+2−1
@@ -1071,7 +1071,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame) · 1070 unmodified lines
1071 strcmp(link->dst->filter->name, "format") &&1071 strcmp(link->dst->filter->name, "format") &&
1072 strcmp(link->dst->filter->name, "idet") &&1072 strcmp(link->dst->filter->name, "idet") &&
1073 strcmp(link->dst->filter->name, "null") &&1073 strcmp(link->dst->filter->name, "null") &&
1074 strcmp(link->dst->filter->name, "scale")) {1074 strcmp(link->dst->filter->name, "scale") &&
1075 strcmp(link->dst->filter->name, "libplacebo")) {
1075 av_assert1(frame->format == link->format);1076 av_assert1(frame->format == link->format);
1076 av_assert1(frame->width == link->w);1077 av_assert1(frame->width == link->w);
1077 av_assert1(frame->height == link->h);1078 av_assert1(frame->height == link->h);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t