Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285793
b: refs/heads/master
c: 392d9e1
h: refs/heads/master
i:
  285791: 86f5b9a
v: v3
  • Loading branch information
Tomasz Stanislawski authored and Mauro Carvalho Chehab committed Jan 11, 2012
1 parent 4601101 commit 08f0fd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d066d3f6fdfd189bef5fe653477f5f9db2eb225
refs/heads/master: 392d9e1d02edcbe9bc94bc292dd364339556f8ec
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/s5p-tv/mixer_vp_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ static void mxr_vp_fix_geometry(struct mxr_layer *layer,
y_center = src->y_offset + src->height / 2;

/* ensure scaling is between 0.25x .. 16x */
src->width = clamp(src->width, round_up(dst->width, 4),
dst->width * 16);
src->height = clamp(src->height, round_up(dst->height, 4),
dst->height * 16);
src->width = clamp(src->width, round_up(dst->width / 16, 4),
dst->width * 4);
src->height = clamp(src->height, round_up(dst->height / 16, 4),
dst->height * 4);

/* hardware limits */
src->width = clamp(src->width, 32U, 2047U);
Expand Down

0 comments on commit 08f0fd6

Please sign in to comment.