video/out/gpu/video: use video rectangle for video-target-params

This makes the reported sizes the same as how stats.lua calculates
sizes for VOs witout video-target-params while in dumb mode.
This commit is contained in:
nanahi 2024-08-28 12:29:54 -04:00 committed by Kacper Michajłow
parent e8d14cd314
commit c890635634
1 changed files with 2 additions and 2 deletions

View File

@ -2728,8 +2728,8 @@ static void pass_colormanage(struct gl_video *p, struct pl_color_space src,
cparams.levels_out = PL_COLOR_LEVELS_FULL;
p->target_params = (struct mp_image_params){
.imgfmt_name = p->fbo_format ? p->fbo_format->name : "unknown",
.w = p->texture_w,
.h = p->texture_h,
.w = mp_rect_w(p->dst_rect),
.h = mp_rect_h(p->dst_rect),
.color = dst,
.repr = {.sys = PL_COLOR_SYSTEM_RGB, .levels = cparams.levels_out},
.rotate = p->image_params.rotate,