Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357092
b: refs/heads/master
c: 13908f3
h: refs/heads/master
v: v3
  • Loading branch information
Kirill Smelkov authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent 9da750e commit 946026b
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 10ce84415836d3fbf907367b9eb595a0dfd6ccb1
refs/heads/master: 13908f330f91996b6d59355aa7860553dd1093d5
9 changes: 5 additions & 4 deletions trunk/drivers/media/platform/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,21 +574,22 @@ static void gen_text(struct vivi_dev *dev, char *basep,

static void vivi_fillbuff(struct vivi_dev *dev, struct vivi_buffer *buf)
{
int wmax = dev->width;
int stride = dev->width * dev->pixelsize;
int hmax = dev->height;
void *vbuf = vb2_plane_vaddr(&buf->vb, 0);
unsigned ms;
char str[100];
int h, line = 1;
u8 *linestart;
s32 gain;

if (!vbuf)
return;

linestart = dev->line + (dev->mv_count % dev->width) * dev->pixelsize;

for (h = 0; h < hmax; h++)
memcpy(vbuf + h * wmax * dev->pixelsize,
dev->line + (dev->mv_count % wmax) * dev->pixelsize,
wmax * dev->pixelsize);
memcpy(vbuf + h * stride, linestart, stride);

/* Updates stream time */

Expand Down

0 comments on commit 946026b

Please sign in to comment.