AG903ライブラリリファレンス
Body Source
AG903_PgpMgrSetConfigIPConversion 関数
本文ソース
コピコード
1: int32_t AG903_PgpMgrSetConfigIPConversion(
AG903_PgpMgrPipelineHandle
*handle, uint32_t limit, uint32_t blky, uint32_t blkc) 2: { 3: 4:
if
((handle == NULL) || (handle->id !=
AG903_PGP_MGR_PIPELINE_HANDLE_ID
)) { 5:
return
-
AG903_EINVAL
; 6: } 7: 8: 9:
switch
(limit) { 10:
case
AG903_PGP_MGR_LIMIT_0_255
: 11:
case
AG903_PGP_MGR_LIMIT_16_235_AND_240
: 12:
break
; 13:
default
: 14:
return
-
AG903_EINVAL
; 15: } 16:
if
(blky >
AG903_PGP_MGR_MAX_IP_BLANK
) { 17:
return
-
AG903_EINVAL
; 18: } 19:
if
(blkc >
AG903_PGP_MGR_MAX_IP_BLANK
) { 20:
return
-
AG903_EINVAL
; 21: } 22: 23: 24: handle->ipc_limit = limit; 25: handle->ipc_blk_y = blky; 26: handle->ipc_blk_c = blkc; 27: handle->is_config_dirty[
AG903_PGP_MGR_CONFIG_IP_CONV
] =
true
; 28: handle->is_dirty =
true
; 29:
return
AG903_ENONE
; 30: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム