OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
查看: 3403|回复: 0

将dm6446codec文件夹里的.c改成.cpp出现错误,请教

[复制链接]
发表于 2010-1-23 11:09:58 | 显示全部楼层 |阅读模式
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

哪位高手指点一下,谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-4-20 02:28 , Processed in 0.009768 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表