jsimd_none.c 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. /*
  2. * jsimd_none.c
  3. *
  4. * Copyright 2009 Pierre Ossman <[email protected]> for Cendio AB
  5. * Copyright 2009-2011, 2014 D. R. Commander
  6. *
  7. * Based on the x86 SIMD extension for IJG JPEG library,
  8. * Copyright (C) 1999-2006, MIYASAKA Masaru.
  9. * For conditions of distribution and use, see copyright notice in jsimdext.inc
  10. *
  11. * This file contains stubs for when there is no SIMD support available.
  12. */
  13. #define JPEG_INTERNALS
  14. #include "jinclude.h"
  15. #include "jpeglib.h"
  16. #include "jsimd.h"
  17. #include "jdct.h"
  18. #include "jsimddct.h"
  19. GLOBAL(int)
  20. jsimd_can_rgb_ycc (void)
  21. {
  22. return 0;
  23. }
  24. GLOBAL(int)
  25. jsimd_can_rgb_gray (void)
  26. {
  27. return 0;
  28. }
  29. GLOBAL(int)
  30. jsimd_can_ycc_rgb (void)
  31. {
  32. return 0;
  33. }
  34. GLOBAL(int)
  35. jsimd_can_ycc_rgb565 (void)
  36. {
  37. return 0;
  38. }
  39. GLOBAL(int)
  40. jsimd_c_can_null_convert (void)
  41. {
  42. return 0;
  43. }
  44. GLOBAL(void)
  45. jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
  46. JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
  47. JDIMENSION output_row, int num_rows)
  48. {
  49. }
  50. GLOBAL(void)
  51. jsimd_rgb_gray_convert (j_compress_ptr cinfo,
  52. JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
  53. JDIMENSION output_row, int num_rows)
  54. {
  55. }
  56. GLOBAL(void)
  57. jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
  58. JSAMPIMAGE input_buf, JDIMENSION input_row,
  59. JSAMPARRAY output_buf, int num_rows)
  60. {
  61. }
  62. GLOBAL(void)
  63. jsimd_ycc_rgb565_convert (j_decompress_ptr cinfo,
  64. JSAMPIMAGE input_buf, JDIMENSION input_row,
  65. JSAMPARRAY output_buf, int num_rows)
  66. {
  67. }
  68. GLOBAL(void)
  69. jsimd_c_null_convert (j_compress_ptr cinfo,
  70. JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
  71. JDIMENSION output_row, int num_rows)
  72. {
  73. }
  74. GLOBAL(int)
  75. jsimd_can_h2v2_downsample (void)
  76. {
  77. return 0;
  78. }
  79. GLOBAL(int)
  80. jsimd_can_h2v1_downsample (void)
  81. {
  82. return 0;
  83. }
  84. GLOBAL(int)
  85. jsimd_can_h2v2_smooth_downsample (void)
  86. {
  87. return 0;
  88. }
  89. GLOBAL(void)
  90. jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
  91. JSAMPARRAY input_data, JSAMPARRAY output_data)
  92. {
  93. }
  94. GLOBAL(void)
  95. jsimd_h2v2_smooth_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
  96. JSAMPARRAY input_data, JSAMPARRAY output_data)
  97. {
  98. }
  99. GLOBAL(void)
  100. jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
  101. JSAMPARRAY input_data, JSAMPARRAY output_data)
  102. {
  103. }
  104. GLOBAL(int)
  105. jsimd_can_h2v2_upsample (void)
  106. {
  107. return 0;
  108. }
  109. GLOBAL(int)
  110. jsimd_can_h2v1_upsample (void)
  111. {
  112. return 0;
  113. }
  114. GLOBAL(int)
  115. jsimd_can_int_upsample (void)
  116. {
  117. return 0;
  118. }
  119. GLOBAL(void)
  120. jsimd_int_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  121. JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)
  122. {
  123. }
  124. GLOBAL(void)
  125. jsimd_h2v2_upsample (j_decompress_ptr cinfo,
  126. jpeg_component_info * compptr,
  127. JSAMPARRAY input_data,
  128. JSAMPARRAY * output_data_ptr)
  129. {
  130. }
  131. GLOBAL(void)
  132. jsimd_h2v1_upsample (j_decompress_ptr cinfo,
  133. jpeg_component_info * compptr,
  134. JSAMPARRAY input_data,
  135. JSAMPARRAY * output_data_ptr)
  136. {
  137. }
  138. GLOBAL(int)
  139. jsimd_can_h2v2_fancy_upsample (void)
  140. {
  141. return 0;
  142. }
  143. GLOBAL(int)
  144. jsimd_can_h2v1_fancy_upsample (void)
  145. {
  146. return 0;
  147. }
  148. GLOBAL(void)
  149. jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
  150. jpeg_component_info * compptr,
  151. JSAMPARRAY input_data,
  152. JSAMPARRAY * output_data_ptr)
  153. {
  154. }
  155. GLOBAL(void)
  156. jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
  157. jpeg_component_info * compptr,
  158. JSAMPARRAY input_data,
  159. JSAMPARRAY * output_data_ptr)
  160. {
  161. }
  162. GLOBAL(int)
  163. jsimd_can_h2v2_merged_upsample (void)
  164. {
  165. return 0;
  166. }
  167. GLOBAL(int)
  168. jsimd_can_h2v1_merged_upsample (void)
  169. {
  170. return 0;
  171. }
  172. GLOBAL(void)
  173. jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
  174. JSAMPIMAGE input_buf,
  175. JDIMENSION in_row_group_ctr,
  176. JSAMPARRAY output_buf)
  177. {
  178. }
  179. GLOBAL(void)
  180. jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
  181. JSAMPIMAGE input_buf,
  182. JDIMENSION in_row_group_ctr,
  183. JSAMPARRAY output_buf)
  184. {
  185. }
  186. GLOBAL(int)
  187. jsimd_can_convsamp (void)
  188. {
  189. return 0;
  190. }
  191. GLOBAL(int)
  192. jsimd_can_convsamp_float (void)
  193. {
  194. return 0;
  195. }
  196. GLOBAL(void)
  197. jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
  198. DCTELEM * workspace)
  199. {
  200. }
  201. GLOBAL(void)
  202. jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
  203. FAST_FLOAT * workspace)
  204. {
  205. }
  206. GLOBAL(int)
  207. jsimd_can_fdct_islow (void)
  208. {
  209. return 0;
  210. }
  211. GLOBAL(int)
  212. jsimd_can_fdct_ifast (void)
  213. {
  214. return 0;
  215. }
  216. GLOBAL(int)
  217. jsimd_can_fdct_float (void)
  218. {
  219. return 0;
  220. }
  221. GLOBAL(void)
  222. jsimd_fdct_islow (DCTELEM * data)
  223. {
  224. }
  225. GLOBAL(void)
  226. jsimd_fdct_ifast (DCTELEM * data)
  227. {
  228. }
  229. GLOBAL(void)
  230. jsimd_fdct_float (FAST_FLOAT * data)
  231. {
  232. }
  233. GLOBAL(int)
  234. jsimd_can_quantize (void)
  235. {
  236. return 0;
  237. }
  238. GLOBAL(int)
  239. jsimd_can_quantize_float (void)
  240. {
  241. return 0;
  242. }
  243. GLOBAL(void)
  244. jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
  245. DCTELEM * workspace)
  246. {
  247. }
  248. GLOBAL(void)
  249. jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
  250. FAST_FLOAT * workspace)
  251. {
  252. }
  253. GLOBAL(int)
  254. jsimd_can_idct_2x2 (void)
  255. {
  256. return 0;
  257. }
  258. GLOBAL(int)
  259. jsimd_can_idct_4x4 (void)
  260. {
  261. return 0;
  262. }
  263. GLOBAL(int)
  264. jsimd_can_idct_6x6 (void)
  265. {
  266. return 0;
  267. }
  268. GLOBAL(int)
  269. jsimd_can_idct_12x12 (void)
  270. {
  271. return 0;
  272. }
  273. GLOBAL(void)
  274. jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  275. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  276. JDIMENSION output_col)
  277. {
  278. }
  279. GLOBAL(void)
  280. jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  281. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  282. JDIMENSION output_col)
  283. {
  284. }
  285. GLOBAL(void)
  286. jsimd_idct_6x6 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  287. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  288. JDIMENSION output_col)
  289. {
  290. }
  291. GLOBAL(void)
  292. jsimd_idct_12x12 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  293. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  294. JDIMENSION output_col)
  295. {
  296. }
  297. GLOBAL(int)
  298. jsimd_can_idct_islow (void)
  299. {
  300. return 0;
  301. }
  302. GLOBAL(int)
  303. jsimd_can_idct_ifast (void)
  304. {
  305. return 0;
  306. }
  307. GLOBAL(int)
  308. jsimd_can_idct_float (void)
  309. {
  310. return 0;
  311. }
  312. GLOBAL(void)
  313. jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  314. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  315. JDIMENSION output_col)
  316. {
  317. }
  318. GLOBAL(void)
  319. jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  320. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  321. JDIMENSION output_col)
  322. {
  323. }
  324. GLOBAL(void)
  325. jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  326. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  327. JDIMENSION output_col)
  328. {
  329. }