Lines Matching defs:ref
359 int cur_frame_hint, latest_order_hint, earliest_order_hint, ref;
375 cbs_av1_get_relative_dist(seq, priv->ref[i].order_hint,
381 ref = -1;
385 (ref < 0 || hint >= latest_order_hint)) {
386 ref = i;
390 if (ref >= 0) {
391 ref_frame_idx[AV1_REF_FRAME_ALTREF - AV1_REF_FRAME_LAST] = ref;
392 used_frame[ref] = 1;
395 ref = -1;
399 (ref < 0 || hint < earliest_order_hint)) {
400 ref = i;
404 if (ref >= 0) {
405 ref_frame_idx[AV1_REF_FRAME_BWDREF - AV1_REF_FRAME_LAST] = ref;
406 used_frame[ref] = 1;
409 ref = -1;
413 (ref < 0 || hint < earliest_order_hint)) {
414 ref = i;
418 if (ref >= 0) {
419 ref_frame_idx[AV1_REF_FRAME_ALTREF2 - AV1_REF_FRAME_LAST] = ref;
420 used_frame[ref] = 1;
426 ref = -1;
430 (ref < 0 || hint >= latest_order_hint)) {
431 ref = j;
435 if (ref >= 0) {
436 ref_frame_idx[ref_frame - AV1_REF_FRAME_LAST] = ref;
437 used_frame[ref] = 1;
442 ref = -1;
445 if (ref < 0 || hint < earliest_order_hint) {
446 ref = i;
452 ref_frame_idx[i] = ref;
539 AV1ReferenceFrameState *ref =
540 &priv->ref[current->ref_frame_idx[i]];
542 if (!ref->valid) {
545 "(ref = %d, ref_frame_idx = %d).\n",
550 infer(frame_width_minus_1, ref->upscaled_width - 1);
551 infer(frame_height_minus_1, ref->frame_height - 1);
552 infer(render_width_minus_1, ref->render_width - 1);
553 infer(render_height_minus_1, ref->render_height - 1);
555 priv->upscaled_width = ref->upscaled_width;
557 priv->frame_height = ref->frame_height;
558 priv->render_width = ref->render_width;
559 priv->render_height = ref->render_height;
778 priv->ref[current->ref_frame_idx[current->primary_ref_frame]].feature_enabled[i];
780 priv->ref[current->ref_frame_idx[current->primary_ref_frame]].feature_value[i];
902 priv->ref[current->ref_frame_idx[current->primary_ref_frame]].loop_filter_ref_deltas;
904 priv->ref[current->ref_frame_idx[current->primary_ref_frame]].loop_filter_mode_deltas;
1062 ref_hint = priv->ref[current->ref_frame_idx[i]].order_hint;
1093 ref_hint = priv->ref[current->ref_frame_idx[i]].order_hint;
1124 int type, int ref, int idx)
1143 subexp(gm_params[ref][idx], num_syms, 2, ref, idx);
1154 int ref, type;
1161 for (ref = AV1_REF_FRAME_LAST; ref <= AV1_REF_FRAME_ALTREF; ref++) {
1162 flags(is_global[ref], 1, ref);
1163 if (current->is_global[ref]) {
1164 flags(is_rot_zoom[ref], 1, ref);
1165 if (current->is_rot_zoom[ref]) {
1168 flags(is_translation[ref], 1, ref);
1169 type = current->is_translation[ref] ? AV1_WARP_MODEL_TRANSLATION
1177 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 2));
1178 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 3));
1180 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 4));
1181 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 5));
1183 // gm_params[ref][4] = -gm_params[ref][3]
1184 // gm_params[ref][5] = gm_params[ref][2]
1188 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 0));
1189 CHECK(FUNC(global_motion_param)(ctx, rw, current, type, ref, 1));
1333 AV1ReferenceFrameState *ref;
1336 ref = &priv->ref[current->frame_to_show_map_idx];
1338 if (!ref->valid) {
1354 infer(frame_type, ref->frame_type);
1359 infer(current_frame_id, ref->frame_id);
1360 priv->upscaled_width = ref->upscaled_width;
1361 priv->frame_width = ref->frame_width;
1362 priv->frame_height = ref->frame_height;
1363 priv->render_width = ref->render_width;
1364 priv->render_height = ref->render_height;
1365 priv->bit_depth = ref->bit_depth;
1366 priv->order_hint = ref->order_hint;
1370 infer(frame_width_minus_1, ref->upscaled_width - 1);
1371 infer(frame_height_minus_1, ref->frame_height - 1);
1372 infer(render_width_minus_1, ref->render_width - 1);
1373 infer(render_height_minus_1, ref->render_height - 1);
1404 priv->ref[i].valid = 0;
1405 priv->ref[i].order_hint = 0;
1433 if (priv->ref[i].frame_id > current->current_frame_id ||
1434 priv->ref[i].frame_id < (current->current_frame_id -
1436 priv->ref[i].valid = 0;
1438 if (priv->ref[i].frame_id > current->current_frame_id &&
1439 priv->ref[i].frame_id < ((1 << id_len) +
1442 priv->ref[i].valid = 0;
1499 infer(ref_order_hint[i], priv->ref[i].order_hint);
1500 if (current->ref_order_hint[i] != priv->ref[i].order_hint)
1501 priv->ref[i].valid = 0;
1653 priv->ref[i] = (AV1ReferenceFrameState) {
1667 memcpy(priv->ref[i].loop_filter_ref_deltas, current->loop_filter_ref_deltas,
1669 memcpy(priv->ref[i].loop_filter_mode_deltas, current->loop_filter_mode_deltas,
1671 memcpy(priv->ref[i].feature_enabled, current->feature_enabled,
1673 memcpy(priv->ref[i].feature_value, current->feature_value,