Lines Matching defs:level
77 s->level = 0;
83 s->peak.level = 0;
110 static inline int dequant_and_decompand(CFHDContext *s, int level, int quantisation, int codebook)
113 return s->lut[codebook][abs(level)] * FFSIGN(level) * quantisation;
115 return level * quantisation;
134 if (abs(band[i]) > peak->level)
448 s->level++;
451 if ((s->transform_type == 0 && s->level >= DWT_LEVELS) ||
452 (s->transform_type == 2 && s->level >= DWT_LEVELS_3D)) {
453 av_log(avctx, AV_LOG_ERROR, "Invalid level\n");
519 s->peak.level = 0;
537 av_log(avctx, AV_LOG_DEBUG, "Highpass width %i channel %i level %i subband %i\n", data, s->channel_num, s->level, s->subband_num);
543 s->plane[s->channel_num].band[s->level][s->subband_num].width = data;
544 s->plane[s->channel_num].band[s->level][s->subband_num].stride = FFALIGN(data, 8);
552 s->plane[s->channel_num].band[s->level][s->subband_num].height = data;
560 s->plane[s->channel_num].band[s->level][s->subband_num].width = data;
561 s->plane[s->channel_num].band[s->level][s->subband_num].stride = FFALIGN(data, 8);
569 s->plane[s->channel_num].band[s->level][s->subband_num].height = data;
620 s->peak.level = 0;
625 s->peak.level = 0;
627 s->peak.level = data;
775 int level, run, coeff;
783 highpass_height = s->plane[s->channel_num].band[s->level][s->subband_num].height;
784 highpass_width = s->plane[s->channel_num].band[s->level][s->subband_num].width;
785 highpass_a_width = s->plane[s->channel_num].band[s->level][s->subband_num].a_width;
786 highpass_a_height = s->plane[s->channel_num].band[s->level][s->subband_num].a_height;
787 highpass_stride = s->plane[s->channel_num].band[s->level][s->subband_num].stride;
803 av_log(avctx, AV_LOG_DEBUG, "Start subband coeffs plane %i level %i codebook %i expected %i\n", s->channel_num, s->level, s->codebook, expected);
818 GET_RL_VLC(level, run, re, &s->gb, s->table_9_rl_vlc,
822 if (level == 64)
831 coeff = dequant_and_decompand(s, level, s->quantisation, 0);
833 coeff = level;
849 GET_RL_VLC(level, run, re, &s->gb, s->table_18_rl_vlc,
853 if (level == 255 && run == 2)
862 coeff = dequant_and_decompand(s, level, s->quantisation, s->codebook);
864 coeff = level;
886 if (s->peak.level)
900 s->plane[s->channel_num].band[s->level][s->subband_num].read_ok = 1;
930 int o, level;
932 for (level = 0; level < (s->transform_type == 0 ? DWT_LEVELS : DWT_LEVELS_3D) ; level++) {
934 if (level == 2 || level == 5)
936 for (o = !!level; o < 4 ; o++) {
937 if (!s->plane[plane].band[level][o].read_ok) {
947 /* level 1 */
971 av_log(avctx, AV_LOG_DEBUG, "Decoding level 1 plane %i %i %i %i\n", plane, lowpass_height, lowpass_width, highpass_stride);
998 /* level 2 */
1037 /* level 3 */
1138 av_log(avctx, AV_LOG_DEBUG, "Decoding level 1 plane %i %i %i %i\n", plane, lowpass_height, lowpass_width, highpass_stride);
1220 av_log(avctx, AV_LOG_DEBUG, "temporal level %i %i %i %i\n", plane, lowpass_height, lowpass_width, highpass_stride);