
Added change to enable decoder batching feature. Batching willbe enabled only when below conditions were met. [1] platform supports batching [2] decode session [3] realtime session [4] non-thumbnail session [5] non-heif session [6] 2-stage decode only(low_latency not supported). Change-Id: I54b601814c3b5fa2077dc41c5b0ac84964c2674a Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
35 righe
1.5 KiB
C
35 righe
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2020-2021,, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _MSM_VDEC_H_
|
|
#define _MSM_VDEC_H_
|
|
|
|
#include "msm_vidc_core.h"
|
|
#include "msm_vidc_inst.h"
|
|
|
|
int msm_vdec_streamoff_input(struct msm_vidc_inst *inst);
|
|
int msm_vdec_streamon_input(struct msm_vidc_inst *inst);
|
|
int msm_vdec_streamoff_output(struct msm_vidc_inst *inst);
|
|
int msm_vdec_streamon_output(struct msm_vidc_inst *inst);
|
|
int msm_vdec_qbuf(struct msm_vidc_inst *inst, struct vb2_buffer *vb2);
|
|
int msm_vdec_s_fmt(struct msm_vidc_inst *inst, struct v4l2_format *f);
|
|
int msm_vdec_g_fmt(struct msm_vidc_inst *inst, struct v4l2_format *f);
|
|
int msm_vdec_s_selection(struct msm_vidc_inst* inst, struct v4l2_selection* s);
|
|
int msm_vdec_g_selection(struct msm_vidc_inst* inst, struct v4l2_selection* s);
|
|
int msm_vdec_s_param(struct msm_vidc_inst *inst,
|
|
struct v4l2_streamparm *s_parm);
|
|
int msm_vdec_g_param(struct msm_vidc_inst *inst,
|
|
struct v4l2_streamparm *s_parm);
|
|
int msm_vdec_enum_fmt(struct msm_vidc_inst *inst, struct v4l2_fmtdesc *f);
|
|
int msm_vdec_inst_init(struct msm_vidc_inst *inst);
|
|
int msm_vdec_inst_deinit(struct msm_vidc_inst *inst);
|
|
int msm_vdec_init_input_subcr_params(struct msm_vidc_inst *inst);
|
|
int msm_vdec_input_port_settings_change(struct msm_vidc_inst *inst);
|
|
int msm_vdec_output_port_settings_change(struct msm_vidc_inst *inst);
|
|
int msm_vdec_process_cmd(struct msm_vidc_inst *inst, u32 cmd);
|
|
int msm_vidc_queue_buffer_batch(struct msm_vidc_inst *inst);
|
|
|
|
#endif // _MSM_VDEC_H_
|