Skip to content

Commit

Permalink
video/out/gpu/video: use video rectangle for video-target-params
Browse files Browse the repository at this point in the history
This makes the reported sizes the same as how stats.lua calculates
sizes for VOs witout video-target-params while in dumb mode.
  • Loading branch information
na-na-hi committed Sep 16, 2024
1 parent 0e92beb commit 9ca02a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video/out/gpu/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9ca02a6

Please sign in to comment.