Lines Matching full:pic
96 const struct v4l2_ctrl_mpeg2_picture *pic) in hantro_g1_mpeg2_dec_set_buffers() argument
101 switch (pic->picture_coding_type) { in hantro_g1_mpeg2_dec_set_buffers()
103 backward_addr = hantro_get_ref(ctx, pic->backward_ref_ts); in hantro_g1_mpeg2_dec_set_buffers()
106 forward_addr = hantro_get_ref(ctx, pic->forward_ref_ts); in hantro_g1_mpeg2_dec_set_buffers()
117 if (pic->picture_structure == V4L2_MPEG2_PIC_BOTTOM_FIELD) in hantro_g1_mpeg2_dec_set_buffers()
127 if (pic->picture_structure == V4L2_MPEG2_PIC_FRAME || in hantro_g1_mpeg2_dec_set_buffers()
128 pic->picture_coding_type == V4L2_MPEG2_PIC_CODING_TYPE_B || in hantro_g1_mpeg2_dec_set_buffers()
129 (pic->picture_structure == V4L2_MPEG2_PIC_TOP_FIELD && in hantro_g1_mpeg2_dec_set_buffers()
130 pic->flags & V4L2_MPEG2_PIC_FLAG_TOP_FIELD_FIRST) || in hantro_g1_mpeg2_dec_set_buffers()
131 (pic->picture_structure == V4L2_MPEG2_PIC_BOTTOM_FIELD && in hantro_g1_mpeg2_dec_set_buffers()
132 !(pic->flags & V4L2_MPEG2_PIC_FLAG_TOP_FIELD_FIRST))) { in hantro_g1_mpeg2_dec_set_buffers()
135 } else if (pic->picture_structure == V4L2_MPEG2_PIC_TOP_FIELD) { in hantro_g1_mpeg2_dec_set_buffers()
138 } else if (pic->picture_structure == V4L2_MPEG2_PIC_BOTTOM_FIELD) { in hantro_g1_mpeg2_dec_set_buffers()
153 const struct v4l2_ctrl_mpeg2_picture *pic; in hantro_g1_mpeg2_dec_run() local
164 pic = hantro_get_ctrl(ctx, in hantro_g1_mpeg2_dec_run()
186 G1_REG_PIC_FIELDMODE_E(pic->picture_structure != V4L2_MPEG2_PIC_FRAME) | in hantro_g1_mpeg2_dec_run()
187 G1_REG_PIC_B_E(pic->picture_coding_type == V4L2_MPEG2_PIC_CODING_TYPE_B) | in hantro_g1_mpeg2_dec_run()
188 G1_REG_PIC_INTER_E(pic->picture_coding_type != V4L2_MPEG2_PIC_CODING_TYPE_I) | in hantro_g1_mpeg2_dec_run()
189 G1_REG_PIC_TOPFIELD_E(pic->picture_structure == V4L2_MPEG2_PIC_TOP_FIELD) | in hantro_g1_mpeg2_dec_run()
198 G1_REG_ALT_SCAN_E(pic->flags & V4L2_MPEG2_PIC_FLAG_ALT_SCAN) | in hantro_g1_mpeg2_dec_run()
199 G1_REG_TOPFIELDFIRST_E(pic->flags & V4L2_MPEG2_PIC_FLAG_TOP_FIELD_FIRST); in hantro_g1_mpeg2_dec_run()
203 G1_REG_QSCALE_TYPE(pic->flags & V4L2_MPEG2_PIC_FLAG_Q_SCALE_TYPE) | in hantro_g1_mpeg2_dec_run()
204 G1_REG_CON_MV_E(pic->flags & V4L2_MPEG2_PIC_FLAG_CONCEALMENT_MV) | in hantro_g1_mpeg2_dec_run()
205 G1_REG_INTRA_DC_PREC(pic->intra_dc_precision) | in hantro_g1_mpeg2_dec_run()
206 G1_REG_INTRA_VLC_TAB(pic->flags & V4L2_MPEG2_PIC_FLAG_INTRA_VLC) | in hantro_g1_mpeg2_dec_run()
207 G1_REG_FRAME_PRED_DCT(pic->flags & V4L2_MPEG2_PIC_FLAG_FRAME_PRED_DCT); in hantro_g1_mpeg2_dec_run()
214 reg = G1_REG_ALT_SCAN_FLAG_E(pic->flags & V4L2_MPEG2_PIC_FLAG_ALT_SCAN) | in hantro_g1_mpeg2_dec_run()
215 G1_REG_FCODE_FWD_HOR(pic->f_code[0][0]) | in hantro_g1_mpeg2_dec_run()
216 G1_REG_FCODE_FWD_VER(pic->f_code[0][1]) | in hantro_g1_mpeg2_dec_run()
217 G1_REG_FCODE_BWD_HOR(pic->f_code[1][0]) | in hantro_g1_mpeg2_dec_run()
218 G1_REG_FCODE_BWD_VER(pic->f_code[1][1]) | in hantro_g1_mpeg2_dec_run()
233 seq, pic); in hantro_g1_mpeg2_dec_run()