codec engine代码阅读一---根目录下的package.xdc文件

时间:2022-09-04 12:25:43

[转载] http://blog.csdn.net/chenbang110/article/details/8769873


      codec engine代码是适用于XDC tools而写的,因此看代码之前要对XDC tools有一些基本的了解,可以参考:TI XDC工具入门简介

http://blog.csdn.net/u010186001/article/details/52863787

      Package.xdc可用于描述该包的名称,版本信息,依赖文件,模块信息等。

     根目录下的package.xdc不看版权声明部分,正文的前几行是:
  1. /* This "requires" list describes what packages to import into this bundle */
  2. requires ti.sdo.ce;
  3. requires ti.sdo.ce.node;
  4. requires ti.sdo.ce.ipc;
  5. requires ti.sdo.ce.ipc.bios;
  6. requires ti.sdo.ce.ipc.dsplink;
  7. requires ti.sdo.ce.ipc.dsplink.dsp;
  8. requires ti.sdo.ce.ipc.linux;
  9. requires ti.sdo.ce.ipc.noOS;
复制代码
第1行注释说:这个requires列表描述的是要包含到这个bundle里面的包们。bundle本意是包,捆.实际上这里说的就是包的集合.
所有的requires语句之后的内容是:
  1. /*!
  2. *  ======== codec_engine ========
  3. *  The Codec Engine product package.  //codec engine产品包
  4. *
  5. *  This package is a "bundle" of packages required to use the Codec Engine//这个包是一个要使用codec engine api来运行
  6. *  API's to run algorithms.  It also includes packages required to add new  //算法所需要的包的bundle.这也包含了一些
  7. *  algorithms to a system using the Codec Engine.                                     //加使用codec engine的系统增加新算法所需的包.
  8. *
  9. */
  10. package codec_engine_2_23_01 [1, 0, 0] {
  11. }                //这个结构的含义还不了解.
复制代码

