summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc/pwc-dec23.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-01-10 17:23:34 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-16 14:09:20 +0100
commit1c852201a28601b1379857f615e99071211294c6 (patch)
treeb3a2b67c3d67bd9c9552af026a505062ce1cb78c /drivers/media/video/pwc/pwc-dec23.h
parent[media] pwc: Avoid sending mode info to the camera when it is not needed (diff)
downloadlinux-1c852201a28601b1379857f615e99071211294c6.tar.xz
linux-1c852201a28601b1379857f615e99071211294c6.zip
[media] pwc: Avoid unnecessarily rebuilding the decoder tables
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/media/video/pwc/pwc-dec23.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/pwc/pwc-dec23.h b/drivers/media/video/pwc/pwc-dec23.h
index a29068ee428b..af31d6047bb2 100644
--- a/drivers/media/video/pwc/pwc-dec23.h
+++ b/drivers/media/video/pwc/pwc-dec23.h
@@ -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];