Browse Source

dv: increase VLC reading bits to 10

This also requires a bump in the table size of bit patterns to 1664.
From 356 to 348 cycles.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Christophe Gisquet Michael Niedermayer 11 years ago
parent
commit
4fa772acbb
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      libavcodec/dv.c
  2. +2
    -2
      libavcodec/dv.h

+ 2
- 2
libavcodec/dv.c View File

@@ -50,7 +50,7 @@
#include "simple_idct.h"

/* XXX: also include quantization */
RL_VLC_ELEM ff_dv_rl_vlc[1184];
RL_VLC_ELEM ff_dv_rl_vlc[1664];

static inline void dv_calc_mb_coordinates(const AVDVProfile *d, int chan,
int seq, int slot, uint16_t *tbl)
@@ -243,7 +243,7 @@ av_cold int ff_dvvideo_init(AVCodecContext *avctx)
* to accelerate the parsing of partial codes */
init_vlc(&dv_vlc, TEX_VLC_BITS, j, new_dv_vlc_len,
1, 1, new_dv_vlc_bits, 2, 2, 0);
av_assert1(dv_vlc.table_size == 1184);
av_assert1(dv_vlc.table_size == 1664);

for (i = 0; i < dv_vlc.table_size; i++) {
int code = dv_vlc.table[i][0];


+ 2
- 2
libavcodec/dv.h View File

@@ -90,9 +90,9 @@ enum dv_pack_type {
*/
#define DV_MAX_BPM 8

#define TEX_VLC_BITS 9
#define TEX_VLC_BITS 10

extern RL_VLC_ELEM ff_dv_rl_vlc[1184];
extern RL_VLC_ELEM ff_dv_rl_vlc[1664];

int ff_dv_init_dynamic_tables(DVVideoContext *s, const AVDVProfile *d);



Loading…
Cancel
Save