AG903ライブラリリファレンス
内容インデックスホーム
前へ上へ次へ
AG903_PgpMgrGetHistogramStatus 関数

ヒストグラム計測時のステータス取得

Syntax
C++
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);
引数 
説明 
AG903_PgpMgrPipelineHandle * handle 
[in] パイプラインハンドルを指定します。 
_Bool * is_init 
[out] ヒストグラム回路が初期化中であることを示すフラグを格納するポインタを指定します。 
_Bool * is_vram_out 
[out] VRAM出力中であることを示すフラグを格納するポインタを指定します。 
_Bool * is_act 
[out] ヒストグラム回路が初期化中であることを示すフラグを格納するポインタを指定します。 
uint32_t * queue_cnt 
[out] ヒストグラムカウント処理が実行中であること示すフラグを格納するポインタを指定します。 
uint32_t * exec_cmd 
[out] ヒストグラム実行中のコマンドを格納するポインタを指定します。 

取得結果

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
handleに不正な値が指定された場合
パイプラインが物理的に割り当てられていない場合
割り当て先の物理パイプラインが他のパイプラインハンドルで使用されている場合 

ヒストグラムのステータスを取得します。

格納ポインタ=NULLの場合、その値は取得しません。

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.