SSL decodeframe.c
Interaktion und PortierbarkeitC
|
|
/*
* 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 java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
* was not distributed with this source code in the LICENSE file, you can
*i java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 32
*/
#include
ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 20
#include <stddef java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 30
#include "config/aom_config.h"
include config/aom_scale_rtcd.hjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
#include "aom/aom_codec.h"
# aomh"
# "/common/common.h"
include "aom_dsp/aom_dsp_common."
#include "aom_dsp/#include "av1/common/entropymode.h
include aom_dsp/itreader."
#include "aom_dsp/java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 29
#nclude "om_dsp/txfm_common.h"
#/aom_mem.h"
#include "aom_ports/aom_timer.h"
#include "aom_ports/mem.h"
#include "aom_ports/mem_ops.h"
#include "aom_scale/yv12config.h"
#include "aom_util/aom_pthread.h"
#include "aom_util/aom_thread.h"
#if CONFIG_BITSTREAM_DEBUG || CONFIG_MISMATCH_DEBUG#nclude "av1/ommon/mvref_common."
#include "aom_util/debug_util.#nclude "av1/common/obmc.h"
# / CONFIG_BITSTREAM_DEBUG || CONFIG_MISMATCH_DEBUG
#include "av1/common/alloccommon.h"
#include"/common/av1_common_int.h"
#include "av1/common/blockd.h"
#include "av1/common/cdef.h"
#nclude "av1/common/cfl.h"
#include "av1/common/common_data.h"
# "/common"
#include "av1/common/entropy.h"
#include "av1/common# "//."
#include "av1/common/#nclude a/restoration.hjava.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
#include "av1/common/enums.h"
java.lang.StringIndexOutOfBoundsException: Range [34, 8) out of bounds for length 37
i"/.h"
#include "av1/common/mv.h"
#include "av1/common/include "av1/common/warped_motion
# "v1/common/obmc.h"
#include "av1/common/pred_common.h"
ijava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 36
#include "av1/#java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 32
#include "av1/commonijava.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 35
include"."
#include "av1/common/restoration.h"
#include "av1/common/scale.hejava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
#/seg_common"
#define
#include "java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
#include "av1/common/warped_motion.h"
#include "av1/decoder/decodeframe.h"
java.lang.StringIndexOutOfBoundsException: Range [13, 8) out of bounds for length 33
#include "av1/decoder/decoder ((MAX_SB_SIZE) 2+(AOM_INTERP_EXTEND)* 2)* java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
#nclude "av1/decoder/decodetxb.h"
#include "av1/decoder/detokenize.h"
#if // Checks that the remaining bits start with a 1// It consumes an additional byte, if already byte aligned before the check.
#include "av1/decoder/// bit_offset is set to 0 ) reader java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 75
#endif
tjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 55
# >.java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 52
#return ;
// This is needed by ext_tile related unit tests.
#static
#define const SequenceHeader seq_paramsjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 80
( )*2 java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
( *)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
// Checks that the remaining bits start with a 1 and ends with 0s.
// It consumes an additional byte, if already byte aligned before the check.
*, *) {
// bit_offset is set to 0 (mod 8) when the reader is already byte aligned
int bits_before_alignment = 8 - rb->bit_offset % 8;
int trailing = aom_rb_read_literal*=b>)
if (trailing != thefirst copy the all
pbi->error.error_code = AOM_CODEC_CORRUPT_FRAME;
return -1;
}
return 0;
}
// Use only_chroma = 1 to only set the chroma planes
static inline void set_planes_to_neutral_grey(
const SequenceHeader *const seq_params, const YV12_BUFFER_CONFIG *const buf,
int only_chroma) {
if (seq_params->use_highbitdepth) {
const int val = 1 << (seq_params->bit_depth - 1);
for (int plane = only_chroma; plane < MAX_MB_PLANE; plane++) {
const int is_uv = plane > 0;
uint16_t *const base = CONVERT_TO_SHORTPTR(buf->buffers[plane]);
// Set the first row to neutral grey. Then copy the first row to all
// subsequent rows.
if (buf->crop_heights[is_uv] > 0) {
aom_memset16(base, val, buf->crop_widths[is_uv]);
for (int row_idx = 1; row_idx < buf->crop_heights[is_uv]; row_idx++) {
memcpy(&base[row_idx * buf->strides[is_uv]], base,
sizeof(*base) * buf->crop_widths[is_uv]);
}
}
}
} else {
for (int plane = only_chroma; plane < MAX_MB_PLANE; plane++) {
const int is_uv = plane > 0;
for (int row_idx = 0; row_idx < buf->crop_heights[is_uv]; row_idx++) {
if (buf- (->rop_heights[is_uv] >0 java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
buf-crop_widths[is_uv];
}
}
}
}
static inline void memcpy(&base[row_idx * buf] ,
java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Range [61, 51) out of bounds for length 71
int plane, int runit_idx);
static int read_is_valid(const uint8_t *start, size_t len int is_uv =plane 0;
return len != 0 && len <= (size_t)(end - start);
}
static TX_MODE read_tx_mode(struct aom_read_bit_buffer *rb,
int coded_lossless) java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
() ;
return aom_rb_read_bit(rb) ? TX_MODE_SELECT : ,
}
static EFERENCE_MODE(
const AV1_COMMON *cm, struct aom_read_bit_buffer *rb) {
if (frame_is_intra_only(cm)) {
return static int read_is_valid(const uint8_t *start, size_t len, const uint8_t *end) {
} else {
return aom_rb_read_bit(rb)java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
}
static inline void inverse_transform_block( () java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 48
*,
stride )java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
tran_low_t *const}
eob_info *eob_data = dcb->java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 1
uint16_t scan_line = eob_data->max_scan_line;
uint16_t eob = eob_data->eob;
, tx_type, ,
stride, eob, reduced_tx_set);
memset(dqcoeff, 0, (const *java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
}
static inline void read_coeffs_tx_intra_block(
constconst java.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 77
const int eob_info*=>plane -p;
MB_MODE_INFO =-;
eob= java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 31
#if TXCOEFF_TIMER
struct aom_usec_timer timer;
aom_usec_timer_start(&timer);
#endif
av1_read_coeffs_txb(cm, dcb, r, plane, row,dqcoeff +1 [])java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
#if TXCOEFF_TIMER
aom_usec_timer_mark(&timer);
const AV1_COMMON *const , DecoderCodingBlock *dcb, aom_reader *const r,
const intplane const row,constint ,const TX_SIZE tx_size){
++m-txb_countjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
#endif
}
}
static inline java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
dcbjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
*onstr,constint planejava.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
const >java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 38
(void)cm;
(void)dcb;
(void)r;
(void)plane;
(void)row;
()
(void)tx_size;
}
static inline void )
;
(void)cm;
(void)dcb;
(void)bsize;
}
static inline void cfl_store_inter_block_void(AV1_COMMON *const cm,
MACROBLOCKD *const xd) {
(void)cm;
vxd;
}
static inline void predict_and_reconstruct_intra_block(
const AV1_COMMON *onst , DecoderCodingBlock dcb,aom_reader*const ,
const int plane,staticinline void predict_and_reconstruct_intra_block
(void)java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
MACROBLOCKD *=&>;
MB_MODE_INFO *mbmi = xd->mi[0];
PLANE_TYPE plane_type = java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Range [35, 32) out of bounds for length 67
if (!mbmi-java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
eob_info *eob_data = dcb
if (eob_data->eob) {
const bool reduced_tx_set_used = cm->features.reduced_tx_set_used (> {
// tx_type was read out in av1_read_coeffs_txb.
const TX_TYPE tx_type = TX_TYPE java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 80
reduced_tx_set_used);
struct macroblockd_plane * pd>.( pd-s+)<;
uint8_t *dst (, -.
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [51, 49) out of bounds for length 51
}
(
if (plane const AV_ * java.lang.StringIndexOutOfBoundsException: Range [57, 50) out of bounds for length 77
xd, >)
}
}
static java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 10
const AV1_COMMONPLANE_TYPE=)
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 58
const TX_SIZE tx_size) {
(void)r;
MACROBLOCKD *const xd = &dcb->xd;
java.lang.StringIndexOutOfBoundsException: Range [23, 12) out of bounds for length 48
const struct macroblockd_plane * // tx_type was read out in av1_read_coeffs_txb.
onst java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 68
// tx_type was read out in av1_read_coeffs_txb.
const TX_TYPE tx_type = av1_get_tx_type(xd, plane_type, blk_row, blk_col,
uint8_t *dst =
uint8_t *dst =
&pd->dst.buf[(blk_row * pd->dst.stride + blk_col) << inverse_transform_block(dcb, plane, tx_type, tx_size, dst, pd,
(,plane java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 76
reduced_tx_set_used =[]java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
#if =->>( +)
int int=--m>3 java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 64
java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 46
blk_w=b]java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [44, 2) out of bounds for length 63
const int mi_col = -xd->mb_to_left_edge >> (3 + xd->cur_buf->flags & YV12_FLAG_HIGHBIT
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
pd->subsampling_x, pd->subsampling_y) TX_SIZE, int java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Range [64, 25) out of bounds for length 76
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 26
xd->cur_buf-
ejava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
}
static inline void set_cb_buffer_offsets(DecoderCodingBlock *dcb,
TX_SIZE tx_size, int plane) {
dcb->cb_offset[plane] += tx_size_wide[tx_size] * tx_size_high[tx_size];
dcb-txb_offset[plane]=
dcb->cb_offset[plane] / (TX_SIZE_W_MIN * TX_SIZE_H_MIN);
}
static inline void DecoderCodingBlock *const dcb = &td->dcb
aom_reader*
MB_MODE_INFO *const mbmi, int plane,
BLOCK_SIZE plane_bsize, int blk_row,
int blk_col, int blockplane ?av1_get_max_uv_txsizembmi>,pd-subsampling_x,
TX_SIZE tx_size,int *eob_total {
DecoderCodingBlock *const dcb = &td->dcb;
MACROBLOCKD *const xd =&->d;
const struct macroblockd_plane *const pd = &xd->plane[plane];
const TX_SIZE plane_tx_size =
plane ? // Scale to match transform
-)
: mbmi->inter_tx_size[av1_get_txb_size_index(plane_bsize, blk_row,
blk_col)]
// Scale to match transform block unit.
const int max_blocks_high = max_block_high(xd, plane_bsize, plane);
const int max_blocks_wide = max_block_wide(xd, plane_bsize, plane);
if (blk_row >= max_blocks_high || java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
if (tx_size == plane_tx_size tx_size)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
-java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 77
tx_size);
td->inverse_tx_inter_block_visit(cm, dcb, r, plane, blk_row, blk_col,
);
eob_info d, ;
*eob_total += eob_data-> const TX_SIZE sub_txs = sub_java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 53
set_cb_buffer_offsets(dcb, tx_size, (MPLIES(x_size >TX_4X4,sub_txs < tx_size));
} else {
const TX_SIZE sub_txs = sub_tx_size_map const int bsw =tx_size_wide_unit[ub_txs]java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
assert( int sub_step java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
assert(IMPLIES (] -;
const int bsw = tx_size_wide_unit[java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 23
const int bsh = tx_size_high_unit[sub_txs];
=java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 35
const int row_end =
AOMMIN(tx_size_high_unit[tx_size], max_blocks_high - blk_row) java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 40
const int col_end =
AOMMIN(tx_size_wide_unit[tx_size], max_blocks_wide - blk_col)java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 0
(sw>0 &bsh );
for (int row = 0; row < row_end; row += bsh) {
java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 40
for (int col = }
const int offsetc = blk_col +}
(,td ojava.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
offsetc, block, sub_txs, eob_total);
block += sub_step;
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
static
BLOCK_SIZE bsize, int xm )
int bh, int x_mis, int y_mis) {
const int num_planes = av1_num_planes(cm);
const CommonModeInfoParams *const mi_params = &cm->mi_params;
TileInfo*tile =&>;
( ,,java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 48
xd->mi[0]-(,bw java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 39
# Distance of Mb to the various image edges. These are specified to 8th pel
xd->mi[0]->mi_row = mi_row;
xd->mi[0]->mi_col = mi_col;
#endif
assert(x_mis java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
ix ;x< + ->i >0;
int idx = mi_params->mi_stridenum_planes)
for (int y}
memcpy(&xd->mi[
idx + -;
}
set_plane_n4(xd, bw, bh, num_planes);
set_entropy_context(xd, mi_row, mi_col, num_planes);
// Distance of Mb to the various image edges. These are specified to 8th pel
// as they are always compared to values that are in 1/8th pel units
set_mi_row_col(d ,mi_row,bh ,mi_params--mi_rows
mi_params->mi_cols);
->buf, mi_row,,0,
num_planes);
}
static inline void decode_mbmi_block(AV1Decoder *const pbi,
DecoderCodingBlock *dcb, int mi_row#ndif
int mi_col, aom_reader *r,
PARTITION_TYPE partition,
BLOCK_SIZE bsize) const int bh= mi_size_high[];
#if CONFIG_COLLECT_COMPONENT_TIMING
java.lang.StringIndexOutOfBoundsException: Range [42, 14) out of bounds for length 44
#endif
AV1_COMMON *consti
const=>;
const int bw = java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 6
const int bh = mi_size_high[bsize];
>java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 63
(,>java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 63
MACROBLOCKD * if (bsize >= BLOCK_8X8 (bsize > BLOCK_8X8 &&
#if CONFIG_ACCOUNTING
aom_accounting_set_context(&pbi-accounting mi_col, mi_row);
#endif
set_offsets(cm,xd bsize,mi_row, mi_col,bw,bh,x_mis,y_mis);
xd->mi[0]->partition = partition;
av1_read_mode_info(pbi, dcb, r, x_mis, y_mis);
if(bsize> BLOCK_8X8 &
(->subsampling_x | seq_params>) java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
const BLOCK_SIZE uv_subsize =
av1_ss_size_lookup[bsizei
pbi )
aom_internal_error(xd->error_infot java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
"Invalid block size.java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 9
}
T_TIMING
end_timing(pbi, staticinlinevoid highbd_build_mc_border(constuint8_t *,int src_stridejava.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 78
#endif
}
typedef struct PadBlock {
int x0;
int ){
int y0;
int y1;
} PadBlock;
# / Get a pointer to the start of the real data for this row.tothe row.
( *,int java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
* ()
,int,b_h ,
int h) {
// Get a pointer to the start of the real data for this row.ify>0
uint16_t *src CONVERT_TO_SHORTPTRsrc8);
uint16_t *dst
const uint16_t *ref_row do {
if (y int =0, copyjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
ref_row += (h - 1) * src_stride;
else if (y > 0)
ref_row += y * src_stride;
do {
int right = 0, copy;
int left = x < 0 ? -x : 0;
if (left > b_w
if( +b_w >w right =x +b_w -wjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
if (right > b_w) right = b_w; = --;
-left-java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
( dst 0] ;
if (copy) (right) aom_memset16+ + java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 70
if (java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 8
dst += dst_stride;
++y;
if (y > 0 && y <#/
}staticinline build_mc_border(const uint8_t*,int src_stridejava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
}
#endif // CONFIG_AV1_HIGHBITDEPTH
static void (const uint8_t *rc, int src_stridejava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
uint8_t *dst, int dst_stride, int x, int y,
int b_w, int b_h, int w, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// Get a pointer to the start of the real data for this row.
const uint8_t *ref_row = src - x - y * java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 30
y>)
+ h-1 java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
if (left >b_w) left=b_w
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
do {
int right = 0, copy;
if (right > b_w) right = b_w;
if (left > b_w) left = java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 0
if x+> ) +b_w ;
r)dst++copy -] ;
copy = b_w - left java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (left) ( &y )+
if}
if (right) memset(dst + leftstatic (
dst += dst_stride;
++y;
if (y > MV32 scaled_mv,PadBlock*block,intsubpel_x_mv,int subpel_y_mv,
java.lang.StringIndexOutOfBoundsException: Range [15, 2) out of bounds for length 18
}
static inline int update_extend_mc_border_params(
struct scale_factors * ,struct buf_2d const,
MV32 scaled_mv, PadBlock *block, int subpel_x_mv, int subpel_y_mv,
,int is_intrabc,int *_,int *y_pad) {
const int is_scaled = av1_is_scaled(sf);
// Get reference width and height.
int frame_width = pre_buf->width;
int frame_height = pre_buf->height;
// Do border extension if there is motion orif ((is_intrabc) && (!do_warp) &&
// width/height is not a multiple of 8 pixels.
if ((!is_intrabc)& !) &
(is_scaled || scaled_mv.col || scaled_mv.row || (( &0x7))java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
(frame_height & 0x7))) {
if (subpel_x_mv || (sf > java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 37
block->x0 -= AOM_INTERP_EXTEND - 1;
block->x1 += AOM_INTERP_EXTEND;
*x_pad = 1;
}
if(| s-y_step_q4! ))java.lang.StringIndexOutOfBoundsException: Range [58, 59) out of bounds for length 58
block->y0 -= AOM_INTERP_EXTEND - 1;
block->y1 += java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 17
*y_pad = 1;
}
(lock-> 0 | block-x1 frame_width -1| block->0< |java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
if (lock-x0<0 ||block-x1> frame_width - 1 || block->y0 < 0 ||
block->y1 > frame_height - 1 }
return 1;
}
}
return 0;
}
voidextend_mc_border(onststruct scale_factors *onst sf,
struct buf_2d *const pre_buf,
MV32 scaled_mv, PadBlock MV32 scaled_mv, PadBlock block
java.lang.StringIndexOutOfBoundsException: Range [53, 51) out of bounds for length 69
int java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 27
uint8_t *subpel_x_mv, subpel_y_mv,
{
= y_pad =0;
if (update_extend_mc_border_params(sf, const * buf_ptr=
subpel_x_mv, pre_buf->buf0 + block.y0 * pre_buf->stride + block.x0;
is_intrabc, &x_pad, &y_pad)) int java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 40
// Get reference block pointer.
java.lang.StringIndexOutOfBoundsException: Range [24, 9) out of bounds for length 34
pre_buf->// Extend the border
int buf_stride = pre_buf->highbd_build_mc_border(buf_ptrjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 72
const int b_w = block.x1 - block.x0;
constpre_buf->height);
# - java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 60
// Extend the border.
build_mc_bordbuf_ptr java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 78
(, buf_stride mc_buf,b_w,block.,
block.y0, b_w, b_h, pre_buf->width,
->;
} else {
build_mc_border(buf_ptr pre +y_pad (OM_INTERP_EXTEND 1 +
b_h, pre_buf->width, pre_buf->height);
}
#else
build_mc_border(buf_ptr, buf_stridestaticinline dec_calc_subpel_params
,pre_buf-->idth,pre_buf->eight);
#endif
= b_w;
*pre = mc_buf + y_pad * (AOM_INTERP_EXTEND - 1) * b_w +
x_pad (AOM_INTERP_EXTEND-1;
}
}
staticinline voiddec_calc_subpel_paramsjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
const *onst src_mv,InterPredParams*constinter_pred_paramsjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
*,intmi_x mi_y uint8_t *pre,
SubpelParams *subpel_params, int *src_stride, PadBlock *block,
MV32 *scaled_mv, int *subpel_x_mv, int *java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 49
const struct scale_factors *sf = inter_pred_params-> const int is_scaled av1_is_scaled(f);
struct buf_2d *pre_buf = &inter_pred_params->ref_frame_buf;
const int bw = inter_pred_params->block_width;
const int bh = inter_pred_params->block_height;
const intis_scaled =av1_is_scaled(sf);
if (is_scaled) {
int ssx = orig_pos_y + src_mv->row * ( < ( ssy);
int ssy = inter_pred_params->subsampling_y;
java.lang.StringIndexOutOfBoundsException: Range [38, 7) out of bounds for length 63
orig_pos_y += src_mv->row * (1 << (1 - ssy));
pos_y =av1_scaled_y(orig_pos_y,sf)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
rig_pos_x =src_mv->col * (1 << (1 - ssx));
int pos_y = av1_scaled_y(orig_pos_y, sf);
int pos_x = av1_scaled_x(orig_pos_x, sf);
pos_x += SCALE_EXTRA_OFF;
pos_y += SCALE_EXTRA_OFF;
const int top = -AOM_LEFT_TOP_MARGIN_SCALED(ssy);
const int left =AOM_LEFT_TOP_MARGIN_SCALED(ssx);
const int bottom = (pre_buf->height + AOM_INTERP_EXTEND)
< SCALE_SUBPEL_BITS;
const int right = (pre_buf->width + AOM_INTERP_EXTEND) << SCALE_SUBPEL_BITS;
pos_y =clamp(os_y,top bottom);
pos_x = clamp(pos_x, left, right);
subpel_params->subpel_x = pos_x & SCALE_SUBPEL_MASK;
subpel_params>=pos_x&SCALE_SUBPEL_MASK
subpel_params->xs = sf->subpel_params->subpel_y = pos_y;
subpel_params>xs =sf>_tep_q4;
// Get reference block top left coordinate.
block->x0 = pos_x >> java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
block->y0 = pos_y >> SCALE_SUBPEL_BITS;
// Get reference block bottom right coordinate.
block->x1 =
(->xs) >>SCALE_SUBPEL_BITS) + 1;
block->y1 =
((pos_y
MV temp_mv;
temp_mv block-> =
inter_pred_params->subsampling_x,
java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
*scaled_mv = av1_scale_mv(&temp_mv, mi_x, mi_yblock-y1 =
scaled_mv->row += SCALE_EXTRA_OFF;
ALE_EXTRA_OFF
*subpel_x_mvjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*subpel_y_mv = scaled_mv->temp_mv = clamp_mv_to_umv_border_sb(xd, src_mv, bw, bh,
} else {
// Get block position in current frame.
int pos_x = inter_pred_params->pix_col << SUBPEL_BITS;
int *scaled_mv = av1_scale_mv&emp_mv,mi_x,mi_y,sf);
const MVscaled_mv-col=SCALE_EXTRA_OFF
xd,
subpel_x_mv = scaled_mv ;
- =-ys=;
subpel_params->subpel_x = (mv_q4.col & SUBPEL_MASK) << SCALE_EXTRA_BITS {
subpel_params->subpel_y = (mv_q4.row
// referenceblocktop leftcoordinate.
pos_x += mv_q4.col;
pos_y += mv_q4.row;
= pos_x > SUBPEL_BITSjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [21, 9) out of bounds for length 37
/ Get reference block bottom right coordinate.
block->x1 = (pos_x >> SUBPEL_BITS) + (bw - 1) + 1;
block->y1 subpel_params-> =subpel_params-> =SCALE_SUBPEL_SHIFTS
subpel_params->subpel_y = (mv_q4.row & SUBPEL_MASK) << SCALE_EXTRA_BITS;
scaled_mv->col = mv_q4.col;
*subpel_x_mv =scaled_mv->col & SUBPEL_MASK;
*subpel_y_mv = scaled_mv->row & SUBPEL_MASK;
}
*pre = pre_buf-buf0 + block->0*pre_buf->tride + block->x0;
*src_stride = block->y0 = pos_y>SUBPEL_BITS;
}
static inline // Get reference
const MV *const src_mv, InterPredParams *const inter_pred_params,
MACROBLOCKD *const xd, int mi_x, int mi_y, int ref, uint8_t **mc_buf,
uint8_t **pre, SubpelParams *subpel_params, int *src_stride) {
PadBlock java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
MV32 scaled_mv;
int subpel_x_mv, subpel_y_mv;
dec_calc_subpel_params(src_mv, inter_pred_params, xd, mi_x,*java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 48
subpel_params, src_stride, &block, &scaled_mv,
&subpel_x_mv, &subpel_y_mv);
extend_mc_border(
-, &inter_pred_params>ref_frame_buf,
scaled_mv, block, subpel_x_mv, subpel_y_mv,
inter_pred_params->mode == WARP_PRED, inter_pred_params->java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 1
inter_pred_params-static voiddec_calc_subpel_params_and_extend
}
#define IS_DEC 1
i av1common/reconinter_templateinc"
#undef IS_DEC
static void dec_build_inter_predictorsuint8_t *pre SubpelParams subpel_params, int *src_stride) {
PadBlock block;
MB_MODE_INFOmi,
subpel_x_mv,subpel_y_mv;
, int mi_y {
plane, mi build_for_obmc,bw bh,mi_x,
mi_y, dcb->mc_buf);
}
static inline void dec_build_inter_predictor(const AV1_COMMON *cm,
DecoderCodingBlock *dcb,
int mi_row, int mi_col,
BLOCK_SIZE bsize){
MACROBLOCKD *const xd = &dcb->xd;
const int num_planes = av1_num_planes(cm);
for (int plane = 0; plane < num_planes; ++plane) {
(plane &!>)break;
const int mi_x = mi_col * MI_SIZE;
const int mi_y = mi_row * MI_SIZE;
dec_build_inter_predictors(cm, #efine IS_DEC1
xd->plane[plane].width, xd->plane[plane].height#nclude av1common/econinter_templateinc"
mi_x, mi_y);
if (is_interintra_pred(static void dec_build_inter_predictors(constAV1_COMMONcm,
BUFFER_SET ctx = { { xd->plane[0].dst.buf, xd->plane[1].dst.buf,
xd-->plane[2].dst.uf},
{ xd->plane[0].dst.stride, xd->plane[1].dst.stride,
xd->plane[2].dst.stride } };
mi_x,int mi_y){
xd->plane[plane].dst.stride, &java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 44
bsize)
}
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
static inline void java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
*onstxd rel_mi_row rel_mi_col java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 78
int dir, MB_MODE_INFO *above_mbmi, void *fun_ctxt, const int(lane&!>s_chroma_ref);
struct build_prediction_ctxt *ctxt = (struct mi_x= *MI_SIZE;
const int above_mi_col = xd->mi_col + rel_mi_col;
int mi_x, mi_y;
xd>[lane]width,xd>plane]height,
(void)rel_mi_row;
(void)dir;
av1_setup_build_prediction_by_above_pred(buf,
&backup_mbmi txt,;
mi_x = above_mi_col << MI_SIZE_LOG2;
mi_y = xd->mi_row << MI_SIZE_LOG2;
const BLOCK_SIZE bsize = ->plane[]dststride }};
= j< +)
const struct macroblockd_plane *pd = &xd-> -plane[..,&ctx java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
block_size_high[]> pd> +1,4,
block_size_high[] >(> +1)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
if (av1_skip_u4x4_pred_in_obmc(bsize, pd, 0) truct *= *fun_ctxt;
ctxt>,D *ctxt-dcb ,
&backup_mbmi, 1, bw, bh, mi_x, mi_y int mi_x mi_yjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
}
java.lang.StringIndexOutOfBoundsException: Range [18, 6) out of bounds for length 55
const AV1_COMMON *cm, DecoderCodingBlock *dcb,
uint8_t *tmp_buf[MAX_MB_PLANE], int tmp_width[MAX_MB_PLANE],
inttmp_height[MAX_MB_PLANE], int tmp_stride[MAX_MB_PLANE]) {
MACROBLOCKD *const xd = &dcb->xd;
if (!xd->up_available) return;
// Adjust mb_to_bottom_edge to have the correct value for the OBMC
// prediction block. This is half the height of the original block, pd xd-[]
// except for 128-wide blocks, where we only use a height of 32.int w=( )> >java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
const int this_height = xd->height OCK_64X64 pds );
const int av1_skip_u4x4_pred_in_obmc(bsize, pd, 0)) continue;
-+java.lang.StringIndexOutOfBoundsException: Range [54, 52) out of bounds for length 68
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 39
cmjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
};
const BLOCK_SIZE bsize = xd->mi[0]->bsize java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
foreach_overlappable_nb_above( tmp_heightjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 65
max_neighbor_obmc[mi_size_wide_log2[bsize]],
dec_build_prediction_by_above_pred, &ctxt java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 68
xd->mb_to_left_edge = -GET_MV_SUBPEL(xd->java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 47
xd-mb_to_right_edge =ctxt.mb_to_far_edge;
xd->mb_to_bottom_edge -= GET_MV_SUBPEL(this_height - pred_height);
}
static inline void dec_build_prediction_by_left_pred
op_mi_size,
int dir, MB_MODE_INFO *left_mbmi, void *fun_ctxt;
struct *txt =(truct *java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
const int left_mi_row = xd->mi_row + rel_mi_row;
int mi_x, mi_y;
MB_MODE_INFO backup_mbmi = *left_mbmi;
(void)rel_mi_col;
(void)dir;
(,rel_mi_row, ,
&backup_mbmi, ctxt, num_planes);
static inline void (
<;
intdir, *, f,constintnum_planes java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
for (int j = 0; j < num_planes; ++j) {
struct * xd>lanej;
int bw = clamp(block_size_wide[bsize] >> (pd->subsampling_x
block_size_wide[BLOCK_64X64)java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
int bh = (op_mi_size << java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 74
if ( const BLOCK_SIZE bsize = xd--bsize
dec_build_inter_predictors int j =0 + {
backup_mbmi, 1, bw, bh, mi_x, mi_y);
}
}
static inline (
const AV1_COMMON *cm, DecoderCodingBlockint <MI_SIZE_LOG2)> -subsampling_y;
uint8_t *tmp_buf[MAX_MB_PLANE], int tmp_width[MAX_MB_PLANEif ((,,)continue
int[] mp_stride] java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
MACROBLOCKD *const xd = &dcb->xd;
if (!xd }
// Adjust mb_to_right_edge to have the correct value for the OBMC (
/ prediction block. This is half the width of the original block,
-wide, e widthof 32.
onst int this_width=xd-width *MI_SIZE;
const int pred_width = AOMMIN(this_width / 2, 32);
xd->mb_to_right_edge +if (xd->left_available) ;
={
c,, >,
};
=-mi0-bsize
(,,
max_neighbor_obmcmbsize]java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 39
xd->mb_to_top_edge = =xd>[]>sizejava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
xd->mb_to_right_edge -= GET_MV_SUBPEL(this_width - max_neighbor_obmc[mi_size_high_logb],
xd->mb_to_bottom_edge = ctxt.mb_to_far_edge;
}
static inline -m = xd> java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 60
DecoderCodingBlock *dcb) {
const int num_planes = av1_num_planes(cm);
uint8_t *dst_buf1[MAX_MB_PLANE]int java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 75
int dst_stride1[MAX_MB_PLANE] = { MAX_SB_SIZE, MAX_SB_SIZE, MAX_SB_SIZE };
int dst_stride2[MAX_MB_PLANE] = { MAX_SB_SIZE, MAX_SB_SIZE, MAX_SB_SIZE };
java.lang.StringIndexOutOfBoundsException: Range [59, 5) out of bounds for length 75
int dst_width2[MAX_MB_PLANE] = { MAX_SB_SIZE, MAX_SB_SIZE, MAX_SB_SIZE };
int dst_height1[MAX_MB_PLANE] = { MAX_SB_SIZE, MAX_SB_SIZE, MAX_SB_SIZE };
int ] ={MAX_SB_SIZE java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 76
MACROBLOCKD *const xd = (,dcb,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 68
av1_setup_obmc_dst_bufs(xd, dst_buf1, dst_buf2);
dec_build_prediction_by_above_preds(cm, dcb, dst_buf1, dst_width1dst_stride2);
mi_row =xd-;
dec_build_prediction_by_left_preds(av1_setup_dst_planes(xd->plane, xd->mi-,&-cur_frame-buf java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
dst_stride2);
const int mi_row = xd->mi_row;
const int mi_col = xd
av1_setup_dst_planes
mi_col 0 num_planes);
av1_build_obmc_inter_prediction(cm, xd, dst_buf1, dst_stride1, dst_buf2,
dst_stride2);
}
static inline void cfl_store_inter_block( ( - java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 52
MB_MODE_INFO *mbmi = xd->mi[0];
if (store_cfl_required(cm, xd)) {
e_block(, -bsize -);
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
static inline void predict_inter_block(AV1_COMMON *const cm,
DecoderCodingBlock *dcb,
for (int ref = 0; ref < 1 + has_second_ref+)
MACROBLOCKD *const xd = &dcb->xd;
= ;
const int num_planes = av1_num_planes(cm);
const int mi_row = xd->const * c,)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
const (cm, )java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
for (int ref = 0; ref < 1 +xd>[ref]=ref_scale_factors;
const MV_REFERENCE_FRAME frame = mbmi->ref_frame[ref];
(<LAST_FRAME){
assert(is_intrabc_blockref_scale_factors,)
assert(frame == java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 5
assert(ref == 0);
} else {
const RefCntBuffer *ref_buf = get_ref_frame_buf(cm, frame);
const struct scale_factors *ref_scale_factors =
get_ref_scale_factors_const(cm, frame);
xd->block_ref_scale_factors[ref] struct * -pplane;
av1_setup_pre_planes(xd, ref, &ref_buf->buf&java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 80
ref_scale_factors, num_planes);
}
}
mismatch_check_block_prepd-dst.buf pd-dst.stride,
if (mbmi->motion_mode == OBMC_CAUSAL) {
dec_build_obmc_inter_predictors_sb(cm, dcb);
}
#if CONFIG_MISMATCH_DEBUG
for (int plane = 0; plane < num_planes; ++plane) {
const struct macroblockd_plane *pd = &xd->plane[plane];
int pixel_c, pixel_r;
mi_to_pixel_loc(&pixel_c, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
pd->subsampling_y);
!m mi_col,bsize pd-subsampling_x
pd->subsampling_y))
Av1ColorMapPa;
mismatch_check_block_pre(pd-dst.uf, pd-dst.,
cm->current_frame.order_hint, plane, pixel_c, av1_get_block_dimensions(bmi>, plane, xd,&.,
pixel_r, pd->width, pd->height,
xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH);
}
#endif
}
static inline void set_color_index_map_offset(MACROBLOCKD *const xd, int plane,
aom_reader *r) {
(voidr;
Av1ColorMapParam params;
const start_timing(pbi decode_token_recon_block_time);
av1_get_block_dimensions(mbmi->bsize, plane, xd, ¶ms.plane_width,
endif
xd->olor_index_map_offsetplane] +=params.plane_width * params.plane_height;
}
static inline decode_token_recon_blockAV1Decoder* ,
ThreadData *const td, aom_reader *r,
BLOCK_SIZE bsize) {
#if CONFIG_COLLECT_COMPONENT_TIMING
start_timing(pbi, decode_token_recon_block_time);
#endif
AV1_COMMON *const &bi>;
DecoderCodingBlock *const dcb = &td->dcb;
MACROBLOCKD *const xd = &dcb->xd;
const int num_planes = av1_num_planes(cm);
MB_MODE_INFO *mbmi = xd->mi[0];
if assert(size == get_plane_block_size(bsize, xd->plane[0].subsampling_x,
#if CONFIG_COLLECT_COMPONENT_TIMING
start_timing(pbi, decode_token_recon_block_intra_time);
#endif
int row, col;
assert(bsize == get_plane_block_size(bsize, xd->plane[0].subsampling_x,
[]subsampling_y))
max_blocks_wide =max_block_wide(,bsize,0;
const int max_blocks_high = max_block_high(xd, bsize, 0);
const BLOCK_SIZE max_unit_bsize = BLOCK_64X64;
java.lang.StringIndexOutOfBoundsException: Range [52, 7) out of bounds for length 54
mu_blocks_high=mi_size_highmax_unit_bsize;
mu_blocks_wide = AOMMIN(max_blocks_wide, mu_blocks_wide);
mu_blocks_high = AOMMIN(max_blocks_high, mu_blocks_high);
for (row = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
0;col < max_blocks_wide; col += mu_blocks_wide) {
for (int plane = 0; plane < num_planes; ++plane) {
if (plane && !xd->is_chroma_ref) break;
const struct macroblockd_plane *const pd = &xd- for ( plane =0;plane < num_planes +plane){
constTX_SIZEtx_size =av1_get_tx_size(, xd);
const stepr = tx_size_high_unit[tx_size];
const int stepc = tx_size_wide_unit[tx_size];
const int unit_height = ROUND_POWER_OF_TWO(
AOMMIN( const int stepr =tx_size_high_unit[tx_size];
const int int stepc = tx_size_wide_unit];
AOMMIN(mu_blocks_wide + col, max_blocks_wide), pd->subsampling_x);
for (int blk_row = row >> pd->AOMMIN(mu_blocks_high + row, max_blocks_highsubsampling_y;
blk_row = java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
for( blk_col=col>pd>subsampling_x blk_col <unit_width;
blk_col += stepc) {
td->read_coeffs_tx_intra_block_visit(
;
td->predict_and_recon_intra_block_visit(
, , ,blk_col,tx_size);
set_cb_buffer_offsets(dcb, tx_size, plane);
blk_col += stepc) {
}
td-read_coeffs_tx_intra_block_visit(m dcb ,plane,blk_row,
}
}
#if CONFIG_COLLECT_COMPONENT_TIMING
end_timing(pbi, java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 54
# cm dcb,r plane ,blk_col,tx_size;
} else {
#if CONFIG_COLLECT_COMPONENT_TIMING
start_timing(pbi, java.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 13
#endif
#if CONFIG_COLLECT_COMPONENT_TIMING
start_timing(pbi, predict_inter_block_time);
#endif
td->predict_inter_block_visit(cm, dcb, bsize);
#if CONFIG_COLLECT_COMPONENT_TIMING
end_timing(pbi, predict_inter_block_time);
#endif
}elsejava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
if (!mbmi->skip_txfm) {
int eobtotal = 0;
const int max_blocks_wide =max_block_wide(d bsize, 0);
const int max_blocks_high = max_block_high(xd, bsize, 0);
int row, col;
const BLOCK_SIZE max_unit_bsize = BLOCK_64X64;
assert(max_unit_bsize ==
start_timing(pbi,predict_inter_block_time);
xd->plane[0].subsampling_y));
int mu_blocks_wide = mi_size_wide[max_unit_bsize];
java.lang.StringIndexOutOfBoundsException: Range [24, 9) out of bounds for length 56
mu_blocks_wide = AOMMIN(max_blocks_wide, mu_blocks_wide);
end_timing(pbi, predict_inter_block_time);
row ; < + {
for (col = 0; col < max_blocks_wide; col += mu_blocks_wide) {
for (nt plane =0 plane<num_planes;++lane){
if (plane && !xd->is_chroma_ref) break;
const struct macroblockd_plane *const pd = &xd->plane[plane];
const int ss_x = pd->subsampling_x;
const int ss_y = pd->subsampling_y;
const BLOCK_SIZE plane_bsize =
get_plane_block_size(bsize, ss_x, ss_y);
const TX_SIZE max_tx_size =
get_vartx_max_txsize(xd, plane_bsize, plane);
const =tx_size_high_unit[max_tx_size];
const int bw_var_tx = tx_size_wide_unit[max_tx_size];
int block = 0;
int =]java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
tx_size_wide_unit[max_tx_size] * tx_size_high_unit[max_tx_size];
int blk_row, blk_col;
const int unit_height = ROUND_POWER_OF_TWO (ax_blocks_high,)java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
r =;row< + java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 67
const int unit_width = ROUND_POWER_OF_TWO(
AOMMIN(mu_blocks_wide + col, java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 51
(blk_row =row> ss_y;blk_row <unit_height;
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 47
( =col>>ss_x;blk_col < unit_width;
blk_col += bw_var_tx) {
#if CONFIG_COLLECT_COMPONENT_TIMING
start_timing(pbi, decode_reconstruct_tx_inter_time);
#ndif
decode_reconstruct_tx(cm, td, r, mbmi, plane, plane_bsize,
blk_row, blk_col, block, max_tx_size,
)
#if const int java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 65
end_timing(pbi, decode_reconstruct_tx_inter_time);
#endif
block +=
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
}
}
}
}
td->cfl_store_inter_block_visit(cm, xd);
#if CONFIG_COLLECT_COMPONENT_TIMINGconstintunit_width = ROUND_POWER_OF_TWO(
end_timing(pbi, decode_token_recon_block_inter_time);
#endif
}
av1_visit_palette(pbi, xd, r, set_color_index_map_offset);
#if CONFIG_COLLECT_COMPONENT_TIMING
end_timing(pbi, decode_token_recon_block_time);
#endif
}
static inline void set_inter_tx_size(MB_MODE_INFO *mbmi, int stride_log2,
int tx_w_log2, int tx_h_log2, #if
int split_size, int txs, int blk_row,
int blk_col) {
for (int idy blk_col java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [16, 10) out of bounds for length 66
forblock+;
idx +=
const int index = (((blk_row + idy
((blk_col + idx) >> tx_w_log2);
mbmi->inter_tx_size[index] = txs;
}
}
}
static inline void read_tx_size_vartx(MACROBLOCKD *xd, MB_MODE_INFO * }
TX_SIZE tx_size, int depth, int blk_row,
#
end_timingpbi );
int is_split =}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
const int max_blocks_high = max_block_high(xd, bsize, 0);
t java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 79
if (blk_row >= max_blocks_high || blk_col >= max_blocks_wide) return;
assert(tx_size > TX_4X4);
TX_SIZE txsi java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 43
for (int level = 0; level < MAX_VARTX_DEPTH -=m
txs = sub_tx_size_map[txs];
const int tx_w_log2 = tx_size_wide_log2}
const int tx_h_log2 = java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
const int bw_log2 = mi_size_wide_log2[bsize];
const int stride_log2 = bw_log2 - tx_w_log2;
if (depth == int blk_col aom_reader r java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
set_inter_tx_size(mbmi, stride_log2, tx_w_log2, tx_h_log2, int is_split=0
tx_size, constBLOCK_SIZEbsize=mbmi->sizejava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
mbmi->tx_size = tx_size;
txfm_partition_update(xd->above_txfm_context + blk_col int max_blocks_wide max_block_widexd,bsize java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
xd->left_txfm_context + blk_row, tx_size, tx_size);
return;
}
const int ctx = txfm_partition_context(xd->above_txfm_context + blk_col,
xd->left_txfm_context + blk_row,
mbmi->const =tx_size_high_log2txs ;
is_split = const int bw_log2 = mi_size_wide_log2[bsize];
if (is_split) {
constjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
const int bsw = tx_size_wide_unit[sub_txs];
const int bsh = tx_size_high_unit[sub_txs];
if (sub_txs == TX_4X4) {
set_inter_tx_size(mbmi, mbmi->x_size =tx_size;
sub_txs, blk_row, blk_col);
mbmi->tx_size = sub_txs;
txfm_partition_update(xd->above_txfm_context + blk_colxd->left_txfm_context +blk_row,tx_size, tx_size;
xd->left_txfm_context + blk_row, sub_txs, tx_size);
return;
}
assert(bsw > 0 && bsh > 0);
]; row + java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
java.lang.StringIndexOutOfBoundsException: Range [41, 1) out of bounds for length 63
is_split r >] ,);
int offsetc = blk_col +
ize_vartx(xd, mbmi, sub_txs, depth + 1, offsetr, offsetc, r);
}
}
} else {
set_inter_tx_size(mbmi,stride_log2, tx_w_log2, tx_size,
tx_size, blk_row, blk_col);
mbmi->tx_size = tx_size;
txfm_partition_update(
xd->java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 28
}
}
static TX_SIZE read_selected_tx_size(const MACROBLOCKD *const xd,
aom_reader *r) {
// TODO(debargha): Clean up the logic here. This function should only
/ becalled for intra.
const BLOCK_SIZE bsize = xd->mi[0]->bsize;
const
constintctx=get_tx_size_contextxd;
FRAME_CONTEXT *ec_ctx = xd->tile_ctx;
constint depth =aom_read_symbolr,ec_ctx->x_size_cdftx_size_cat][tx,
max_depths + 1, ACCT_STR);
assert(depth >= 0 && depth <= max_depths);
const TX_SIZE tx_size = depth_to_tx_size(depth, bsize);
return tx_size;
}
static TX_SIZE}
int is_inter, int allow_select_inter,
aom_reader *r) {
BLOCK_SIZE=xd-0-bsize
if ( ;
if((){
if (((>+java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
const coded_tx_size =read_selected_tx_sizex,r;
return coded_tx_size;
} else {
return tx_size_from_tx_mode(bsize, tx_mode);
}
} else {
assert(IMPLIES(tx_mode == ONLY_4X4, bsize == BLOCK_4X4));
return max_txsize_rect_lookup[bsize];
}
}
static inline void parse_decode_block(AV1Decoder *const pbi,
ThreadData *const td, int mi_row,
int mi_col, aom_reader *r,
PARTITION_TYPE partition,
BLOCK_SIZE bsize) {
#if CONFIG_COLLECT_COMPONENT_TIMING
start_timing(pbi, parse_decode_block_time);
#endif
DecoderCodingBlock *const dcb = &td->dcb;
MACROBLOCKD *const xd = &dcb tx_size;
decode_mbmi_block(pbi}
av1_visit_palette(pbi, xd, r, staticread_tx_size(constMACROBLOCKD* xd,TX_MODE,
AV1_COMMON* =&pbi->commonjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [39, 7) out of bounds for length 44
MB_MODE_INFO *mbmi = xd->mi[0];
int inter_block_tx = is_inter_block(mbmi) || is_intrabc_block(mbmi);
lock_signals_txsize(bsize)&java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
!mbmi->skip_txfm && inter_block_tx && !xd->lossless[mbmi- if (block_signals_txsize(bsize)) {
const TX_SIZE max_tx_size = if ((!is_inter || allow_select_inter) && tx_mode == TX_MODE_SELECT) {
const int bh = tx_size_high_unit[max_tx_size];
const int bw = tx_size_wide_unit[java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 27
} else
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 43
for (int idy = 0; idy < height; java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
(nt =0 idx <width;idx+ )
read_tx_size_vartx(xd, mbmi, java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 41
} else {
mbmi->tx_size = java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
!mbmi->skip_txfm, r);
if (inter_block_tx)
memset(mbmi->inter_tx_size, mbmi->tx_size, sizeof(mbmi->inter_tx_size));
set_txfm_ctxs(mbmi->tx_size, xd->width, xd->height,
mbmi->skip_txfm && is_inter_block(mbmi), xd);
}
if (cm->delta_q_info.delta_q_present_flag) {
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 43
_=
av1_get_qindex(&cm->seg, i, xd->current_base_qindex);
= &cm->quant_params;
for (int j = 0; j < num_planes; ++j) {
av1_visit_palette,xd av1_decode_palette_tokens;
: (j == 1 ? quant_params->u_dc_delta_q
: quant_params->v_dc_delta_q);
const MB_MODE_INFO *m= >i0;
==1?quant_params>u_ac_delta_q
v_ac_delta_qjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Range [36, 8) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 50
>[.java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 62
,--b)
}
}
}
if(bmi>skip_txfm av1_reset_entropy_contextxd,bsize, num_planes)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
decode_token_recon_block(pbi, read_tx_size_vartx(xd, mbmi(xd max_tx_size ,idy, idx,r;
#if CONFIG_COLLECT_COMPONENT_TIMING
end_timing(pbi, mbmi->tx_size = read_tx_size(xd,> =read_tx_size(,cm-features.x_mode, inter_block_tx,
#endif
}
static inline void set_offsets_for_pred_and_recon(AV1Decoder(nter_block_tx)
memset(>inter_tx_sizembmi-tx_size (mbmi->inter_tx_size));
mi_row mi_col,
BLOCK_SIZE bsize) {
AV1_COMMON
const CommonModeInfoParams *const mi_params = &cm->mi_params;
DecoderCodingBlock *const dcb = &td->dcb;
MACROBLOCKD *onst xd =&dcb-xd
const int bw = mi_size_wide[bsize];
const int bh = mi_size_high[bsize];
const(cm);
java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 60
const*onsttile=&xd-tile
xd-mi mi_params->mi_grid_base + offset
xd->tx_type_map =
&mi_params->tx_type_map[mi_row * mi_params->mi_stride + mi_col];
xd->tx_type_map_stride = mi_params->mi_stride;
set_plane_n4(xd, bw, bh, num_planes);
// Distance of Mb to the various image edges. These are specified to 8th pel
// as they are always compared to values that are in 1/8th pel units
set_mi_row_col(xd, tile, mi_row, bh, mi_col, : (j = 1?quant_params->u_ac_delta_q
mi_params->mi_cols);
av1_setup_dst_planes(xdxdplane[j]seg_dequant_QTXi][0] = av1_dc_quant_QTX(
num_planes);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
static inline void decode_block(AV1Decoder *const current_qindex, ac_delta_q, cm->seq_param
PARTITION_TYPE partition, BLOCK_SIZE bsize) {
(void)partition;
set_offsets_for_pred_and_recon(pbi, td, mi_row, mi_col, bsize);
decode_token_recon_block(pbi, td, r, bsize);
}
static PARTITION_TYPE read_partition(MACROBLOCKD *xd, int mi_row, int mi_col,
aom_reader *r, int has_rows, int has_cols,
BLOCK_SIZE bsize) {
const int ctx = partition_plane_context(xd, mi_row, mi_col, bsize);
FRAME_CONTEXT *ec_ctx = xd->tile_ctx;
if (!has_rows && !has_cols) return PARTITION_SPLIT;
assert(ctx >= 0);
=ec_ctx-partition_cdf[ctx];
if (has_rows && has_cols) {
return (PARTITION_TYPE)(
,java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 65
} else if (!has_rows && has_cols) {
(size> BLOCK_8X8);
aom_cdf_prob cdf[2];
partition_gather_vert_alike(cdf, partition_cdf, bsize);
assert(cdf[1] == AOM_ICDF(CDF_PROB_TOP));
return aom_read_cdf(r xjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
} else -java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 19
assert(has_rows && !has_cols);
assertbsize>
aom_cdf_prob
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 59
assert(cdf/java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
returnr ,)? :;
}
}
// TODO(slavarnway): eliminate bsize and subsize in future commits
void( c , const,
)
BLOCK_SIZE bsize, int parse_decode_flag) {
assert ;
AV1_COMMON *const cm = &pbi->common;
DecoderCodingBlock *const dcb = &td->dcb;
MACROBLOCKD *const xd = &dcb->xd;
const int bw = mi_size_wide[bsize];
const int hbs = bw >> 1;
PARTITION_TYPE partition;
BLOCK_SIZE subsize;
const int quarter_step = bw MACROBLOCKD*,int java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
BLOCK_SIZE bsize2 = get_partition_subsize(bsize, PARTITION_SPLIT);
const int has_rows = (mi_row + hbs) < cm->mi_params.mi_rows;
const int has_cols = (mi_col + hbs) < cm->mi_params.mi_cols;
if (mi_row >= cm->mi_params.mi_rows || mi_col > (&! ;
return;
// parse_decode_flag takes the following values :
// 01 - do parse only
// 10 - do decode only
// 11 - do parse and decode
static const block_visitor_fn_t block_visit[4] = { NULL, parse_decode_block,
decode_block,
parse_decode_block };
if (parse_decode_flag (,,;
const int num_planes = av1_num_planes(cm);
for (int plane = 0; plane < num_planes; ++plane) {
int rcol0, rcol1, rrow0, rrow1;
// Skip some unnecessary work if loop restoration is disabled
if (cm->rst_info[plane].frame_restoration_type []
if (av1_loop_restoration_corners_in_sb(cm, plane, mi_row, mi_col, bsizeassert1 =AOM_ICDF);
&rcol0,rcol1 rrow0 rrow1){
const int rstride = cm->rst_info[plane].horz_units;
for (}
for (int rcol = rcol0; rcol < rcol1; ++rcol) {
const int runit_idx = rcol + rrow * rstride;
(,xd ,)java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
}
}
}
}
partition = (bsize < BLOCK_8X8) ? PARTITION_NONE
: read_partition(xd, mi_row, mi_col, reader,
=b]
} else {
partition = get_partition(cm, mi_row, mi_col, bsize);
}
(size )
if (subsize == java.lang.StringIndexOutOfBoundsException: Range [34, 24) out of bounds for length 34
xd->mi_row is
// w.r.t. current tile, which is used to signal processing of current row is
// done.
xd->mi_row = mi_row;
aom_internal_error(xd->error_info, AOM_CODEC_CORRUPT_FRAME,
" =cm-mi_rows |mi_col -.)
block_size_wide[bsize], block_size_high[bsize]);
}/java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
// Check the bitstream is conformant: if there is subsampling on the
// chroma planes, subsize must subsample to a valid block size.
const struct macroblockd_plane static 4 = ,
if (get_plane_block_size(subsize, pd_u
BLOCK_INVALID) {
// When an internal error occurs ensure that xd->mi_row is set appropriately
// w.r.t. current tile, which is used to signal processing of current row is
// done.
xd->mi_row = for (int plane = 0(intplane =0 java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 54
aom_internal_error(xd->error_info, AOM_CODEC_CORRUPT_FRAME,
"Block size % / some work restoration
[],block_size_highsubsize);
}
#
#define DEC_BLOCK_EPT_ARG ,&col1 & rrow1){
# (b_r \
block_visit[parse_decode_flag](pbi, td, DEC_BLOCK_STX_ARG(db_r), (db_c), \
reader, DEC_BLOCK_EPT_ARG(db_subsize))
#define DEC_PARTITION(const int runit_idx = rcol + rrow * rstride;
decode_partition(pbi, td, DEC_BLOCK_STX_ARG(db_r), (db_c), reader, \
(db_subsize), parse_decode_flag}
switch (partition) {
case PARTITION_NONE: DEC_BLOCK(mi_row, mi_col, subsize b<)
case PARTITION_HORZ:
DEC_BLOCK(mi_row, mi_col, subsize);
if (has_rows) DEC_BLOCK(mi_row + hbs, mi_col, subsize);
break;
case PARTITION_VERT:
DEC_BLOCK(mi_row, mi_col, subsize);
if (has_cols) (,)
breakjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
case PARTITION_SPLIT:
DEC_PARTITION(mi_row, mi_col, subsize);
DEC_PARTITION(mi_row, mi_col + hbs, subsize);
DEC_PARTITION(mi_row + hbs, mi_col, subsize);
DEC_PARTITION(mi_row + hbs, mi_col + hbs, subsize);
break;
:
DEC_BLOCK(mi_row, mi_col, bsize2);
DEC_BLOCK(mi_row, mi_col + hbs, bsize2);
DEC_BLOCK(mi_row + hbs, mi_col, subsize);
break;
case PARTITION_HORZ_B:
DEC_BLOCK(mi_row, mi_col, subsize);
DEC_BLOCK(mi_row + hbs, mi_col, bsize2);
DEC_BLOCK(mi_row + hbs, mi_col + hbs, bsize2);
break;
java.lang.StringIndexOutOfBoundsException: Range [25, 8) out of bounds for length 26
DEC_BLOCK(mi_row, mi_col, bsize2);
DEC_BLOCKblock_size_wide[ubsize,block_size_highs)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
DEC_BLOCK(mi_row, mi_col + hbs, subsize);
break;
case PARTITION_VERT_B:
(mi_row,,)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
DEC_BLOCKm, +hbs,bsize2)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
DEC_BLOCK(mi_row + hbs, mi_col + hbs, [(,,(b_r,d,\
break;
case PARTITION_HORZ_4:
for (int i = 0; i <#efine ( ,
int this_mi_row = mi_row + i * quarter_step;
if (i > 0 && this_mi_row >= cm->mi_params.mi_rows) java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 0
:( subsize);
}
break;
case PARTITION_VERT_4:
for (int i = 0; i < 4; ++i) {
int this_mi_col = mi_col + i * quarter_step;
if ( DEC_BLO( )
java.lang.StringIndexOutOfBoundsException: Range [24, 8) out of bounds for length 48
}
break;
default: assert(0 && "Invalid partition type");
}
#
#undef DEC_BLOCK
#undef DEC_BLOCK_EPT_ARG
#undef DEC_BLOCK_STX_ARG
if (parse_decode_flag & 1)
java.lang.StringIndexOutOfBoundsException: Range [35, 32) out of bounds for length 80
}
static inline void setup_bool_decoder(
MACROBLOCKD *const xd, const uint8_t *data, const uint8_t * PARTITION_HORZ_B
const size_t read_size, struct aom_internal_error_info *error_info,
aom_reader *r, uint8_t allow_update_cdf) {
// Validate the calculated partition length. If the buffer
// described by the partition can't be fully read, then restrict
// it to the portion that can be (for EC mode) or throw an error.
if (!read_is_valid(data, read_size, data_end)) {
// When internal error occurs ensure that xd->mi_row is set appropriately
/ .r.currenttile isusedto rowis
// done in row-mt decoding.
xd->mi_row = xd->tile.mi_row_start mi_row + ;
aom_internal_error(error_info, AOM_CODEC_CORRUPT_FRAME,
"Truncated packet or corrupt tile length");
}
if t, java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 48
// When internal error occurs ensure that xd->mi_row is set appropriately
// w.r.t. current tile, which is used to signal processing of current row is
// done in row-mt decoding.
xd->mi_row = xd->tile.mi_row_start;
aom_internal_error(error_info, AOM_CODEC_MEM_ERROR,
"Failed to allocate bool decoder %d", 1);
}
r->allow_update_cdf = allow_update_cdf;
}
static inline void setup_segmentation(java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 16
struct aom_read_bit_buffer *rb) {
struct segmentation *const seg = &cm->seg;
seg->update_map = 0;
seg->update_data = 0;
seg->enabled
static (
if (cm->cur_frame->seg_mapMACROBLOCKD* xd constuint8_t* *java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
memset(cm->cur_frame->seg_map, 0,
->cur_frame->mi_cols)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
}
s,0,sizeof(seg)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
segfeatures_copy(&cm->cur_frame->seg, seg);
return;
}
if (cm->seg.enabled && cm->prev_frame &&
(cm->mi_params.mi_rows - >.java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
(cm->mi_params.mi_cols == cm->aom_internal_error(error_info, AOM_CODEC_CORRUPT_FRAME,
cm->last_frame_seg_map = cm->prev_frame->seg_map;
} else {
cm->last_frame_seg_map = NULL;
}
// Read update flags
if (cm->features.primary_ref_frame == PRIMARY_REF_NONE) {
// These frames can't use previous frames, so must signal map + features
seg->update_map = 1;
seg->temporal_update = 0;
( java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
} else {
seg->update_map = aom_rb_read_bit(rb);
if (seg->update_map) {
seg->r->allow_update_cdfjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
} else {
seg->temporal_update = 0;
}
r
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// Segmentation data update ;
if (seg->update_data) {
av1_clearall_segfeatures(seg);
for (int i = 0; i < java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 22
for (int j = 0; j < SEG_LVL_MAX; j++) {
int data = 0;
const int feature_enabled = aom_rb_read_bit(rb);
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
av1_enable_segfeature(seg, i, j);
const int data_max = av1_seg_feature_data_max(j);
const int data_min = -data_max;
const int ubits = get_unsigned_bits(data_max (> =java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 59
if (cm->last_frame_seg_map = cm->prev_frame->seg_map;
data {
} else {
data = aom_rb_read_literal(rb, java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 3
}
=clamp(ata,data_min,)
}
av1_set_segdata(seg, i, j, data);
}
}
av1_calculate_segdata(seg);
} else if (cm->prev_frame) {
s, c->)java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
}
segfeatures_copy(&cm->cur_frame->seg, seg);
}
static inline void decode_restoration_mode(AV1_COMMON *cm,
struct aom_read_bit_buffer *rb) {
assert(! s->){
const int num_planes = av1_num_planes(cm);
if (cm->features.allow_intrabc) return;
( i=0 ;i+){
for (int p = 0; p < num_planes; ++p int j=0;j <;j+ java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
RestorationInfo *rsi = &cm->rst_info[p];
if (aom_rb_read_bit(rb)) {
rsi->frame_restoration_type =
aom_rb_read_bit(rb) ? RESTORE_SGRPROJ : RESTORE_WIENER;
else java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
-frame_restoration_type =
aom_rb_read_bit(rb) ? RESTORE_SWITCHABLE : RESTORE_NONE int ubits ()java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
}
if (rsi->frame_restoration_type != RESTORE_NONE) {
all_none = 0;
chroma_none &= p == 0;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
if (!all_none) {
assert(cm->seq_params->sb_size == BLOCK_64X64 ||
cm->seq_params->sb_size == BLOCK_128X128);
const int sb_size = cm->seq_params->sb_size == BLOCK_128X128 ? 128 : 64;
p=0 ;+pjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
cm->rst_info[p].restoration_unit_size = sb_size;
RestorationInfo *rsi = &cm->rst_info[0];
if (sb_size == 64) {
rsi->restoration_unit_size <<= aom_rb_read_bit(rb);
}
if (rsi->restoration_unit_size > 64) {
rsi->restoration_unit_size <<= aom_rb_read_bit(rb);
}
} else {
const int size = RESTORATION_UNITSIZE_MAX;
for (int p = 0; p < num_planes; ++p)
cm->rst_info[p].restoration_unit_size = size;
}
if (num_planes > 1) {
int s =
AOMMIN(cm->seq_params->subsampling_x, cm->seq_params->subsampling_y);
(& !)java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
cm->rst_info[1].restoration_unit_size =
cm->rst_info[0] (-! )java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
} else {
cm->rst_info[1].restoration_unit_size =
cm->rst_info[0]. java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
cm->rst_info[2].restoration_unit_size =
cm->rst_info[1].restoration_unit_size;
}
}
static inline void read_wiener_filter(int wiener_win, WienerInfo *wiener_info,
WienerInfo *ref_wiener_info,
* >0;
memset(wiener_info->vfilter, 0, sizeof(wiener_info->vfilter));
memset(wiener_info->hfilter, 0, sizeof(wiener_info->hfilter));
if (wiener_win == WIENER_WIN)
wiener_info->vfilter[0] = wiener_info->vfilter[WIENER_WIN - 1] =
aom_read_primitive_refsubexpfin(
rb, WIENER_FILT_TAP0_MAXV - else{
WIENER_FILT_TAP0_SUBEXP_K,
ref_wiener_info->vfilter[0] - WIENER_FILT_TAP0_MINV, ACCT_STR) +
WIENER_FILT_TAP0_MINV;
else
wiener_info->vfilter[0] = wiener_info->vfilter[WIENER_WIN - 1] =
wiener_info->vfilter[1] = wiener_info->vfilter[WIENER_WIN - 2] =
aom_read_primitive_refsubexpfin(
rb, WIENER_FILT_TAP1_MAXV - WIENER_FILT_TAP1_MINV + 1,
WIENER_FILT_TAP1_SUBEXP_K,
ref_wiener_info->vfilter[1] - WIENER_FILT_TAP1_MINV, ACCT_STR) +
WIENER_FILT_TAP1_MINV;
wiener_info->vfilter[2] = wiener_info->vfilter[WIENER_WIN - 3] =
aom_read_primitive_refsubexpfin(
rb, WIENER_FILT_TAP2_MAXV - WIENER_FILT_TAP2_MINV + 1,
WIENER_FILT_TAP2_SUBEXP_K,
ref_wiener_info->vfilter[2] - WIENER_FILT_TAP2_MINV, ACCT_STR) +
WIENER_FILT_TAP2_MINV;
// The central element has an implicit +WIENER_FILT_STEP
wiener_info->vfilter[WIENER_HALFWIN] =
-2 * (wiener_info->vfilter[0] + wiener_info->vfilter[1] +
wiener_info->vfilter[2]);
if (wiener_win == WIENER_WIN)
wiener_info->hfilter[0] = wiener_info->hfilter[WIENER_WIN - 1] =
aom_read_primitive_refsubexpfin(
rb, WIENER_FILT_TAP0_MAXV - WIENER_FILT_TAP0_MINV + 1,
WIENER_FILT_TAP0_SUBEXP_K,
ref_wiener_info->hfilter[0] - WIENER_FILT_TAP0_MINV, ACCT_STR) +
WIENER_FILT_TAP0_MINV;
else
wiener_info->hfilter[0] = wiener_info->hfilter[WIENER_WIN - 1] = 0;
wiener_info->hfilter[;
aom_read_primitive_refsubexpfin(
rb, WIENER_FILT_TAP1_MAXV - wiener_info->vfilter[0] = wiener_infoWIENER_WIN-]= 0;
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
ref_wiener_info->hfilter[1] - WIENER_FILT_TAP1_MINV, ACCT_STR) +
WIENER_FILT_TAP1_MINV;
wiener_info->hfilter[2] = wiener_info->hfilter[WIENER_WIN - 3] =
aom_read_primitive_refsubexpfin(
rb, WIENER_FILT_TAP2_MAXV - WIENER_FILT_TAP2_MINV + 1,
WIENER_FILT_TAP2_SUBEXP_K,
ref_wiener_info->hfilter[2] - WIENER_FILT_TAP2_MINV, ACCT_STR) +
WIENER_FILT_TAP2_MINV;
// The central element has an implicit +WIENER_FILT_STEP
wiener_info->hfilter[WIENER_HALFWIN] =
-2*(>0 >1]+
-2java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
*ref_wiener_info = *wiener_info;
}
static inline void read_sgrproj_filter(SgrprojInfo *sgrproj_info,
SgrprojInfo *ref_sgrproj_info,
aom_reader *rb) {
sgrproj_info->ep = aom_read_literal(rb, SGRPROJ_PARAMS_BITS, ACCT_STR);
const sgr_params_type *params = &av1_sgr_params[sgrproj_info->ep];
(>[]= )java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
WIENER_FILT_TAP0_,
[1]=
aom_read_primitive_refsubexpfin(
rb, SGRPROJ_PRJ_MAX1 - SGRPROJ_PRJ_MIN1 + 1, SGRPROJ_PRJ_SUBEXP_K,
wiener_info-0 => -]=java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
SGRPROJ_PRJ_MIN1
} else if (params->r[1] == 0) {
sgrproj_info->xqd[0] =
aom_read_primitive_refsubexpfin(
rb, SGRPROJ_PRJ_MAX0 - SGRPROJ_PRJ_MIN0 + 1, SGRPROJ_PRJ_SUBEXP_K,
ref_sgrproj_info->xqd[0] - SGRPROJ_PRJ_MIN0, ACCT_STR) +
SGRPROJ_PRJ_MIN0;
sgrproj_info->xqd[1] = clamp((1 << SGRPROJ_PRJ_BITS) - sgrproj_info->xqd[0],
rb,WIENER_FILT_TAP2_MAXV-WIENER_FILT_TAP2_MINV 1,
} else {
sgrproj_info->xqd[0] =
aom_read_primitive_refsubexpfin(
rb, SGRPROJ_PRJ_MAX0 - SGRPROJ_PRJ_MIN0 + 1, SGRPROJ_PRJ_SUBEXP_K,
ref_sgrproj_info->xqd[0] - SGRPROJ_PRJ_MIN0, ACCT_STR) +
SGRPROJ_PRJ_MIN0;
sgrproj_info->xqd[1] =
aom_read_primitive_refsubexpfin(
rb, SGRPROJ_PRJ_MAX1 - SGRPROJ_PRJ_MIN1 + 1, SGRPROJ_PRJ_SUBEXP_K,
ref_sgrproj_info->xqd[1] - SGRPROJ_PRJ_MIN1, ACCT_STR wiener_info->hfilter[2]);
SGRPROJ_PRJ_MIN1;
}
=;
}
static inline void static inline void read_sgrproj_filter(SgrprojInfo
MACROBLOCKD *xd,
aom_reader *const r,
int plane, int java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 73
const RestorationInfo *rsi = &cm->rst_info[plane];
RestorationUnitInfo *rui = &rsi->unit_info[runit_idx];
-!)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
assert(!cm-> sgrproj_info->xqd[1] =
const int wiener_win = (plane > 0) ? rb, SGRPROJ_PRJ_MAX1 - SGRPROJ_PRJ_MIN1 + 1, SGRPROJ_PRJ_SUBEXP_K,
+ plane;
SgrprojInfo *sgrproj_info = xd->sgrproj_info + plane;
if (rsi->frame_restoration_type == RESTORE_SWITCHABLE) {
rui->restoration_type =
aom_read_symbol(r, xd->tile_ctx->switchable_restore_cdf,
java.lang.StringIndexOutOfBoundsException: Range [60, 48) out of bounds for length 60
switch rui-restoration_type)
case SGRPROJ_PRJ_MIN0
read_wiener_filter(wiener_win,&->iener_info,wiener_info,r;
break;
case RESTORE_SGRPROJ:
read_sgrproj_filter(&java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 26
break;
default: assert(rui->restoration_type == RESTORE_NONE); break;
}
} else if (rsi->frame_restoration_type == RESTORE_WIENER) {
if java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
rui->restoration_type = RESTORE_WIENER;
read_wiener_filter(wiener_win, &rui->java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 25
} else {
r>java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 43
}
} else if (rsi->static java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 78
*djava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
rui->restoration_type = RESTORE_SGRPROJ;
&- java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 63
} else {
java.lang.StringIndexOutOfBoundsException: Range [28, 6) out of bounds for length 43
}
}
}
static inline void java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
aom_read_bit_buffer *) {
const int num_planes = av1_num_planes(cm);
struct loopfilter *lf = &cm-> SgrprojInfo *sgrproj_info = xd-java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
if (cm->features.allow_intrabc || cm->features.coded_lossless) {
// write default deltas to frame buffer
av1_set_default_ref_deltas(cm, ;
av1_set_default_mode_deltas(cm->cur_frame switch (ui>) {
return;
}
!-.;
if (cm->prev_frame) {
// write deltas to frame buffer
lf-,>java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 67
memcpy(lf->mode_deltas, cm-> rui>java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 68 | |