![]() |
(int32 code =
1315,
int32 mr_platEx
uint8* input,
int32 input_len,
uint8** output,
int32* output_len,
MR_PLAT_EX_CB*
cb
)
获取激活层信息。
Name Description input 无 input_len 无 output T_LAYER_INFO数据结构指针 output_len T_LAYER_INFO数据结构大小 cb 无
MR_SUCCESS 成功
MR_FAILED 失败
MR_IGNORE 不支持该功能
T_LAYER_INFO数据结构:
typedef struct
{
int32 handle;
int32 w;
int32 h;
char *buffer;
}T_LAYER_INFO;
/*mrp code*/
T_LAYER_INFO *acLayInfo = NULL;
int32 len,re;
re = mrc_platEx( 1315, NULL, 0, (uint8**)&acLayInfo, (int32*)&len, NULL );
if(MR_SUCCESS == re)
{
mrc_printf( "Get active layer:%d", acLayInfo->handle );
}