Lines Matching full:run

46 				__kernel_size_t buflen, struct visl_run *run)  in visl_get_ref_frames()  argument
64 vb2_buf = vb2_find_buffer(cap_q, run->fwht.params->backward_ref_ts); in visl_get_ref_frames()
67 run->fwht.params->backward_ref_ts, in visl_get_ref_frames()
76 b_ref = vb2_find_buffer(cap_q, run->mpeg2.pic->backward_ref_ts); in visl_get_ref_frames()
77 f_ref = vb2_find_buffer(cap_q, run->mpeg2.pic->forward_ref_ts); in visl_get_ref_frames()
82 run->mpeg2.pic->backward_ref_ts, in visl_get_ref_frames()
84 run->mpeg2.pic->forward_ref_ts, in visl_get_ref_frames()
94 last = vb2_find_buffer(cap_q, run->vp8.frame->last_frame_ts); in visl_get_ref_frames()
95 golden = vb2_find_buffer(cap_q, run->vp8.frame->golden_frame_ts); in visl_get_ref_frames()
96 alt = vb2_find_buffer(cap_q, run->vp8.frame->alt_frame_ts); in visl_get_ref_frames()
102 run->vp8.frame->last_frame_ts, in visl_get_ref_frames()
104 run->vp8.frame->golden_frame_ts, in visl_get_ref_frames()
106 run->vp8.frame->alt_frame_ts, in visl_get_ref_frames()
116 last = vb2_find_buffer(cap_q, run->vp9.frame->last_frame_ts); in visl_get_ref_frames()
117 golden = vb2_find_buffer(cap_q, run->vp9.frame->golden_frame_ts); in visl_get_ref_frames()
118 alt = vb2_find_buffer(cap_q, run->vp9.frame->alt_frame_ts); in visl_get_ref_frames()
124 run->vp9.frame->last_frame_ts, in visl_get_ref_frames()
126 run->vp9.frame->golden_frame_ts, in visl_get_ref_frames()
128 run->vp9.frame->alt_frame_ts, in visl_get_ref_frames()
137 for (i = 0; i < ARRAY_SIZE(run->h264.dpram->dpb); i++) { in visl_get_ref_frames()
138 vb2_buf = vb2_find_buffer(cap_q, run->h264.dpram->dpb[i].reference_ts); in visl_get_ref_frames()
140 run->h264.dpram->dpb[i].reference_ts, in visl_get_ref_frames()
153 for (i = 0; i < ARRAY_SIZE(run->hevc.dpram->dpb); i++) { in visl_get_ref_frames()
154 vb2_buf = vb2_find_buffer(cap_q, run->hevc.dpram->dpb[i].timestamp); in visl_get_ref_frames()
156 run->hevc.dpram->dpb[i].timestamp, in visl_get_ref_frames()
166 int idx_last = run->av1.frame->ref_frame_idx[LAST_BUF_IDX]; in visl_get_ref_frames()
167 int idx_last2 = run->av1.frame->ref_frame_idx[LAST2_BUF_IDX]; in visl_get_ref_frames()
168 int idx_last3 = run->av1.frame->ref_frame_idx[LAST3_BUF_IDX]; in visl_get_ref_frames()
169 int idx_golden = run->av1.frame->ref_frame_idx[GOLDEN_BUF_IDX]; in visl_get_ref_frames()
170 int idx_bwd = run->av1.frame->ref_frame_idx[BWD_BUF_IDX]; in visl_get_ref_frames()
171 int idx_alt2 = run->av1.frame->ref_frame_idx[ALT2_BUF_IDX]; in visl_get_ref_frames()
172 int idx_alt = run->av1.frame->ref_frame_idx[ALT_BUF_IDX]; in visl_get_ref_frames()
175 vb2_find_buffer(cap_q, run->av1.frame->reference_frame_ts[idx_last]); in visl_get_ref_frames()
177 vb2_find_buffer(cap_q, run->av1.frame->reference_frame_ts[idx_last2]); in visl_get_ref_frames()
179 vb2_find_buffer(cap_q, run->av1.frame->reference_frame_ts[idx_last3]); in visl_get_ref_frames()
181 vb2_find_buffer(cap_q, run->av1.frame->reference_frame_ts[idx_golden]); in visl_get_ref_frames()
183 vb2_find_buffer(cap_q, run->av1.frame->reference_frame_ts[idx_bwd]); in visl_get_ref_frames()
185 vb2_find_buffer(cap_q, run->av1.frame->reference_frame_ts[idx_alt2]); in visl_get_ref_frames()
187 vb2_find_buffer(cap_q, run->av1.frame->reference_frame_ts[idx_alt]); in visl_get_ref_frames()
197 run->av1.frame->reference_frame_ts[idx_last], in visl_get_ref_frames()
199 run->av1.frame->reference_frame_ts[idx_last2], in visl_get_ref_frames()
201 run->av1.frame->reference_frame_ts[idx_last3], in visl_get_ref_frames()
203 run->av1.frame->reference_frame_ts[idx_golden], in visl_get_ref_frames()
205 run->av1.frame->reference_frame_ts[idx_bwd], in visl_get_ref_frames()
207 run->av1.frame->reference_frame_ts[idx_alt2], in visl_get_ref_frames()
209 run->av1.frame->reference_frame_ts[idx_alt], in visl_get_ref_frames()
254 struct visl_run *run, char buf[], size_t bufsz) in visl_tpg_fill_sequence() argument
266 run->dst->sequence, in visl_tpg_fill_sequence()
267 run->dst->vb2_buf.timestamp, in visl_tpg_fill_sequence()
268 (run->dst->field == V4L2_FIELD_ALTERNATE) ? in visl_tpg_fill_sequence()
269 (run->dst->field == V4L2_FIELD_TOP ? in visl_tpg_fill_sequence()
273 static void visl_tpg_fill(struct visl_ctx *ctx, struct visl_run *run) in visl_tpg_fill() argument
291 &run->dst->vb2_buf, p, in visl_tpg_fill()
299 visl_tpg_fill_sequence(ctx, run, buf, TPG_STR_BUF_SZ); in visl_tpg_fill()
301 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf); in visl_tpg_fill()
302 frame_dprintk(ctx->dev, run->dst->sequence, ""); in visl_tpg_fill()
305 visl_get_ref_frames(ctx, buf, TPG_STR_BUF_SZ, run); in visl_tpg_fill()
309 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", line_str); in visl_tpg_fill()
312 frame_dprintk(ctx->dev, run->dst->sequence, ""); in visl_tpg_fill()
327 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf); in visl_tpg_fill()
338 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf); in visl_tpg_fill()
342 frame_dprintk(ctx->dev, run->dst->sequence, ""); in visl_tpg_fill()
345 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf); in visl_tpg_fill()
369 frame_dprintk(ctx->dev, run->dst->sequence, "%s", &buf[old_len]); in visl_tpg_fill()
373 frame_dprintk(ctx->dev, run->dst->sequence, ""); in visl_tpg_fill()
387 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf); in visl_tpg_fill()
398 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf); in visl_tpg_fill()
402 frame_dprintk(ctx->dev, run->dst->sequence, ""); in visl_tpg_fill()
405 frame_dprintk(ctx->dev, run->dst->sequence, "%s\n", buf); in visl_tpg_fill()
426 frame_dprintk(ctx->dev, run->dst->sequence, "%s", &buf[old_len]); in visl_tpg_fill()
430 static void visl_trace_ctrls(struct visl_ctx *ctx, struct visl_run *run) in visl_trace_ctrls() argument
439 trace_v4l2_ctrl_fwht_params(run->fwht.params); in visl_trace_ctrls()
442 trace_v4l2_ctrl_mpeg2_sequence(run->mpeg2.seq); in visl_trace_ctrls()
443 trace_v4l2_ctrl_mpeg2_picture(run->mpeg2.pic); in visl_trace_ctrls()
444 trace_v4l2_ctrl_mpeg2_quantisation(run->mpeg2.quant); in visl_trace_ctrls()
447 trace_v4l2_ctrl_vp8_frame(run->vp8.frame); in visl_trace_ctrls()
448 trace_v4l2_ctrl_vp8_entropy(run->vp8.frame); in visl_trace_ctrls()
451 trace_v4l2_ctrl_vp9_frame(run->vp9.frame); in visl_trace_ctrls()
452 trace_v4l2_ctrl_vp9_compressed_hdr(run->vp9.probs); in visl_trace_ctrls()
453 trace_v4l2_ctrl_vp9_compressed_coeff(run->vp9.probs); in visl_trace_ctrls()
454 trace_v4l2_vp9_mv_probs(&run->vp9.probs->mv); in visl_trace_ctrls()
457 trace_v4l2_ctrl_h264_sps(run->h264.sps); in visl_trace_ctrls()
458 trace_v4l2_ctrl_h264_pps(run->h264.pps); in visl_trace_ctrls()
459 trace_v4l2_ctrl_h264_scaling_matrix(run->h264.sm); in visl_trace_ctrls()
460 trace_v4l2_ctrl_h264_slice_params(run->h264.spram); in visl_trace_ctrls()
462 for (i = 0; i < ARRAY_SIZE(run->h264.spram->ref_pic_list0); i++) in visl_trace_ctrls()
463 trace_v4l2_h264_ref_pic_list0(&run->h264.spram->ref_pic_list0[i], i); in visl_trace_ctrls()
464 for (i = 0; i < ARRAY_SIZE(run->h264.spram->ref_pic_list0); i++) in visl_trace_ctrls()
465 trace_v4l2_h264_ref_pic_list1(&run->h264.spram->ref_pic_list1[i], i); in visl_trace_ctrls()
467 trace_v4l2_ctrl_h264_decode_params(run->h264.dpram); in visl_trace_ctrls()
469 for (i = 0; i < ARRAY_SIZE(run->h264.dpram->dpb); i++) in visl_trace_ctrls()
470 trace_v4l2_h264_dpb_entry(&run->h264.dpram->dpb[i], i); in visl_trace_ctrls()
472 trace_v4l2_ctrl_h264_pred_weights(run->h264.pwht); in visl_trace_ctrls()
475 trace_v4l2_ctrl_hevc_sps(run->hevc.sps); in visl_trace_ctrls()
476 trace_v4l2_ctrl_hevc_pps(run->hevc.pps); in visl_trace_ctrls()
477 trace_v4l2_ctrl_hevc_slice_params(run->hevc.spram); in visl_trace_ctrls()
478 trace_v4l2_ctrl_hevc_scaling_matrix(run->hevc.sm); in visl_trace_ctrls()
479 trace_v4l2_ctrl_hevc_decode_params(run->hevc.dpram); in visl_trace_ctrls()
481 for (i = 0; i < ARRAY_SIZE(run->hevc.dpram->dpb); i++) in visl_trace_ctrls()
482 trace_v4l2_hevc_dpb_entry(&run->hevc.dpram->dpb[i]); in visl_trace_ctrls()
484 trace_v4l2_hevc_pred_weight_table(&run->hevc.spram->pred_weight_table); in visl_trace_ctrls()
487 trace_v4l2_ctrl_av1_sequence(run->av1.seq); in visl_trace_ctrls()
488 trace_v4l2_ctrl_av1_frame(run->av1.frame); in visl_trace_ctrls()
489 trace_v4l2_ctrl_av1_film_grain(run->av1.grain); in visl_trace_ctrls()
490 trace_v4l2_ctrl_av1_tile_group_entry(run->av1.tge); in visl_trace_ctrls()
498 struct visl_run run = {}; in visl_device_run() local
501 run.src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in visl_device_run()
502 run.dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in visl_device_run()
505 src_req = run.src->vb2_buf.req_obj.req; in visl_device_run()
510 v4l2_m2m_buf_copy_metadata(run.src, run.dst, true); in visl_device_run()
511 run.dst->sequence = ctx->q_data[V4L2_M2M_DST].sequence++; in visl_device_run()
512 run.src->sequence = ctx->q_data[V4L2_M2M_SRC].sequence++; in visl_device_run()
513 run.dst->field = ctx->decoded_fmt.fmt.pix.field; in visl_device_run()
520 run.fwht.params = visl_find_control_data(ctx, V4L2_CID_STATELESS_FWHT_PARAMS); in visl_device_run()
523 run.mpeg2.seq = visl_find_control_data(ctx, V4L2_CID_STATELESS_MPEG2_SEQUENCE); in visl_device_run()
524 run.mpeg2.pic = visl_find_control_data(ctx, V4L2_CID_STATELESS_MPEG2_PICTURE); in visl_device_run()
525 run.mpeg2.quant = visl_find_control_data(ctx, in visl_device_run()
529 run.vp8.frame = visl_find_control_data(ctx, V4L2_CID_STATELESS_VP8_FRAME); in visl_device_run()
532 run.vp9.frame = visl_find_control_data(ctx, V4L2_CID_STATELESS_VP9_FRAME); in visl_device_run()
533 run.vp9.probs = visl_find_control_data(ctx, V4L2_CID_STATELESS_VP9_COMPRESSED_HDR); in visl_device_run()
536 run.h264.sps = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_SPS); in visl_device_run()
537 run.h264.pps = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_PPS); in visl_device_run()
538 run.h264.sm = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_SCALING_MATRIX); in visl_device_run()
539 run.h264.spram = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_SLICE_PARAMS); in visl_device_run()
540 run.h264.dpram = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_DECODE_PARAMS); in visl_device_run()
541 run.h264.pwht = visl_find_control_data(ctx, V4L2_CID_STATELESS_H264_PRED_WEIGHTS); in visl_device_run()
544 run.hevc.sps = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_SPS); in visl_device_run()
545 run.hevc.pps = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_PPS); in visl_device_run()
546 run.hevc.spram = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_SLICE_PARAMS); in visl_device_run()
547 run.hevc.sm = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_SCALING_MATRIX); in visl_device_run()
548 run.hevc.dpram = visl_find_control_data(ctx, V4L2_CID_STATELESS_HEVC_DECODE_PARAMS); in visl_device_run()
551 run.av1.seq = visl_find_control_data(ctx, V4L2_CID_STATELESS_AV1_SEQUENCE); in visl_device_run()
552 run.av1.frame = visl_find_control_data(ctx, V4L2_CID_STATELESS_AV1_FRAME); in visl_device_run()
553 run.av1.tge = visl_find_control_data(ctx, V4L2_CID_STATELESS_AV1_TILE_GROUP_ENTRY); in visl_device_run()
554 run.av1.grain = visl_find_control_data(ctx, V4L2_CID_STATELESS_AV1_FILM_GRAIN); in visl_device_run()
558 frame_dprintk(ctx->dev, run.dst->sequence, in visl_device_run()
560 run.src->sequence, run.src->vb2_buf.timestamp); in visl_device_run()
562 frame_dprintk(ctx->dev, run.dst->sequence, in visl_device_run()
564 run.dst->sequence, run.dst->vb2_buf.timestamp); in visl_device_run()
566 visl_tpg_fill(ctx, &run); in visl_device_run()
567 visl_trace_ctrls(ctx, &run); in visl_device_run()
570 run.dst->sequence >= bitstream_trace_frame_start && in visl_device_run()
571 run.dst->sequence < bitstream_trace_frame_start + bitstream_trace_nframes) in visl_device_run()
572 visl_trace_bitstream(ctx, &run); in visl_device_run()