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

パイプラインの入力フォーマット設定

Syntax
C++
int32_t AG903_PgpMgrSetParamInputFormat(AG903_PgpMgrPipelineHandle * handle, uint32_t format);
引数 
説明 
AG903_PgpMgrPipelineHandle * handle 
[in] パイプラインハンドルを指定します。 
uint32_t format 
[in] 入力フォーマットを指定します。 

設定結果

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
handleに不正な値が指定された場合
formatに不正な値が指定された場合 
-AG903_EBUSY 
パイプライン割り当て後に本関数が呼び出された場合 

パイプラインの入力フォーマットを設定します。 

詳しくは「PGP入力フォーマット」を参照してください。

本関数でのパラメータ設定はパイプライン割り当て前に行なう必要があります。

1: int32_t AG903_PgpMgrSetParamInputFormat(AG903_PgpMgrPipelineHandle *handle, uint32_t format) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: switch (format) { 10: case AG903_PGP_MGR_INPUT_FMT_RGB888: 11: case AG903_PGP_MGR_INPUT_FMT_RGB565: 12: case AG903_PGP_MGR_INPUT_FMT_YCBCR444: 13: case AG903_PGP_MGR_INPUT_FMT_YCBCR422_WO_IP: 14: case AG903_PGP_MGR_INPUT_FMT_YCBCR422_W_IP: 15: case AG903_PGP_MGR_INPUT_FMT_CLUT8: 16: case AG903_PGP_MGR_INPUT_FMT_CLUT1: 17: break; 18: default: 19: return -AG903_EINVAL; 20: } 21: 22: 23: if (handle->is_assign == true) { 24: return -AG903_EBUSY; 25: } 26: 27: 28: handle->input_format = format; 29: handle->is_dirty = true; 30: return AG903_ENONE; 31: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.