History

vo_gpu_next: rotate target crop

Turns out libplacebo uses unrotated target crop in relation to source. Use dst rect from VO, instead of extracting it from pl_frame, to avoid another unrotating operation.

Kacper Michajłow committed 2 years ago

Commit 078da371 parent 9030e6a1 file · +2 −2Browse files

Unified · Split

video/out/vo_gpu_next.c+2−2
@@ -1134,8 +1134,8 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) · 1133 unmodified lines
1134 p->target_params = (struct mp_image_params){1134 p->target_params = (struct mp_image_params){
1135 .imgfmt_name = swframe.fbo->params.format1135 .imgfmt_name = swframe.fbo->params.format
1136 ? swframe.fbo->params.format->name : NULL,1136 ? swframe.fbo->params.format->name : NULL,
1137 .w = mp_rect_w(target.crop),1137 .w = mp_rect_w(p->dst),
1138 .h = mp_rect_h(target.crop),1138 .h = mp_rect_h(p->dst),
1139 .color = target.color,1139 .color = target.color,
1140 .repr = target.repr,1140 .repr = target.repr,
1141 .rotate = target.rotation,1141 .rotate = target.rotation,

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