jsimd_none.c 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. /*
  2. * jsimd_none.c
  3. *
  4. * Copyright 2009 Pierre Ossman <[email protected]> for Cendio AB
  5. * Copyright 2009-2011 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(void)
  35. jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
  36. JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
  37. JDIMENSION output_row, int num_rows)
  38. {
  39. }
  40. GLOBAL(void)
  41. jsimd_rgb_gray_convert (j_compress_ptr cinfo,
  42. JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
  43. JDIMENSION output_row, int num_rows)
  44. {
  45. }
  46. GLOBAL(void)
  47. jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
  48. JSAMPIMAGE input_buf, JDIMENSION input_row,
  49. JSAMPARRAY output_buf, int num_rows)
  50. {
  51. }
  52. GLOBAL(int)
  53. jsimd_can_h2v2_downsample (void)
  54. {
  55. return 0;
  56. }
  57. GLOBAL(int)
  58. jsimd_can_h2v1_downsample (void)
  59. {
  60. return 0;
  61. }
  62. GLOBAL(void)
  63. jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
  64. JSAMPARRAY input_data, JSAMPARRAY output_data)
  65. {
  66. }
  67. GLOBAL(void)
  68. jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
  69. JSAMPARRAY input_data, JSAMPARRAY output_data)
  70. {
  71. }
  72. GLOBAL(int)
  73. jsimd_can_h2v2_upsample (void)
  74. {
  75. return 0;
  76. }
  77. GLOBAL(int)
  78. jsimd_can_h2v1_upsample (void)
  79. {
  80. return 0;
  81. }
  82. GLOBAL(void)
  83. jsimd_h2v2_upsample (j_decompress_ptr cinfo,
  84. jpeg_component_info * compptr,
  85. JSAMPARRAY input_data,
  86. JSAMPARRAY * output_data_ptr)
  87. {
  88. }
  89. GLOBAL(void)
  90. jsimd_h2v1_upsample (j_decompress_ptr cinfo,
  91. jpeg_component_info * compptr,
  92. JSAMPARRAY input_data,
  93. JSAMPARRAY * output_data_ptr)
  94. {
  95. }
  96. GLOBAL(int)
  97. jsimd_can_h2v2_fancy_upsample (void)
  98. {
  99. return 0;
  100. }
  101. GLOBAL(int)
  102. jsimd_can_h2v1_fancy_upsample (void)
  103. {
  104. return 0;
  105. }
  106. GLOBAL(void)
  107. jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
  108. jpeg_component_info * compptr,
  109. JSAMPARRAY input_data,
  110. JSAMPARRAY * output_data_ptr)
  111. {
  112. }
  113. GLOBAL(void)
  114. jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
  115. jpeg_component_info * compptr,
  116. JSAMPARRAY input_data,
  117. JSAMPARRAY * output_data_ptr)
  118. {
  119. }
  120. GLOBAL(int)
  121. jsimd_can_h2v2_merged_upsample (void)
  122. {
  123. return 0;
  124. }
  125. GLOBAL(int)
  126. jsimd_can_h2v1_merged_upsample (void)
  127. {
  128. return 0;
  129. }
  130. GLOBAL(void)
  131. jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
  132. JSAMPIMAGE input_buf,
  133. JDIMENSION in_row_group_ctr,
  134. JSAMPARRAY output_buf)
  135. {
  136. }
  137. GLOBAL(void)
  138. jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
  139. JSAMPIMAGE input_buf,
  140. JDIMENSION in_row_group_ctr,
  141. JSAMPARRAY output_buf)
  142. {
  143. }
  144. GLOBAL(int)
  145. jsimd_can_convsamp (void)
  146. {
  147. return 0;
  148. }
  149. GLOBAL(int)
  150. jsimd_can_convsamp_float (void)
  151. {
  152. return 0;
  153. }
  154. GLOBAL(void)
  155. jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
  156. DCTELEM * workspace)
  157. {
  158. }
  159. GLOBAL(void)
  160. jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
  161. FAST_FLOAT * workspace)
  162. {
  163. }
  164. GLOBAL(int)
  165. jsimd_can_fdct_islow (void)
  166. {
  167. return 0;
  168. }
  169. GLOBAL(int)
  170. jsimd_can_fdct_ifast (void)
  171. {
  172. return 0;
  173. }
  174. GLOBAL(int)
  175. jsimd_can_fdct_float (void)
  176. {
  177. return 0;
  178. }
  179. GLOBAL(void)
  180. jsimd_fdct_islow (DCTELEM * data)
  181. {
  182. }
  183. GLOBAL(void)
  184. jsimd_fdct_ifast (DCTELEM * data)
  185. {
  186. }
  187. GLOBAL(void)
  188. jsimd_fdct_float (FAST_FLOAT * data)
  189. {
  190. }
  191. GLOBAL(int)
  192. jsimd_can_quantize (void)
  193. {
  194. return 0;
  195. }
  196. GLOBAL(int)
  197. jsimd_can_quantize_float (void)
  198. {
  199. return 0;
  200. }
  201. GLOBAL(void)
  202. jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
  203. DCTELEM * workspace)
  204. {
  205. }
  206. GLOBAL(void)
  207. jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
  208. FAST_FLOAT * workspace)
  209. {
  210. }
  211. GLOBAL(int)
  212. jsimd_can_idct_2x2 (void)
  213. {
  214. return 0;
  215. }
  216. GLOBAL(int)
  217. jsimd_can_idct_4x4 (void)
  218. {
  219. return 0;
  220. }
  221. GLOBAL(void)
  222. jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  223. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  224. JDIMENSION output_col)
  225. {
  226. }
  227. GLOBAL(void)
  228. jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  229. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  230. JDIMENSION output_col)
  231. {
  232. }
  233. GLOBAL(int)
  234. jsimd_can_idct_islow (void)
  235. {
  236. return 0;
  237. }
  238. GLOBAL(int)
  239. jsimd_can_idct_ifast (void)
  240. {
  241. return 0;
  242. }
  243. GLOBAL(int)
  244. jsimd_can_idct_float (void)
  245. {
  246. return 0;
  247. }
  248. GLOBAL(void)
  249. jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  250. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  251. JDIMENSION output_col)
  252. {
  253. }
  254. GLOBAL(void)
  255. jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  256. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  257. JDIMENSION output_col)
  258. {
  259. }
  260. GLOBAL(void)
  261. jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
  262. JCOEFPTR coef_block, JSAMPARRAY output_buf,
  263. JDIMENSION output_col)
  264. {
  265. }