|  SKYENGINE API  
      参考手册返回目录 | 
  
 (int32 code = 
      1311,  
  
  
  
     int32 mr_platEx 
    
       
uint8* input, 
int32 input_len, 
uint8** output, 
      
int32* output_len, 
MR_PLAT_EX_CB* 
  cb
)
Description
获得base层的句柄。
Parameters
  
    
    
       
    Name 
      Description 
       
    input 
      T_LAYER_CREATE数据结构指针 
       
    input_len 
      T_LAYER_CREATE数据结构大小 
       
    output 
      T_DSM_COMMON_RSP数据结构 
       
    output_len 
      T_DSM_COMMON_RSP数据结构大小 
       cb 
      无 
MR_SUCCESS 成功
MR_FAILED 失败
MR_IGNORE 不支持该功能
T_LAYER_CREATE数据结构:
typedef struct
{
int32 x;
int32 y;
int32 w;
int32 h;
int32 size;
char *buffer;
}T_LAYER_CREATE;T_DSM_COMMON_RSP数据结构:
typedef struct
{
int32 p1;//层句柄 0是非法句柄
}T_DSM_COMMON_RSP;
/*mrp code*/
T_DSM_COMMON_RSP *basel = NULL;
int32 re = -1;
int32 len;
re = mrc_platEx( 1311, NULL, 0, (uint8**)&basel, (int32*)&len, NULL );
if ( MR_SUCCESS == re )
{
mrc_printf( "Base layer handle: %d", basel->p1 );
}