jsimd_none.c 7.4 KB

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