AG903ライブラリリファレンス
Body Source
AG903_PgpMgrSetParamOutputFormat 関数
本文ソース
コピコード
1: int32_t AG903_PgpMgrSetParamOutputFormat(
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_OUTPUT_FMT_RGB888_TO_RGB888_32BIT
: 11:
case
AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_RGB888_24BIT
: 12:
case
AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_RGB565
: 13:
case
AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_ARGB1555
: 14:
case
AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_ARGB4444
: 15:
case
AG903_PGP_MGR_OUTPUT_FMT_RGB888_TO_RGB888_SEP
: 16:
case
AG903_PGP_MGR_OUTPUT_FMT_YCBCR444_TO_YCBCR444_32BIT
: 17:
case
AG903_PGP_MGR_OUTPUT_FMT_YCBCR444_TO_YCBCR444_24BIT
: 18:
case
AG903_PGP_MGR_OUTPUT_FMT_YCBCR444_TO_YCBCR422
: 19:
case
AG903_PGP_MGR_OUTPUT_FMT_YCBCR444_TO_YCBCR444_SEP
: 20:
case
AG903_PGP_MGR_OUTPUT_FMT_CLUT8_TO_CLUT8
: 21:
case
AG903_PGP_MGR_OUTPUT_FMT_CLUT1_TO_CLUT1
: 22:
break
; 23:
default
: 24:
return
-
AG903_EINVAL
; 25: } 26: 27: 28:
if
(handle->is_assign ==
true
) { 29:
return
-
AG903_EBUSY
; 30: } 31: 32: 33: handle->output_format = format; 34: handle->is_dirty =
true
; 35:
return
AG903_ENONE
; 36: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム