Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286398
b: refs/heads/master
c: 1c85220
h: refs/heads/master
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Jan 16, 2012
1 parent 9a77b70 commit 42e6cd6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 938d5b9e7c2e20a7e609ad5874c6e7d8d391e6e9
refs/heads/master: 1c852201a28601b1379857f615e99071211294c6
6 changes: 6 additions & 0 deletions trunk/drivers/media/video/pwc/pwc-dec23.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ void pwc_dec23_init(struct pwc_device *pdev, unsigned char *cmd)

mutex_init(&pdec->lock);

if (pdec->last_cmd_valid && pdec->last_cmd == cmd[2])
return;

if (DEVICE_USE_CODEC3(pdev->type)) {
flags = cmd[2] & 0x18;
if (flags == 8)
Expand Down Expand Up @@ -347,6 +350,9 @@ void pwc_dec23_init(struct pwc_device *pdev, unsigned char *cmd)
for (i=0; i<MAX_OUTER_CROP_VALUE; i++)
pwc_crop_table[MAX_OUTER_CROP_VALUE+256+i] = 255;
#endif

pdec->last_cmd = cmd[2];
pdec->last_cmd_valid = 1;
}

/*
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/video/pwc/pwc-dec23.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ struct pwc_dec23_private
{
struct mutex lock;

unsigned char last_cmd, last_cmd_valid;

unsigned int scalebits;
unsigned int nbitsmask, nbits; /* Number of bits of a color in the compressed stream */

unsigned int reservoir;
unsigned int nbits_in_reservoir;

const unsigned char *stream;
int temp_colors[16];

Expand Down

0 comments on commit 42e6cd6

Please sign in to comment.