| Index: source/libvpx/vp8/decoder/dboolhuff.h
|
| ===================================================================
|
| --- source/libvpx/vp8/decoder/dboolhuff.h (revision 191065)
|
| +++ source/libvpx/vp8/decoder/dboolhuff.h (working copy)
|
| @@ -28,6 +28,18 @@
|
| Even relatively modest values like 100 would work fine.*/
|
| #define VP8_LOTS_OF_BITS (0x40000000)
|
|
|
| +static unsigned char decrypt_byte(const unsigned char *ch,
|
| + const unsigned char *origin,
|
| + const unsigned char *key)
|
| +{
|
| +#if CONFIG_DECRYPT
|
| + const int offset = (int)(ch - origin);
|
| + return *ch ^ key[offset % 32]; // VP8_DECRYPT_KEY_SIZE
|
| +#else
|
| + return *ch;
|
| +#endif
|
| +}
|
| +
|
| typedef struct
|
| {
|
| const unsigned char *user_buffer_end;
|
| @@ -35,13 +47,17 @@
|
| VP8_BD_VALUE value;
|
| int count;
|
| unsigned int range;
|
| + const unsigned char *origin;
|
| + const unsigned char *key;
|
| } BOOL_DECODER;
|
|
|
| DECLARE_ALIGNED(16, extern const unsigned char, vp8_norm[256]);
|
|
|
| int vp8dx_start_decode(BOOL_DECODER *br,
|
| const unsigned char *source,
|
| - unsigned int source_sz);
|
| + unsigned int source_sz,
|
| + const unsigned char *origin,
|
| + const unsigned char *key);
|
|
|
| void vp8dx_bool_decoder_fill(BOOL_DECODER *br);
|
|
|
|
|