AG903ライブラリリファレンス
Body Source
AG903_PgpMgrSetParamVRAMFormat 関数
本文ソース
コピコード
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.
内容
|
インデックス
|
ホーム