1: int32_t AG903_PgpMgrGetFrameInfo(
AG903_PgpMgrPipelineHandle *handle, uint32_t *tmstmp, uint32_t *field, uint32_t *port, uint32_t *fnum)
2: {
3:
4:
if ((handle == NULL) || (handle->id !=
AG903_PGP_MGR_PIPELINE_HANDLE_ID)) {
5:
return -
AG903_EINVAL;
6: }
7:
8:
9:
if (handle->is_assign ==
false) {
10:
return -
AG903_EINVAL;
11: }
12:
13:
if (PgpContext.exec_pipeline[handle->pipeline_no] != handle) {
14:
return -
AG903_EINVAL;
15: }
16:
17:
18:
if (tmstmp != NULL) {
19:
AG903_PgpPrmGetPGPnFAIVAL0(handle->pipeline_no, tmstmp);
20: }
21:
if (field != NULL || port != NULL || fnum != NULL) {
22: uint32_t tmp_field, tmp_port, tmp_fnum;
23:
AG903_PgpPrmGetPGPnFAIVAL1(handle->pipeline_no, &tmp_field, &tmp_port, &tmp_fnum);
24:
if (field != NULL) {
25: *field = tmp_field;
26: }
27:
if (port != NULL) {
28: *port = tmp_port;
29: }
30:
if (fnum != NULL) {
31: *fnum = tmp_fnum;
32: }
33: }
34:
return AG903_ENONE;
35: }