Lines Matching refs:cap_format
261 f->pixelformat = inst->cap_format.pixfmt; in vdec_enum_fmt()
262 f->flags = inst->cap_format.flags; in vdec_enum_fmt()
429 fc.type = inst->cap_format.type; in vdec_s_fmt()
430 fc.fmt.pix_mp.pixelformat = inst->cap_format.pixfmt; in vdec_s_fmt()
462 s->r.width = inst->cap_format.width; in vdec_g_selection()
463 s->r.height = inst->cap_format.height; in vdec_g_selection()
710 vb2_set_plane_payload(&vbuf->vb2_buf, 0, inst->cap_format.sizeimage[0]); in vdec_buf_done()
711 vb2_set_plane_payload(&vbuf->vb2_buf, 1, inst->cap_format.sizeimage[1]); in vdec_buf_done()
712 vbuf->field = inst->cap_format.field; in vdec_buf_done()
758 fmt = vpu_helper_find_format(inst, inst->cap_format.type, vdec->codec_info.pixfmt); in vdec_check_source_change()
759 if (inst->cap_format.pixfmt != vdec->codec_info.pixfmt) in vdec_check_source_change()
761 if (inst->cap_format.width != vdec->codec_info.decoded_width) in vdec_check_source_change()
763 if (inst->cap_format.height != vdec->codec_info.decoded_height) in vdec_check_source_change()
765 if (vpu_get_num_buffers(inst, inst->cap_format.type) < inst->min_buffer_cap) in vdec_check_source_change()
775 if (fmt && inst->cap_format.num_planes != fmt->num_planes) in vdec_check_source_change()
777 for (i = 0; i < inst->cap_format.num_planes; i++) { in vdec_check_source_change()
778 if (inst->cap_format.bytesperline[i] != vdec->codec_info.bytesperline[i]) in vdec_check_source_change()
780 if (inst->cap_format.sizeimage[i] != vdec->codec_info.sizeimage[i]) in vdec_check_source_change()
793 fmt = vpu_helper_find_format(inst, inst->cap_format.type, vdec->codec_info.pixfmt); in vdec_init_fmt()
796 inst->cap_format.width = vdec->codec_info.decoded_width; in vdec_init_fmt()
797 inst->cap_format.height = vdec->codec_info.decoded_height; in vdec_init_fmt()
798 inst->cap_format.pixfmt = vdec->codec_info.pixfmt; in vdec_init_fmt()
800 inst->cap_format.num_planes = fmt->num_planes; in vdec_init_fmt()
801 inst->cap_format.flags = fmt->flags; in vdec_init_fmt()
803 for (i = 0; i < inst->cap_format.num_planes; i++) { in vdec_init_fmt()
804 inst->cap_format.bytesperline[i] = vdec->codec_info.bytesperline[i]; in vdec_init_fmt()
805 inst->cap_format.sizeimage[i] = vdec->codec_info.sizeimage[i]; in vdec_init_fmt()
808 inst->cap_format.field = V4L2_FIELD_NONE; in vdec_init_fmt()
810 inst->cap_format.field = V4L2_FIELD_SEQ_TB; in vdec_init_fmt()
968 info.luma_size = inst->cap_format.sizeimage[0]; in vdec_response_frame()
970 info.chromau_size = inst->cap_format.sizeimage[1]; in vdec_response_frame()
971 info.bytesperline = inst->cap_format.bytesperline[0]; in vdec_response_frame()
1168 if (fs->id >= vpu_get_num_buffers(inst, inst->cap_format.type)) { in vdec_evnet_rel_fs()