video: driver: add fence support

Add fence support for decoder output buffers for
the consumer to use it to improve latency.

Change-Id: I7384b4a9793248988a2d2d546a535f26636d5bb3
Signed-off-by: Maheshwar Ajja <quic_majja@quicinc.com>
This commit is contained in:
Maheshwar Ajja
2022-01-19 20:54:17 -08:00
committed by Gerrit - the friendly Code Review server
부모 4b2e594b7b
커밋 ef829ce44f
8개의 변경된 파일233개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@@ -0,0 +1,21 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef __H_MSM_VIDC_FENCE_H__
#define __H_MSM_VIDC_FENCE_H__
#include "msm_vidc_inst.h"
#include "msm_vidc_buffer.h"
int msm_vidc_fence_create(struct msm_vidc_inst *inst,
struct msm_vidc_buffer *buf);
int msm_vidc_fence_signal(struct msm_vidc_inst *inst,
struct msm_vidc_buffer *buf);
void msm_vidc_fence_destroy(struct msm_vidc_inst *inst,
struct msm_vidc_buffer *buf);
int msm_vidc_fence_init(struct msm_vidc_inst *inst);
void msm_vidc_fence_deinit(struct msm_vidc_inst *inst);
#endif // __H_MSM_VIDC_FENCE_H__