History

vo_gpu_next: infer target parameters

This allows us to read them back.

Kacper Michajłow committed 3 years ago

Commit 580bc691 parent fc5d5331 file · +5 −3Browse files

Unified · Split

video/out/vo_gpu_next.c+5−3
@@ -1114,6 +1114,9 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) · 1113 unmodified lines
11141114 goto done;
11151115 }
11161116
1117+ struct pl_frame ref_frame;
1118+ pl_frames_infer_mix(p->rr, &mix, &target, &ref_frame);
1119+
11171120 mp_mutex_lock(&vo->params_mutex);
11181121 if (!vo->target_params)
11191122 vo->target_params = talloc(vo, struct mp_image_params);
@@ -1127,9 +1130,8 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) · 7 unmodified lines
11271130 .rotate = target.rotation,
11281131 };
11291132
1130− const struct pl_frame *cur_frame = pl_frame_mix_nearest(&mix);
1131− if (cur_frame && vo->params) {
1132− vo->params->color.hdr = cur_frame->color.hdr;
1133+ if (vo->params) {
1134+ vo->params->color.hdr = ref_frame.color.hdr;
11331135 // Augment metadata with peak detection max_pq_y / avg_pq_y
11341136 pl_renderer_get_hdr_metadata(p->rr, &vo->params->color.hdr);
11351137 }

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