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

色空間変換のプリセット設定

Syntax
C++
int32_t AG903_PgpMgrSetConfigThresholdPresetColorSpace(AG903_PgpMgrPipelineHandle * handle, uint32_t format);
引数 
説明 
AG903_PgpMgrPipelineHandle * handle 
[in] パイプラインハンドルを指定します。 
uint32_t format 
[in] 色空間変換のプリセットを指定します。 

色空間変換のプリセットを設定します。

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
handleに不正な値が指定された場合
formatに不正な値が指定された場合 

色空間変換のプリセットを設定します。 

詳しくは、「PGP色空間プリセット」を参照してください。

1: int32_t AG903_PgpMgrSetConfigThresholdPresetColorSpace(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_CSC_YUV_BT_601_FULL_TO_RGB: 11: case AG903_PGP_MGR_CSC_RGB_TO_YUV_BT_601_FULL: 12: case AG903_PGP_MGR_CSC_YUV_BT_601_LIMIT_TO_RGB: 13: case AG903_PGP_MGR_CSC_RGB_TO_YUV_BT_601_LIMIT: 14: case AG903_PGP_MGR_CSC_YUV_BT_709_FULL_TO_RGB: 15: case AG903_PGP_MGR_CSC_RGB_TO_YUV_BT_709_FULL: 16: case AG903_PGP_MGR_CSC_YUV_BT_709_LIMIT_TO_RGB: 17: case AG903_PGP_MGR_CSC_RGB_TO_YUV_BT_709_LIMIT: 18: break; 19: default: 20: return -AG903_EINVAL; 21: } 22: 23: 24: PgpMgrGetPresetColorSpaceParameter(format, &handle->thr_csc2_limit, &handle->thr_csc2_shift, &handle->thr_csc2_matrix[0][0]); 25: handle->is_config_dirty[AG903_PGP_MGR_CONFIG_THR_COLOR_SPACE] = true; 26: handle->is_dirty = true; 27: return AG903_ENONE; 28: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.