AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_PgpMgrGetHistogramStatus(AG903_PgpMgrPipelineHandle *handle, _Bool *is_init, _Bool *is_vram_out, _Bool *is_act, uint32_t *queue_cnt, uint32_t *exec_cmd) 2: { 3: PGPPrmParamPGPnHGMSTAT hgmstat; 4: 5: 6: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 7: return -AG903_EINVAL; 8: } 9: 10: 11: if (handle->is_assign == false) { 12: return -AG903_EINVAL; 13: } 14: 15: AG903_PgpPrmGetPGPnHGMSTAT(handle->pipeline_no, &hgmstat); 16: 17: 18: if ((PgpContext.exec_pipeline[handle->pipeline_no] != handle) && (hgmstat.cmd != AG903_PGP_MGR_HGM_CMD_NONE)) { 19: return -AG903_EINVAL; 20: } 21: if (is_init != NULL) { 22: *is_init = hgmstat.init; 23: } 24: if (is_vram_out != NULL) { 25: *is_vram_out = hgmstat.vrmacc; 26: } 27: if (is_act != NULL) { 28: *is_act = hgmstat.act; 29: } 30: if (queue_cnt != NULL) { 31: *queue_cnt = hgmstat.queue; 32: } 33: if (exec_cmd != NULL) { 34: *exec_cmd = hgmstat.cmd; 35: } 36: return AG903_ENONE; 37: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.