]> Pileus Git - ~andy/linux/blobdiff - drivers/media/video/pwc/pwc-dec23.h
[media] pwc: Avoid unnecessarily rebuilding the decoder tables
[~andy/linux] / drivers / media / video / pwc / pwc-dec23.h
index a29068ee428b536d8e2770c27e908bbc48c4c396..af31d6047bb200e3e24e9a30bbce717ea6dfa8b0 100644 (file)
@@ -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];