Home
last modified time | relevance | path

Searched refs:jpeg_ctx (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/staging/media/hantro/
Drockchip_vpu2_hw_jpeg_enc.c136 struct hantro_jpeg_ctx jpeg_ctx; in rockchip_vpu2_jpeg_enc_run() local
144 memset(&jpeg_ctx, 0, sizeof(jpeg_ctx)); in rockchip_vpu2_jpeg_enc_run()
145 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in rockchip_vpu2_jpeg_enc_run()
146 if (!jpeg_ctx.buffer) in rockchip_vpu2_jpeg_enc_run()
149 jpeg_ctx.width = ctx->dst_fmt.width; in rockchip_vpu2_jpeg_enc_run()
150 jpeg_ctx.height = ctx->dst_fmt.height; in rockchip_vpu2_jpeg_enc_run()
151 jpeg_ctx.quality = ctx->jpeg_quality; in rockchip_vpu2_jpeg_enc_run()
152 hantro_jpeg_header_assemble(&jpeg_ctx); in rockchip_vpu2_jpeg_enc_run()
161 rockchip_vpu2_jpeg_enc_set_qtable(vpu, jpeg_ctx.hw_luma_qtable, in rockchip_vpu2_jpeg_enc_run()
162 jpeg_ctx.hw_chroma_qtable); in rockchip_vpu2_jpeg_enc_run()
Dhantro_h1_jpeg_enc.c110 struct hantro_jpeg_ctx jpeg_ctx; in hantro_h1_jpeg_enc_run() local
118 memset(&jpeg_ctx, 0, sizeof(jpeg_ctx)); in hantro_h1_jpeg_enc_run()
119 jpeg_ctx.buffer = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in hantro_h1_jpeg_enc_run()
120 jpeg_ctx.width = ctx->dst_fmt.width; in hantro_h1_jpeg_enc_run()
121 jpeg_ctx.height = ctx->dst_fmt.height; in hantro_h1_jpeg_enc_run()
122 jpeg_ctx.quality = ctx->jpeg_quality; in hantro_h1_jpeg_enc_run()
123 hantro_jpeg_header_assemble(&jpeg_ctx); in hantro_h1_jpeg_enc_run()
132 hantro_h1_jpeg_enc_set_qtable(vpu, jpeg_ctx.hw_luma_qtable, in hantro_h1_jpeg_enc_run()
133 jpeg_ctx.hw_chroma_qtable); in hantro_h1_jpeg_enc_run()