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

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

Syntax
C++
int32_t AG903_PgpMgrSetParamOutputFormat(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_PgpMgrSetParamOutputFormat(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_OUTPUT_FMT_RGB888_TO_RGB888_32BIT: 11: case AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_RGB888_24BIT: 12: case AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_RGB565: 13: case AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_ARGB1555: 14: case AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_ARGB4444: 15: case AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_RGB888_SEP: 16: case AG903_PGP_MGR_OUTPUT_FMT_YCBCR444_TO_YCBCR444_32BIT: 17: case AG903_PGP_MGR_OUTPUT_FMT_YCBCR444_TO_YCBCR444_24BIT: 18: case AG903_PGP_MGR_OUTPUT_FMT_YCBCR444_TO_YCBCR422: 19: case AG903_PGP_MGR_OUTPUT_FMT_YCBCR444_TO_YCBCR444_SEP: 20: case AG903_PGP_MGR_OUTPUT_FMT_CLUT8_TO_CLUT8: 21: case AG903_PGP_MGR_OUTPUT_FMT_CLUT1_TO_CLUT1: 22: break; 23: default: 24: return -AG903_EINVAL; 25: } 26: 27: 28: if (handle->is_assign == true) { 29: return -AG903_EBUSY; 30: } 31: 32: 33: handle->output_format = format; 34: handle->is_dirty = true; 35: return AG903_ENONE; 36: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.