AG903ライブラリリファレンス
Body Source
AG903_PgpMgrSetParamInputFormat 関数
本文ソース
コピコード
1: int32_t AG903_PgpMgrSetParamInputFormat(
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_INPUT_FMT_RGB888
: 11:
case
AG903_PGP_MGR_INPUT_FMT_RGB565
: 12:
case
AG903_PGP_MGR_INPUT_FMT_YCBCR444
: 13:
case
AG903_PGP_MGR_INPUT_FMT_YCBCR422_WO_IP
: 14:
case
AG903_PGP_MGR_INPUT_FMT_YCBCR422_W_IP
: 15:
case
AG903_PGP_MGR_INPUT_FMT_CLUT8
: 16:
case
AG903_PGP_MGR_INPUT_FMT_CLUT1
: 17:
break
; 18:
default
: 19:
return
-
AG903_EINVAL
; 20: } 21: 22: 23:
if
(handle->is_assign ==
true
) { 24:
return
-
AG903_EBUSY
; 25: } 26: 27: 28: handle->input_format = format; 29: handle->is_dirty =
true
; 30:
return
AG903_ENONE
; 31: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム