ctables.h
上传用户:panstart
上传日期:2022-04-12
资源大小:199k
文件大小:4k
源码类别:

IP电话/视频会议

开发平台:

C++ Builder

  1. ////////////////////////////////////////////////////////////////////////////
  2. //
  3. //
  4. //    Project     : VideoNet version 1.1.
  5. //    Description : Peer to Peer Video Conferencing over the LAN.
  6. //   Author      : Nagareshwar Y Talekar ( nsry2002@yahoo.co.in)
  7. //    Date        : 15-6-2004.
  8. //
  9. //    I have converted origional fast h.263 encoder library from C to C++ 
  10. //   so that it can be integrated into any windows application easily.
  11. //   I have removed some of unnecessary codes/files from the
  12. //   fast h263 library.Also moved definitions and declarations
  13. //   in their proper .h and .cpp files.
  14. //
  15. //    File description : 
  16. //    Name    : ctables.h
  17. //
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #if !defined(AFX_CTABLES_H__9AA44A65_691B_11D6_889A_000B2B0F84B6__INCLUDED_)
  21. #define AFX_CTABLES_H__9AA44A65_691B_11D6_889A_000B2B0F84B6__INCLUDED_
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. /* tables.h */
  26. /* TMN Huffman tables */
  27. /* Motion vectors */
  28. int vlc_mv_coeff[] = {
  29. 32,13,5,
  30. 33,13,7,
  31. 34,12,5,
  32. 35,12,7,
  33. 36,12,9,
  34. 37,12,11,
  35. 38,12,13,
  36. 39,12,15,
  37. 40,11,9,
  38. 41,11,11,
  39. 42,11,13,
  40. 43,11,15,
  41. 44,11,17,
  42. 45,11,19,
  43. 46,11,21,
  44. 47,11,23,
  45. 48,11,25,
  46. 49,11,27,
  47. 50,11,29,
  48. 51,11,31,
  49. 52,11,33,
  50. 53,11,35,
  51. 54,10,19,
  52. 55,10,21,
  53. 56,10,23,
  54. 57,8,7,
  55. 58,8,9,
  56. 59,8,11,
  57. 60,7,7,
  58. 61,5,3,
  59. 62,4,3,
  60. 63,3,3,
  61.  0,1,1,
  62.  1,3,2,
  63.  2,4,2,
  64.  3,5,2,
  65.  4,7,6,
  66.  5,8,10,
  67.  6,8,8,
  68.  7,8,6,
  69.  8,10,22,
  70.  9,10,20,
  71. 10,10,18,
  72. 11,11,34,
  73. 12,11,32,
  74. 13,11,30,
  75. 14,11,28,
  76. 15,11,26,
  77. 16,11,24,
  78. 17,11,22,
  79. 18,11,20,
  80. 19,11,18,
  81. 20,11,16,
  82. 21,11,14,
  83. 22,11,12,
  84. 23,11,10,
  85. 24,11,8,
  86. 25,12,14,
  87. 26,12,12,
  88. 27,12,10,
  89. 28,12,8,
  90. 29,12,6,
  91. 30,12,4,
  92. 31,13,6,
  93. -1,-1
  94. };
  95. /* CBPCM (MCBPC) */
  96. int vlc_cbpcm_intra_coeff[] = {
  97. 3,1,1,
  98. 19,3,1,
  99. 35,3,2,
  100. 51,3,3,
  101. 4,4,1,
  102. 20,6,1,
  103. 36,6,2,
  104. 52,6,3,
  105. 255,9,1,
  106. -1,-1
  107. };
  108. int vlc_cbpcm_coeff[] = {
  109. 0,1,1,
  110. 16,4,3,
  111. 32,4,2,
  112. 48,6,5,
  113. 1,3,3,
  114. 17,7,7,
  115. 33,7,6,
  116. 49,9,5,
  117. 2,3,2,
  118. 18,7,5,
  119. 34,7,4,
  120. 50,8,5,
  121. 3,5,3,
  122. 19,8,4,
  123. 35,8,3,
  124. 51,7,3,
  125. 4,6,4,
  126. 20,9,4,
  127. 36,9,3,
  128. 52,9,2,
  129. 255,9,1,
  130. -1,-1
  131. };
  132. /* CBPY */
  133. int vlc_cbpy_coeff[] = {
  134. 0,  2,3,
  135. 8,  4,11,
  136. 4,  4,10,
  137. 12, 4,9,
  138. 2,  4,8,
  139. 10, 4,7,
  140. 6,  6,3,
  141. 14, 5,5,
  142. 1,  4,6,
  143. 9,  6,2,
  144. 5,  4,5,
  145. 13, 5,4,
  146. 3,  4,4,
  147. 11, 5,3,
  148. 7,  5,2,
  149. 15, 4,3,
  150. -1,-1
  151. };
  152. /* 3D VLC */
  153. int vlc_3d_coeff[] = {
  154. 1,2,2,
  155. 2,4,15,
  156. 3,6,21,
  157. 4,7,23,
  158. 5,8,31,
  159. 6,9,37,
  160. 7,9,36,
  161. 8,10,33,
  162. 9,10,32,
  163. 10,11,7,
  164. 11,11,6,
  165. 12,11,32,
  166. 17,3,6,
  167. 18,6,20,
  168. 19,8,30,
  169. 20,10,15,
  170. 21,11,33,
  171. 22,12,80,
  172. 33,4,14,
  173. 34,8,29,
  174. 35,10,14,
  175. 36,12,81,
  176. 49,5,13,
  177. 50,9,35,
  178. 51,10,13,
  179. 65,5,12,
  180. 66,9,34,
  181. 67,12,82,
  182. 81,5,11,
  183. 82,10,12,
  184. 83,12,83,
  185. 97,6,19,
  186. 98,10,11,
  187. 99,12,84,
  188. 113,6,18,
  189. 114,10,10,
  190. 129,6,17,
  191. 130,10,9,
  192. 145,6,16,
  193. 146,10,8,
  194. 161,7,22,
  195. 162,12,85,
  196. 177,7,21,
  197. 193,7,20,
  198. 209,8,28,
  199. 225,8,27,
  200. 241,9,33,
  201. 257,9,32,
  202. 273,9,31,
  203. 289,9,30,
  204. 305,9,29,
  205. 321,9,28,
  206. 337,9,27,
  207. 353,9,26,
  208. 369,11,34,
  209. 385,11,35,
  210. 401,12,86,
  211. 417,12,87,
  212. 4097,4,7,                          /* Table for last coeff */
  213. 4098,9,25,
  214. 4099,11,5,
  215. 4113,6,15,
  216. 4114,11,4,
  217. 4129,6,14,
  218. 4145,6,13,
  219. 4161,6,12,
  220. 4177,7,19,
  221. 4193,7,18,
  222. 4209,7,17,
  223. 4225,7,16,
  224. 4241,8,26,
  225. 4257,8,25,
  226. 4273,8,24,
  227. 4289,8,23,
  228. 4305,8,22,
  229. 4321,8,21,
  230. 4337,8,20,
  231. 4353,8,19,
  232. 4369,9,24,
  233. 4385,9,23,
  234. 4401,9,22,
  235. 4417,9,21,
  236. 4433,9,20,
  237. 4449,9,19,
  238. 4465,9,18,
  239. 4481,9,17,
  240. 4497,10,7,
  241. 4513,10,6,
  242. 4529,10,5,
  243. 4545,10,4,
  244. 4561,11,36,
  245. 4577,11,37,
  246. 4593,11,38,
  247. 4609,11,39,
  248. 4625,12,88,
  249. 4641,12,89,
  250. 4657,12,90,
  251. 4673,12,91,
  252. 4689,12,92,
  253. 4705,12,93,
  254. 4721,12,94,
  255. 4737,12,95,
  256. 7167,7,3,               /* escape */
  257. -1,-1
  258. };
  259. #endif // !defined(AFX_CTABLES_H__9AA44A65_691B_11D6_889A_000B2B0F84B6__INCLUDED_)