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

パイプラインハンドルへの濃度変換テーブル関連付け

Syntax
C++
int32_t AG903_PgpMgrSetConfigDGCLUT(AG903_PgpMgrPipelineHandle * pipeline, AG903_PgpMgrDGCLookupTable * dgc_lut);
引数 
説明 
AG903_PgpMgrPipelineHandle * pipeline 
[in] 濃度変換テーブルと関連付けするパイプラインハンドルを指定します。 
AG903_PgpMgrDGCLookupTable * dgc_lut 
[in] 関連付けする濃度変換テーブルを指定します。 

関連付け結果

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
pipelineに不正な値が指定された場合
dgc_lutに不正な値が指定された場合(NULLは除きます) 

パイプラインハンドルに濃度変換テーブルを関連付けます。

table=NULLの場合、パイプラインハンドルとの関連付けを解除します。

1: int32_t AG903_PgpMgrSetConfigDGCLUT(AG903_PgpMgrPipelineHandle *pipeline, AG903_PgpMgrDGCLookupTable *dgc_lut) 2: { 3: 4: if ((pipeline == NULL) || (pipeline->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: if ((dgc_lut != NULL) && (dgc_lut->id != AG903_PGP_MGR_DGC_LUT_ID)) { 8: return -AG903_EINVAL; 9: } 10: 11: 12: if (pipeline->dgc_lut == dgc_lut) { 13: return AG903_ENONE; 14: } 15: 16: if (pipeline->dgc_lut != NULL) { 17: pipeline->dgc_lut->ref_cnt--; 18: pipeline->dgc_lut = NULL; 19: } 20: 21: pipeline->dgc_lut = dgc_lut; 22: if (dgc_lut != NULL) { 23: pipeline->dgc_lut_dirty = true; 24: dgc_lut->ref_cnt++; 25: } 26: 27: return AG903_ENONE; 28: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.