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

VRAM入力のフォーマット設定

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

設定結果

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

VRAM入力フォーマットを設定します。 

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

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

1: int32_t AG903_PgpMgrSetParamVRAMFormat(AG903_PgpMgrVRAMInputHandle *handle, uint32_t format) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_VRAM_INPUT_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: switch (format) { 10: case AG903_PGP_MGR_VI_FMT_RGB888_32: 11: case AG903_PGP_MGR_VI_FMT_RGB888_24: 12: case AG903_PGP_MGR_VI_FMT_RGB565: 13: case AG903_PGP_MGR_VI_FMT_YCBCR444_32: 14: case AG903_PGP_MGR_VI_FMT_YCBCR444_24: 15: case AG903_PGP_MGR_VI_FMT_YCBCR422: 16: case AG903_PGP_MGR_VI_FMT_CLUT8: 17: case AG903_PGP_MGR_VI_FMT_CLUT1: 18: break; 19: default: 20: return -AG903_EINVAL; 21: } 22: 23: 24: if (handle->port_no != -1) { 25: return -AG903_EBUSY; 26: } 27: 28: 29: handle->format = format; 30: handle->is_dirty = true; 31: return AG903_ENONE; 32: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.