|
extern IALG_Fxns VIDENCCOPY_TI_IALG;
#define IALGFXNS \
&VIDENCCOPY_TI_IALG, /* module ID */ \
VIDENCCOPY_TI_activate, /* activate */ \
VIDENCCOPY_TI_alloc, /* alloc */ \
NULL, /* control (NULL => no control ops) */ \
VIDENCCOPY_TI_deactivate, /* deactivate */ \
VIDENCCOPY_TI_free, /* free */ \
VIDENCCOPY_TI_initObj, /* init */ \
NULL, /* moved */ \
NULL /* numAlloc (NULL => IALG_MAXMEMRECS) */
/*
* ======== VIDENCCOPY_TI_IVIDENC ========
* This structure defines TI's implementation of the IVIDENC interface
* for the VIDENCCOPY_TI module.
*/
IVIDENC_Fxns VIDENCCOPY_TI_VIDENCCOPY = { /* module_vendor_interface */
//{IALGFXNS},
{
56 &VIDENCCOPY_TI_IALG, /* module ID */ \
57 VIDENCCOPY_TI_activate, \
58 VIDENCCOPY_TI_alloc, \
59 NULL, /* control (NULL => no control ops) */ \
60 VIDENCCOPY_TI_deactivate, \
61 VIDENCCOPY_TI_free, \
62 VIDENCCOPY_TI_initObj, \
63 NULL, /* moved */ \
64 NULL, /* numAlloc (NULL => IALG_MAXMEMRECS) */
},
69 VIDENCCOPY_TI_process,
70 VIDENCCOPY_TI_control
};
/*
* ======== VIDENCCOPY_TI_IDMA3 ========
* This structure defines TI's implementation of the IDMA3 interface
* for the VIDENCCOPY_TI module.
*/
IDMA3_Fxns VIDENCCOPY_TI_IDMA3 = { /* module_vendor_interface */
&VIDENCCOPY_TI_IALG, /* IALG functions */
206 VIDENCCOPY_TI_dmaChangeChannels, /* ChangeChannels */
207 VIDENCCOPY_TI_dmaGetChannelCnt, /* GetChannelCnt */
208 VIDENCCOPY_TI_dmaGetChannels, /* GetChannels */
209 VIDENCCOPY_TI_dmaInit /* initialize logical channels */
};
在montavista Linux下make,出现错误:
"videnc_copy.cpp", line 57: error #145: a value of type "void (*)(IALG_Handle)" cannot be used to initialize an entity of type "void (*)(IALG_Handle) C"
"videnc_copy.cpp", line 58: error #145: a value of type "Int (*)(const IALG_Params *, IALG_Fxns **, IALG_MemRec *)" cannot be used to initialize an entity of type "Int (*)(const IALG_Params *, IALG_Fxns **, IALG_MemRec *) C"
"videnc_copy.cpp", line 60: error #145: a value of type "void (*)(IALG_Handle)" cannot be used to initialize an entity of type "void (*)(IALG_Handle) C"
"videnc_copy.cpp", line 61: error #145: a value of type "Int (*)(IALG_Handle, IALG_MemRec *)" cannot be used to initialize an entity of type "Int (*)(IALG_Handle, IALG_MemRec *) C"
"videnc_copy.cpp", line 62: error #145: a value of type "Int (*)(IALG_Handle, const IALG_MemRec *, IALG_Handle, const IALG_Params *)" cannot be used to initialize an entity of type "Int (*)(IALG_Handle, const IALG_MemRec *, IALG_Handle, const IALG_Params *) C"
"videnc_copy.cpp", line 69: error #145: a value of type "XDAS_Int32 (*)(IVIDENC_Handle, XDM_BufDesc *, XDM_BufDesc *, IVIDENC_InArgs *, IVIDENC_OutArgs *)" cannot be used to initialize an entity of type "XDAS_Int32 (*)(IVIDENC_Handle, XDM_BufDesc *, XDM_BufDesc *, IVIDENC_InArgs *, IVIDENC_OutArgs *) C"
"videnc_copy.cpp", line 70: error #145: a value of type "XDAS_Int32 (*)(IVIDENC_Handle, IVIDENC_Cmd, IVIDENC_DynamicParams *, IVIDENC_Status *)" cannot be used to initialize an entity of type "XDAS_Int32 (*)(IVIDENC_Handle, IVIDENC_Cmd, IVIDENC_DynamicParams *, IVIDENC_Status *) C"
"videnc_copy.cpp", line 206: error #145: a value of type "void (*)(IALG_Handle, IDMA3_ChannelRec *)" cannot be used to initialize an entity of type "void (*)(IALG_Handle, IDMA3_ChannelRec *) C"
"videnc_copy.cpp", line 207: error #145: a value of type "Uns (*)()" cannot be used to initialize an entity of type "Uns (*)() C"
"videnc_copy.cpp", line 208: error #145: a value of type "Uns (*)(IALG_Handle, IDMA3_ChannelRec *)" cannot be used to initialize an entity of type "Uns (*)(IALG_Handle, IDMA3_ChannelRec *) C"
"videnc_copy.cpp", line 209: error #145: a value of type "Int (*)(IALG_Handle, IDMA3_ChannelRec *)" cannot be used to initialize an entity of type "Int (*)(IALG_Handle, IDMA3_ChannelRec *) C"
11 errors detected in the compilation of "videnc_copy.cpp".
>> Compilation failure
gmake[1]: *** [package/lib/lib/codec_copy_dma/videnc_copy.o64P] Error 1
gmake: *** [/home/davinci/workdir/xdc/gray_detect/codec_copy,.libraries] Error 2
make: *** [all] 错误 2
哪位高手指点一下,谢谢 |
|