@@ -88,9 +88,17 @@ int create_region(int *handle, int x, int y, int width, int height) {
8888 fprintf (stderr , "[%s:%d] Region parameters are different, recreating ... \n" , __func__ ,
8989 __LINE__ );
9090#ifdef __SIGMASTAR__
91+ #if __INFINITY6C__
92+ stChn .s32ChnId = 1 ;
93+ #else
9194 stChn .s32OutputPortId = 1 ;
95+ #endif
9296 MI_RGN_DetachFromChn (DEV * handle , & stChn );
97+ #if __INFINITY6C__
98+ stChn .s32ChnId = 0 ;
99+ #else
93100 stChn .s32OutputPortId = 0 ;
101+ #endif
94102 MI_RGN_DetachFromChn (DEV * handle , & stChn );
95103 MI_RGN_Destroy (DEV * handle );
96104 s32Ret = MI_RGN_Create (DEV * handle , & stRegion );
@@ -128,9 +136,17 @@ int create_region(int *handle, int x, int y, int width, int height) {
128136 "channel %d...\n" ,
129137 __func__ , __LINE__ , * handle , & stChn .s32ChnId );
130138#ifdef __SIGMASTAR__
139+ #if __INFINITY6C__
140+ stChn .s32ChnId = 1 ;
141+ #else
131142 stChn .s32OutputPortId = 1 ;
143+ #endif
132144 MI_RGN_DetachFromChn (DEV * handle , & stChn );
145+ #if __INFINITY6C__
146+ stChn .s32ChnId = 0 ;
147+ #else
133148 stChn .s32OutputPortId = 0 ;
149+ #endif
134150 MI_RGN_DetachFromChn (DEV * handle , & stChn );
135151#else
136152 HI_MPI_RGN_DetachFromChn (* handle , & stChn );
@@ -157,9 +173,17 @@ int create_region(int *handle, int x, int y, int width, int height) {
157173 = 127;
158174 */
159175
176+ #if __INFINITY6C__
177+ stChn .s32ChnId = 0 ;
178+ #else
160179 stChn .s32OutputPortId = 0 ;
180+ #endif
161181 s32Ret = MI_RGN_AttachToChn (DEV * handle , & stChn , & stChnAttr );
182+ #if __INFINITY6C__
183+ stChn .s32ChnId = 1 ;
184+ #else
162185 stChn .s32OutputPortId = 1 ;
186+ #endif
163187 s32Ret = MI_RGN_AttachToChn (DEV * handle , & stChn , & stChnAttr );
164188#else
165189 memset (& stChnAttr , 0 , sizeof (RGN_CHN_ATTR_S ));
@@ -389,9 +413,17 @@ int unload_region(int *handle) {
389413 stChn .s32ChnId = 0 ;
390414
391415 stChn .eModId = E_MI_RGN_MODID_VPE ;
416+ #if __INFINITY6C__
417+ stChn .s32ChnId = 1 ;
418+ #else
392419 stChn .s32OutputPortId = 1 ;
420+ #endif
393421 MI_RGN_DetachFromChn (DEV * handle , & stChn );
422+ #if __INFINITY6C__
423+ stChn .s32ChnId = 0 ;
424+ #else
394425 stChn .s32OutputPortId = 0 ;
426+ #endif
395427 MI_RGN_DetachFromChn (DEV * handle , & stChn );
396428 s32Ret = MI_RGN_Destroy (DEV * handle );
397429 if (s32Ret )
0 commit comments