附上所有的require语句(上述只是一小部分):
  1. requires ti.sdo.ce;   //ce-codec engine
  2. requires ti.sdo.ce.node; //codec engine节点
  3. requires ti.sdo.ce.ipc;    //ipc=inter process communication 进程间通信的包.
  4. requires ti.sdo.ce.ipc.bios;  //进程间通信的bios部分
  5. requires ti.sdo.ce.ipc.dsplink;  //进程间通信用到的dsplink
  6. requires ti.sdo.ce.ipc.dsplink.dsp; //进程间通信用到的dsplink中的dsp部分
  7. requires ti.sdo.ce.ipc.linux;   //进程间通信的linux部分
  8. requires ti.sdo.ce.ipc.noOS;  //无操作系统情况下的进程间通信.
  9. requires ti.sdo.ce.osal;   //这个不懂
  10. requires ti.sdo.ce.osal.bios;
  11. requires ti.sdo.ce.osal.linux;
  12. requires ti.sdo.ce.osal.noOS;
  13. requires ti.sdo.ce.alg;   //alg=algorithm 算法
  14. requires ti.sdo.ce.trace; //调试追踪
  15. requires ti.sdo.ce.speech; //语音部分
  16. requires ti.sdo.ce.speech1; 
  17. requires ti.sdo.ce.video;  //视频部分
  18. requires ti.sdo.ce.video1;
  19. requires ti.sdo.ce.video2;
  20. requires ti.sdo.ce.audio;  //音频部分
  21. requires ti.sdo.ce.audio1;
  22. requires ti.sdo.ce.global; //全局部分
  23. requires ti.sdo.ce.image; //图像部分
  24. requires ti.sdo.ce.image1;
  25. requires ti.sdo.ce.universal;
  26. requires ti.sdo.ce.vidtranscode;  //视频转码
  27. requires ti.sdo.ce.vidanalytics;  //视频分析
  28. requires ti.sdo.ce.video2.split; //视频分割

  29. requires ti.sdo.ce.bioslog;  //bios日志

  30. requires ti.sdo.ce.utils; //附加工具
  31. requires ti.sdo.ce.utils.trace;//附加工具的调试部分
  32. requires ti.sdo.ce.utils.xdm;

  33. requires ti.dsplink.utils.lad;
  34. requires ti.dsplink.utils.ladclient;

  35. requires ti.sdo.ce.examples.codecs;//示例编解码器
  36. requires ti.sdo.ce.examples.codecs.viddec1_copy;//示例视频编码器
  37. requires ti.sdo.ce.examples.codecs.videnc1_copy;
  38. requires ti.sdo.ce.examples.codecs.imgdec1_copy;//示例图像编解码器
  39. requires ti.sdo.ce.examples.codecs.imgenc1_copy;
  40. requires ti.sdo.ce.examples.codecs.sphdec1_copy;//示例语音编解码器
  41. requires ti.sdo.ce.examples.codecs.sphenc1_copy;
  42. requires ti.sdo.ce.examples.codecs.auddec1_copy;//示例音频编解码器
  43. requires ti.sdo.ce.examples.codecs.audenc1_copy;
  44. requires ti.sdo.ce.examples.codecs.auddec1_ires; //音频资源
  45. requires ti.sdo.ce.examples.codecs.viddec2_copy;

  46. requires ti.sdo.ce.examples.codecs.viddec_copy;
  47. requires ti.sdo.ce.examples.codecs.videnc_copy;
  48. requires ti.sdo.ce.examples.codecs.imgdec_copy;
  49. requires ti.sdo.ce.examples.codecs.imgenc_copy;
  50. requires ti.sdo.ce.examples.codecs.sphdec_copy;
  51. requires ti.sdo.ce.examples.codecs.sphenc_copy;
  52. requires ti.sdo.ce.examples.codecs.auddec_copy;
  53. requires ti.sdo.ce.examples.codecs.audenc_copy;

  54. requires ti.sdo.ce.examples.codecs.g711;
  55. requires ti.sdo.ce.examples.codecs.scale;
  56. requires ti.sdo.ce.examples.codecs.vidtranscode_copy;
  57. requires ti.sdo.ce.examples.codecs.vidanalytics_copy;

  58. requires ti.sdo.ce.examples.codecs.viddec2split_copy;
  59. requires ti.sdo.ce.examples.codecs.universal_copy;

  60. requires ti.sdo.ce.examples.extensions;//扩展部分
  61. requires ti.sdo.ce.examples.extensions.scale;

  62. requires ti.sdo.ce.examples.servers;//服务器部分
  63. requires ti.sdo.ce.examples.servers.all_codecs;
  64. requires ti.sdo.ce.examples.servers.all_codecs_new_config;
  65. requires ti.sdo.ce.examples.servers.video_copy;
  66. requires ti.sdo.ce.examples.servers.video_copy.evmDM6446;
  67. requires ti.sdo.ce.examples.servers.video_copy.evmDM6467;
  68. requires ti.sdo.ce.examples.servers.video_copy.evm2530;
  69. requires ti.sdo.ce.examples.servers.video_copy.evm3530;
  70. requires ti.sdo.ce.examples.servers.video_copy.evmOMAPL137;
  71. requires ti.sdo.ce.examples.servers.server_api_example;
  72. requires ti.sdo.ce.examples.servers.audio1_ires;

  73. requires ti.sdo.ce.examples.buildutils;
  74. requires ti.sdo.ce.examples.apps;//应用部分
  75. requires ti.sdo.ce.examples.apps.video_copy.singlecpu;
  76. requires ti.sdo.ce.examples.apps.video_copy.singlecpu_configuro.evmDM365;
  77. requires ti.sdo.ce.examples.apps.video_copy.dualcpu;
  78. requires ti.sdo.ce.examples.apps.video_copy.dualcpu.evmDM6446;
  79. requires ti.sdo.ce.examples.apps.video_copy.dualcpu.evmDM6467;
  80. requires ti.sdo.ce.examples.apps.video_copy.dualcpu.evm2530;
  81. requires ti.sdo.ce.examples.apps.video_copy.dualcpu.evm3530;
  82. requires ti.sdo.ce.examples.apps.video_copy.dualcpu.evmOMAPL137;
  83. requires ti.sdo.ce.examples.apps.video_copy.dualcpu_separateconfig;
  84. requires ti.sdo.ce.examples.apps.video_copy.dualcpu_separateconfig_dll;
  85. requires ti.sdo.ce.examples.apps.image_copy;
  86. requires ti.sdo.ce.examples.apps.speech_copy;
  87. requires ti.sdo.ce.examples.apps.audio_copy.singlecpu;
  88. requires ti.sdo.ce.examples.apps.audio_copy.dualcpu;
  89. requires ti.sdo.ce.examples.apps.audio_copy.dualcpu.evmDM6446;
  90. requires ti.sdo.ce.examples.apps.audio_copy.dualcpu.evmDM6467;
  91. requires ti.sdo.ce.examples.apps.audio_copy.dualcpu.evm2530;
  92. requires ti.sdo.ce.examples.apps.audio_copy.dualcpu.evm3530;
  93. requires ti.sdo.ce.examples.apps.server_api_example;
  94. requires ti.sdo.ce.examples.apps.server_trace;

  95. requires ti.sdo.ce.examples.apps.video2_copy;
  96. requires ti.sdo.ce.examples.apps.video1_copy;
  97. requires ti.sdo.ce.examples.apps.image1_copy;
  98. requires ti.sdo.ce.examples.apps.speech1_copy;
  99. requires ti.sdo.ce.examples.apps.audio1_copy.sync;
  100. requires ti.sdo.ce.examples.apps.audio1_copy.async;
  101. requires ti.sdo.ce.examples.apps.audio1_ires;

  102. requires ti.sdo.ce.examples.apps.video2split_copy;

  103. requires ti.sdo.ce.examples.apps.vidtranscode;
  104. requires ti.sdo.ce.examples.apps.vidanalytics;

  105. requires ti.sdo.ce.examples.apps.universal_copy;
  106. requires ti.sdo.ce.examples.apps.scale;
  107. requires ti.sdo.ce.examples.apps.speech;
  108. requires ti.sdo.ce.examples.apps.speech_copy_LAD;

  109. requires ti.sdo.ce.wizards.genserver;
复制代码