Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261443
b: refs/heads/master
c: 885fe18
h: refs/heads/master
i:
  261441: 5b1e1b5
  261439: 70cec65
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 6e10c97 commit 810226e
Show file tree
Hide file tree
Showing 8 changed files with 276 additions and 809 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: 5f40d915521f5a8ae4551a21871a062201ba9981
refs/heads/master: 885fe18f5542fe283a17f70583383c6cadcba1c3
1 change: 1 addition & 0 deletions trunk/drivers/media/video/pwc/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config USB_PWC
tristate "USB Philips Cameras"
depends on VIDEO_V4L2
select VIDEOBUF2_VMALLOC
---help---
Say Y or M here if you want to use one of these Philips & OEM
webcams:
Expand Down
19 changes: 1 addition & 18 deletions trunk/drivers/media/video/pwc/pwc-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,9 @@ unsigned int pwc_get_fps(struct pwc_device *pdev, unsigned int index, unsigned i
return ret;
}

#define BLACK_Y 0
#define BLACK_U 128
#define BLACK_V 128

static void pwc_set_image_buffer_size(struct pwc_device *pdev)
{
int i, factor = 0;
int factor = 0;

/* for V4L2_PIX_FMT_YUV420 */
switch (pdev->pixfmt) {
Expand All @@ -541,22 +537,9 @@ static void pwc_set_image_buffer_size(struct pwc_device *pdev)
*/
pdev->offset.x = ((pdev->view.x - pdev->image.x) / 2) & 0xFFFC;
pdev->offset.y = ((pdev->view.y - pdev->image.y) / 2) & 0xFFFE;

/* Fill buffers with black colors */
for (i = 0; i < pwc_mbufs; i++) {
unsigned char *p = pdev->image_data + pdev->images[i].offset;
memset(p, BLACK_Y, pdev->view.x * pdev->view.y);
p += pdev->view.x * pdev->view.y;
memset(p, BLACK_U, pdev->view.x * pdev->view.y/4);
p += pdev->view.x * pdev->view.y/4;
memset(p, BLACK_V, pdev->view.x * pdev->view.y/4);
}
}



/* BRIGHTNESS */

int pwc_get_brightness(struct pwc_device *pdev)
{
char buf;
Expand Down
Loading

0 comments on commit 810226e

Please sign in to comment.