Lines Matching full:pix

301 	f->fmt.pix.width = streaminfo->width;  in hva_g_fmt_stream()
302 f->fmt.pix.height = streaminfo->height; in hva_g_fmt_stream()
303 f->fmt.pix.field = V4L2_FIELD_NONE; in hva_g_fmt_stream()
304 f->fmt.pix.colorspace = ctx->colorspace; in hva_g_fmt_stream()
305 f->fmt.pix.xfer_func = ctx->xfer_func; in hva_g_fmt_stream()
306 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in hva_g_fmt_stream()
307 f->fmt.pix.quantization = ctx->quantization; in hva_g_fmt_stream()
308 f->fmt.pix.pixelformat = streaminfo->streamformat; in hva_g_fmt_stream()
309 f->fmt.pix.bytesperline = 0; in hva_g_fmt_stream()
310 f->fmt.pix.sizeimage = ctx->max_stream_size; in hva_g_fmt_stream()
320 f->fmt.pix.width = frameinfo->width; in hva_g_fmt_frame()
321 f->fmt.pix.height = frameinfo->height; in hva_g_fmt_frame()
322 f->fmt.pix.field = V4L2_FIELD_NONE; in hva_g_fmt_frame()
323 f->fmt.pix.colorspace = ctx->colorspace; in hva_g_fmt_frame()
324 f->fmt.pix.xfer_func = ctx->xfer_func; in hva_g_fmt_frame()
325 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in hva_g_fmt_frame()
326 f->fmt.pix.quantization = ctx->quantization; in hva_g_fmt_frame()
327 f->fmt.pix.pixelformat = frameinfo->pixelformat; in hva_g_fmt_frame()
328 f->fmt.pix.bytesperline = frame_stride(frameinfo->aligned_width, in hva_g_fmt_frame()
330 f->fmt.pix.sizeimage = frameinfo->size; in hva_g_fmt_frame()
340 struct v4l2_pix_format *pix = &f->fmt.pix; in hva_try_fmt_stream() local
341 u32 streamformat = pix->pixelformat; in hva_try_fmt_stream()
350 ctx->name, (char *)&pix->pixelformat); in hva_try_fmt_stream()
354 width = pix->width; in hva_try_fmt_stream()
355 height = pix->height; in hva_try_fmt_stream()
361 pix->width = ctx->frameinfo.width; in hva_try_fmt_stream()
362 pix->height = ctx->frameinfo.height; in hva_try_fmt_stream()
363 if ((pix->width != width) || (pix->height != height)) in hva_try_fmt_stream()
367 pix->width, pix->height); in hva_try_fmt_stream()
370 v4l_bound_align_image(&pix->width, in hva_try_fmt_stream()
373 &pix->height, in hva_try_fmt_stream()
378 if ((pix->width != width) || (pix->height != height)) in hva_try_fmt_stream()
382 pix->width, pix->height); in hva_try_fmt_stream()
385 stream_size = estimated_stream_size(pix->width, pix->height); in hva_try_fmt_stream()
386 if (pix->sizeimage < stream_size) in hva_try_fmt_stream()
387 pix->sizeimage = stream_size; in hva_try_fmt_stream()
389 pix->bytesperline = 0; in hva_try_fmt_stream()
390 pix->colorspace = ctx->colorspace; in hva_try_fmt_stream()
391 pix->xfer_func = ctx->xfer_func; in hva_try_fmt_stream()
392 pix->ycbcr_enc = ctx->ycbcr_enc; in hva_try_fmt_stream()
393 pix->quantization = ctx->quantization; in hva_try_fmt_stream()
394 pix->field = V4L2_FIELD_NONE; in hva_try_fmt_stream()
404 struct v4l2_pix_format *pix = &f->fmt.pix; in hva_try_fmt_frame() local
405 u32 pixelformat = pix->pixelformat; in hva_try_fmt_frame()
418 width = pix->width; in hva_try_fmt_frame()
419 height = pix->height; in hva_try_fmt_frame()
420 v4l_bound_align_image(&pix->width, in hva_try_fmt_frame()
423 &pix->height, in hva_try_fmt_frame()
428 if ((pix->width != width) || (pix->height != height)) in hva_try_fmt_frame()
431 ctx->name, width, height, pix->width, pix->height); in hva_try_fmt_frame()
433 width = ALIGN(pix->width, HVA_WIDTH_ALIGNMENT); in hva_try_fmt_frame()
434 height = ALIGN(pix->height, HVA_HEIGHT_ALIGNMENT); in hva_try_fmt_frame()
436 if (!pix->colorspace) { in hva_try_fmt_frame()
437 pix->colorspace = V4L2_COLORSPACE_REC709; in hva_try_fmt_frame()
438 pix->xfer_func = V4L2_XFER_FUNC_DEFAULT; in hva_try_fmt_frame()
439 pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in hva_try_fmt_frame()
440 pix->quantization = V4L2_QUANTIZATION_DEFAULT; in hva_try_fmt_frame()
443 pix->bytesperline = frame_stride(width, pixelformat); in hva_try_fmt_frame()
444 pix->sizeimage = frame_size(width, height, pixelformat); in hva_try_fmt_frame()
445 pix->field = V4L2_FIELD_NONE; in hva_try_fmt_frame()
460 ctx->name, (char *)&f->fmt.pix.pixelformat); in hva_s_fmt_stream()
471 ctx->max_stream_size = f->fmt.pix.sizeimage; in hva_s_fmt_stream()
472 ctx->streaminfo.width = f->fmt.pix.width; in hva_s_fmt_stream()
473 ctx->streaminfo.height = f->fmt.pix.height; in hva_s_fmt_stream()
474 ctx->streaminfo.streamformat = f->fmt.pix.pixelformat; in hva_s_fmt_stream()
484 struct v4l2_pix_format *pix = &f->fmt.pix; in hva_s_fmt_frame() local
491 ctx->name, (char *)&pix->pixelformat); in hva_s_fmt_frame()
501 ctx->colorspace = pix->colorspace; in hva_s_fmt_frame()
502 ctx->xfer_func = pix->xfer_func; in hva_s_fmt_frame()
503 ctx->ycbcr_enc = pix->ycbcr_enc; in hva_s_fmt_frame()
504 ctx->quantization = pix->quantization; in hva_s_fmt_frame()
506 ctx->frameinfo.aligned_width = ALIGN(pix->width, HVA_WIDTH_ALIGNMENT); in hva_s_fmt_frame()
507 ctx->frameinfo.aligned_height = ALIGN(pix->height, in hva_s_fmt_frame()
509 ctx->frameinfo.size = pix->sizeimage; in hva_s_fmt_frame()
510 ctx->frameinfo.pixelformat = pix->pixelformat; in hva_s_fmt_frame()
511 ctx->frameinfo.width = pix->width; in hva_s_fmt_frame()
512 ctx->frameinfo.height = pix->height; in hva_s_fmt_frame()