1: int32_t AG903_PgpMgrGetLabelingStatus(
AG903_PgpMgrPipelineHandle *handle, uint32_t *id, _Bool *is_vram_out, _Bool *is_act, uint32_t *queue_cnt, uint32_t *exec_cmd)
2: {
3:
4:
if ((handle == NULL) || (handle->id !=
AG903_PGP_MGR_PIPELINE_HANDLE_ID)) {
5:
return -
AG903_EINVAL;
6: }
7:
8:
9:
if (handle->is_assign ==
false) {
10:
return -
AG903_EINVAL;
11: }
12:
13:
14:
PGPPrmParamPGPnLBLSTAT lblstat;
15:
AG903_PgpPrmGetPGPnLBLSTAT(handle->pipeline_no, &lblstat);
16:
17:
18:
if ((PgpContext.exec_pipeline[handle->pipeline_no] != handle) && (lblstat.cmd !=
AG903_PGP_MGR_LBL_CMD_NONE)) {
19:
return -
AG903_EINVAL;
20: }
21:
if (id != NULL) {
22: *id = lblstat.l_id;
23: }
24:
if (is_vram_out != NULL) {
25: *is_vram_out = lblstat.vrmacc;
26: }
27:
if (is_act != NULL) {
28: *is_act = lblstat.act;
29: }
30:
if (queue_cnt != NULL) {
31: *queue_cnt = lblstat.queue;
32: }
33:
if (exec_cmd != NULL) {
34: *exec_cmd = lblstat.cmd;
35: }
36:
return AG903_ENONE;
37: }