Lines Matching refs:run
37 __kernel_size_t buflen, struct visl_run *run)
55 vb2_buf = vb2_find_buffer(cap_q, run->fwht.params->backward_ref_ts);
58 run->fwht.params->backward_ref_ts,
67 b_ref = vb2_find_buffer(cap_q, run->mpeg2.pic->backward_ref_ts);
68 f_ref = vb2_find_buffer(cap_q, run->mpeg2.pic->forward_ref_ts);
73 run->mpeg2.pic->backward_ref_ts,
75 run->mpeg2.pic->forward_ref_ts,
85 last = vb2_find_buffer(cap_q, run->vp8.frame->last_frame_ts);
86 golden = vb2_find_buffer(cap_q, run->vp8.frame->golden_frame_ts);
87 alt = vb2_find_buffer(cap_q, run->vp8.frame->alt_frame_ts);
93 run->vp8.frame->last_frame_ts,
95 run->vp8.frame->golden_frame_ts,
97 run->vp8.frame->alt_frame_ts,
107 last = vb2_find_buffer(cap_q, run->vp9.frame->last_frame_ts);
108 golden = vb2_find_buffer(cap_q, run->vp9.frame->golden_frame_ts);
109 alt = vb2_find_buffer(cap_q, run->vp9.frame->alt_frame_ts);
115 run->vp9.frame->last_frame_ts,
117 run->vp9.frame->golden_frame_ts,
119 run->vp9.frame->alt_frame_ts,
128 for (i = 0; i < ARRAY_SIZE(run->h264.dpram->dpb); i++) {
129 vb2_buf = vb2_find_buffer(cap_q, run->h264.dpram->dpb[i].reference_ts);
131 run->h264.dpram->dpb[i].reference_ts,
144 for (i = 0; i < ARRAY_SIZE(run->hevc.dpram->dpb); i++) {
145 vb2_buf = vb2_find_buffer(cap_q, run->hevc.dpram->dpb[i].timestamp);
147 run->hevc.dpram->dpb[i].timestamp,
196 struct visl_run *run, char buf[], size_t bufsz)
208 run->dst->sequence,
209 run->dst->vb2_buf.timestamp,
210 (run->dst->field == V4L2_FIELD_ALTERNATE) ?
211 (run->dst->field == V4L2_FIELD_TOP ?
215 static void visl_tpg_fill(struct visl_ctx *ctx, struct visl_run *run)
233 &run->dst->vb2_buf, p,
241 visl_tpg_fill_sequence(ctx, run, buf, TPG_STR_BUF_SZ);
243 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf);
244 frame_dprintk(ctx->dev, run->dst->sequence, "");
247 visl_get_ref_frames(ctx, buf, TPG_STR_BUF_SZ, run);
251 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", line_str);
254 frame_dprintk(ctx->dev, run->dst->sequence, "");
269 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf);
280 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf);
284 frame_dprintk(ctx->dev, run->dst->sequence, "");
287 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf);
304 frame_dprintk(ctx->dev, run->dst->sequence, "%s", &buf[old_len]);
308 frame_dprintk(ctx->dev, run->dst->sequence, "");
322 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf);
333 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf);
337 frame_dprintk(ctx->dev, run->dst->sequence, "");
340 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf);
354 frame_dprintk(ctx->dev, run->dst->sequence, "%s", &buf[old_len]);
358 static void visl_trace_ctrls(struct visl_ctx *ctx, struct visl_run *run)
367 trace_v4l2_ctrl_fwht_params(run->fwht.params);
370 trace_v4l2_ctrl_mpeg2_sequence(run->mpeg2.seq);
371 trace_v4l2_ctrl_mpeg2_picture(run->mpeg2.pic);
372 trace_v4l2_ctrl_mpeg2_quantisation(run->mpeg2.quant);
375 trace_v4l2_ctrl_vp8_frame(run->vp8.frame);
376 trace_v4l2_ctrl_vp8_entropy(run->vp8.frame);
379 trace_v4l2_ctrl_vp9_frame(run->vp9.frame);
380 trace_v4l2_ctrl_vp9_compressed_hdr(run->vp9.probs);
381 trace_v4l2_ctrl_vp9_compressed_coeff(run->vp9.probs);
382 trace_v4l2_vp9_mv_probs(&run->vp9.probs->mv);
385 trace_v4l2_ctrl_h264_sps(run->h264.sps);
386 trace_v4l2_ctrl_h264_pps(run->h264.pps);
387 trace_v4l2_ctrl_h264_scaling_matrix(run->h264.sm);
388 trace_v4l2_ctrl_h264_slice_params(run->h264.spram);
390 for (i = 0; i < ARRAY_SIZE(run->h264.spram->ref_pic_list0); i++)
391 trace_v4l2_h264_ref_pic_list0(&run->h264.spram->ref_pic_list0[i], i);
392 for (i = 0; i < ARRAY_SIZE(run->h264.spram->ref_pic_list0); i++)
393 trace_v4l2_h264_ref_pic_list1(&run->h264.spram->ref_pic_list1[i], i);
395 trace_v4l2_ctrl_h264_decode_params(run->h264.dpram);
397 for (i = 0; i < ARRAY_SIZE(run->h264.dpram->dpb); i++)
398 trace_v4l2_h264_dpb_entry(&run->h264.dpram->dpb[i], i);
400 trace_v4l2_ctrl_h264_pred_weights(run->h264.pwht);
403 trace_v4l2_ctrl_hevc_sps(run->hevc.sps);
404 trace_v4l2_ctrl_hevc_pps(run->hevc.pps);
405 trace_v4l2_ctrl_hevc_slice_params(run->hevc.spram);
406 trace_v4l2_ctrl_hevc_scaling_matrix(run->hevc.sm);
407 trace_v4l2_ctrl_hevc_decode_params(run->hevc.dpram);
409 for (i = 0; i < ARRAY_SIZE(run->hevc.dpram->dpb); i++)
410 trace_v4l2_hevc_dpb_entry(&run->hevc.dpram->dpb[i]);
412 trace_v4l2_hevc_pred_weight_table(&run->hevc.spram->pred_weight_table);
420 struct visl_run run = {};
423 run.src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
424 run.dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
427 src_req = run.src->vb2_buf.req_obj.req;
432 v4l2_m2m_buf_copy_metadata(run.src, run.dst, true);
433 run.dst->sequence = ctx->q_data[V4L2_M2M_DST].sequence++;
434 run.src->sequence = ctx->q_data[V4L2_M2M_SRC].sequence++;
435 run.dst->field = ctx->decoded_fmt.fmt.pix.field;
442 run.fwht.params = visl_find_control_data(ctx, V4L2_CID_STATELESS_FWHT_PARAMS);
445 run.mpeg2.seq = visl_find_control_data(ctx, V4L2_CID_STATELESS_MPEG2_SEQUENCE);
446 run.mpeg2.pic = visl_find_control_data(ctx, V4L2_CID_STATELESS_MPEG2_PICTURE);
447 run.mpeg2.quant = visl_find_control_data(ctx,
451 run.vp8.frame = visl_find_control_data(ctx, V4L2_CID_STATELESS_VP8_FRAME);
454 run.vp9.frame = visl_find_control_data(ctx, V4L2_CID_STATELESS_VP9_FRAME);
455 run.vp9.probs = visl_find_control_data(ctx, V4L2_CID_STATELESS_VP9_COMPRESSED_HDR);
458 run.h264.sps = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_SPS);
459 run.h264.pps = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_PPS);
460 run.h264.sm = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_SCALING_MATRIX);
461 run.h264.spram = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_SLICE_PARAMS);
462 run.h264.dpram = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS);
463 run.h264.pwht = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_PRED_WEIGHTS);
466 run.hevc.sps = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_SPS);
467 run.hevc.pps = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_PPS);
468 run.hevc.spram = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_SLICE_PARAMS);
469 run.hevc.sm = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_SCALING_MATRIX);
470 run.hevc.dpram = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_DECODE_PARAMS);
474 frame_dprintk(ctx->dev, run.dst->sequence,
476 run.src->sequence, run.src->vb2_buf.timestamp);
478 frame_dprintk(ctx->dev, run.dst->sequence,
480 run.dst->sequence, run.dst->vb2_buf.timestamp);
482 visl_tpg_fill(ctx, &run);
483 visl_trace_ctrls(ctx, &run);
486 run.dst->sequence >= bitstream_trace_frame_start &&
487 run.dst->sequence < bitstream_trace_frame_start + bitstream_trace_nframes)
488 visl_trace_bitstream(ctx, &run);