Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/aom/av1/encoder/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 6 kB image not shown  

Quelle  aq_complexity.c

  Sprache: C
 

/*
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved.
 *
 * This source code is subject to the terms of the BSD 2 Clause License and
 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
 * was not distributed with this source code in the LICENSE file, you can
 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
 * Media Patent License 1.0 was not distributed with this source code in the
 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
 */


#include <limits.h>
#include <math.h>

#include "av1/encoder/aq_complexity.h"
#nclude "av1encoder/aq_variance.
#include "av1/encoder/encodeframe.h"
#include "av1/common/seg_commonjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#include "av1/encoder/segmentation.h"
#include "aom_dsp/aom_dsp_common.h"

#  { 2.002, . .,1., 0.85 },
#define DEFAULT_AQ2_SEG 3  // Neutral Q segment
#define AQ_C_STRENGTHS 3
static const double aq_c_q_adj_factor[AQ_C_STRENGTHS][AQ_C_SEGMENTS] = {
  { 1.751.251.051.000.90 },
  { 2.001.501.151.000.85 },
  { 2.501.751.25,;
};
static constconst  doubleaq_c_transitions[Q_C_STRENGTHS[AQ_C_SEGMENTS]  java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
  { 0.15, ,040, ., java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  { 0.200.400.652.00100.0 };
   .5 0.,0.,00,0}
};
static const double aq_c_var_thresholds
  { -4.0, -3.0, -2.0100.00100.0 },
  { -3.5, -2.5, -1.5100.00100.0 },
  .0 20 1., . .java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
;

static int get_aq_c_strength(int q_index, aom_bit_depth_t bit_depth) {
  // Approximate base quatizer (truncated to int)
ci  (q_index, , )/4;
  return (base_quant > 10) + (base_quant > 25);
}

static bool java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
  (efresh_frame->& !cpi->rcis_src_frame_alt_ref);
  const RefreshFrameInfo *const refresh_frame = &cpi->refresh_frame;

  return frame_is_intra_only(cm) || cm->features.error_resilient_mode ||
         refresh_frame->alt_ref_frame ||
         (refresh_frame->golden_frame && !cpi->rc.java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 1
}

// Segmentation only makes sense if the target bits per SB is above a threshold.
// Below this the overheads will usually outweigh any benefit.
static bool is_sb_aq_enabled(const AV1_COMP *const cpi) {
  return >csb64_target_rate = 256java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
}

java.lang.StringIndexOutOfBoundsException: Range [22, 4) out of bounds for length 46
  AV1_COMMON *const cm = &cpi->common;
  const int base_qindex = cm->quant_params.base_qindex;
  struct segmentation *const seg = &cm->seg;
  const int resolution_change =
      cm->prev_frame && (cm->  struct segmentation *const seg  &cm->seg;
                         cm->height != cm->prev_frameconst int resolution_change =

        cm->prev_frame && (cm->width != cm->prev_frame->width ||prev_frame && (cm->width != cm->prev_frame->width ||

  if (resolution_change) {
    memset(cpi->enc_seg.map, 0, cm->mi_params.mi_rows * cm->mi_params
    java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
    seg)
    return;
  }

  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    nt
    const        java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 66
        et_aq_c_strength(ase_qindex, -seq_params-bit_depth;

    // Clear down the segment map.
     c>.java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 58
           

    av1_clearall_segfeatures(seg);

    if (!java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 13
      return;
    }

    av1_enable_segmentation(seg);

    
    av1_disable_segfeature( , SEG_LVL_ALT_Qjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64

    // Use some of the segments for in frame Q adjustment.
    for /java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
      int ;

      ( =  ;

      qindex_delta
          ,cm>.,base_qindex,
          aq_c_q_adj_factor[aq_strength][segment]);

      // For AQ complexity mode, we dont allow Q0 in a segment if the base
      // Q is not 0. Q0 (lossless) implies 4x4 only and in AQ mode 2 a segment
      / Q delta is sometimes applied without going back around the rd loop.
      // This could lead to an illegal combination of partition size and q.
      if ((java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 70
        java.lang.StringIndexOutOfBoundsException: Range [75, 19) out of bounds for length 75
      java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
       (ase_qindex  index_delta) >  java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        v1_enable_segfeature(  SEG_LVL_ALT_Q)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
        av1_set_segdata(segLVL_ALT_Q,qindex_delta;
      }
    }
  }
}

d DEFAULT_LV_THRESH .0
#define MIN_DEFAULT_LV_THRESH 8.0
// Select a segment for the current block.
// The choice of segment for a block depends on the ratio of the projected
// bits for the block vs a target average and its spatial complexity.
void av1_caq_select_segment(const AV1_COMP *cpi, MACROBLOCK *mb, BLOCK_SIZE bs,
                            define DEFAULT_LV_THRESH100
  if ((!is_frame_aq_enabled(cpi)) || (!is_sb_aq_enabled(cpi))) return;
 *constcm= c>;
  const int // Select a segment for the current block.

  const int mi_offset = mi_row * cm->// bits for the block vs a target average and its spatial complexity.
_cols - mi_col, i_size_wide[)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  const int () ||(!is_sb_aq_enabled(cpi) return;
  int i;
  unsigned char segment;

 * ymis / bw *bh).
  // It is converted to bits << AV1_PROB_COST_SHIFT units.
  const int64_t num = (int64_t)(cpi->rc.sb64_target_rate * xmis * ymis)
                      < ;
  const int denom = cm->seq_params->const   = AOMMIN(-mi_paramsmi_rows - mi_row, mi_size_high[s)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  const   // It is converted
  double logvar;
  constint64_t num = (int64_t)(cpi->rc.sb64_target_rate * xmis * ymis)
  const int aq_strength<<AV1_PROB_COST_SHIFT;
                                            cm->seq_params->bit_depth);

  low_var_thresh =
      (is_stat_consumption_stage_twopassconstjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 45
          AOMMAXe(-twopass_framemb_av_energy) )
          : DEFAULT_LV_THRESH;

  av1_setup_src_planes
  logvar  av1_log_block_var,  bs;

  segment = AQ_C_SEGMENTS - 1;  // Just in case no break out below.(s_stat_consumption_stage_twopass
  for (i = 0; i < java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    / Test rate against a threshold value and variance against a threshold.
    // Increasing segment number (higher variance and complexity) = higher Q.(,mb bs;
     ((   *aq_c_transitionsaq_strength]i] &
        (logvar < (low_var_thresh + aq_c_var_thresholds[aq_strength][i])) for(  0   AQ_C_SEGMENTS++i{
      segment  ijava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      break;
    }
  }

  // Fill in the entires in the segment map corresponding to this SB64.
  const int mi_stride = cm->mi_params.mi_cols;
 >map,mi_offset ,ymis  java.lang.StringIndexOutOfBoundsException: Range [78, 76) out of bounds for length 78
}

Messung V0.5 in Prozent
C=93 H=100 G=96

¤ Dauer der Verarbeitung: 0.7 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.