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

パイプラインの出力先が2次元の場合のストライドバイト設定

Syntax
C++
int32_t AG903_PgpMgrSetParamOutputStride(AG903_PgpMgrPipelineHandle * handle, uint32_t stride);
引数 
説明 
AG903_PgpMgrPipelineHandle * handle 
[in] パイプラインハンドルを指定します。 
uint32_t stride 
[in] 2次元で出力する場合のストライドバイトを指定します。 

設定結果

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

パイプラインの出力先が2次元の場合、ストライドバイトを設定します。 

出力フォーマットがYCbCr422の時、ストライドバイトは偶数に設定してください。 

引数に指定可能な範囲は以下の通りです。

引数 
設定可能範囲 
stride 

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

1: int32_t AG903_PgpMgrSetParamOutputStride(AG903_PgpMgrPipelineHandle *handle, uint32_t stride) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: if ((stride == 0) || (stride > AG903_PGP_MGR_OUTPUT_MAX_STRIDE_BYTE)) { 10: return -AG903_EINVAL; 11: } 12: 13: 14: if (handle->is_assign == true) { 15: return -AG903_EBUSY; 16: } 17: 18: 19: handle->output_vram_stride = stride; 20: handle->is_dirty = true; 21: return AG903_ENONE; 22: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.