{"id":85925,"date":"2026-07-28T00:49:49","date_gmt":"2026-07-27T16:49:49","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/85925.html"},"modified":"2026-07-28T00:49:49","modified_gmt":"2026-07-27T16:49:49","slug":"s_y2printer-%e5%bc%80%e6%ba%90%e9%a1%b9%e7%9b%ae%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/85925.html","title":{"rendered":"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790"},"content":{"rendered":"<h2>s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790<\/h2>\n<p>\u4ed3\u5e93\u5730\u5740: https:\/\/gitee.com\/smallerxuan\/s_y2printer \u9879\u76ee\u5b9a\u4f4d: \u9762\u5411 \u5d4c\u5165\u5f0f\u70ed\u654f\u6253\u5370\u673a\u9879\u76ee\u7684\u534a\u8272\u8c03&#xff08;Dithering&#xff09;\u7b97\u6cd5\u5e93 \u6838\u5fc3\u529f\u80fd: \u5c06 8bit \u7070\u5ea6\u56fe\u50cf\u9ad8\u6548\u8f6c\u6362\u4e3a 1bit \u6253\u5370\u6570\u636e License: MIT<\/p>\n<hr \/>\n<h3>\u76ee\u5f55<\/h3>\n<li>\u9879\u76ee\u6982\u8ff0\u4e0e\u6838\u5fc3\u4ef7\u503c<\/li>\n<li>\u7cfb\u7edf\u67b6\u6784\u4e0e\u6a21\u5757\u5212\u5206<\/li>\n<li>\u534a\u8272\u8c03\u7b97\u6cd5\u539f\u7406\u4e0e\u5b9e\u73b0\u5bf9\u6bd4<\/li>\n<li>\u5d4c\u5165\u5f0f\u6df1\u5ea6\u4f18\u5316\u7b56\u7565<\/li>\n<li>\u516c\u5171\u57fa\u7840\u8bbe\u65bd\u89e3\u6790<\/li>\n<li>API \u8bbe\u8ba1\u4e0e\u7f16\u7a0b\u6a21\u578b<\/li>\n<li>\u865a\u62df\u6253\u5370\u673a\u9a8c\u8bc1\u4f53\u7cfb<\/li>\n<li>\u5de5\u7a0b\u89c4\u8303\u4e0e\u4ee3\u7801\u8d28\u91cf<\/li>\n<li>\u79fb\u690d\u6307\u5357\u4e0e\u96c6\u6210\u5efa\u8bae<\/li>\n<li>\u603b\u7ed3\u4e0e\u6280\u672f\u8bc4\u4ef7<\/li>\n<hr \/>\n<h3>1. \u9879\u76ee\u6982\u8ff0\u4e0e\u6838\u5fc3\u4ef7\u503c<\/h3>\n<p>\u70ed\u654f\u6253\u5370\u5934\u7684\u7269\u7406\u7279\u6027\u51b3\u5b9a\u4e86\u6bcf\u4e2a\u52a0\u70ed\u70b9\u4ec5\u6709 \u201c\u52a0\u70ed \/ \u4e0d\u52a0\u70ed\u201d \u4e24\u79cd\u72b6\u6001&#xff08;1bit&#xff09;\u3002\u8981\u5728\u70ed\u654f\u7eb8\u4e0a\u5448\u73b0\u8fde\u7eed\u7684\u7070\u5ea6\u7167\u7247&#xff0c;\u5fc5\u987b\u4f9d\u8d56 \u534a\u8272\u8c03&#xff08;Halftone&#xff09; \u6280\u672f&#xff0c;\u901a\u8fc7\u63a7\u5236\u58a8\u70b9\/\u70ed\u70b9\u7684\u758f\u5bc6\u5206\u5e03\u6765\u6a21\u62df\u4eba\u773c\u611f\u77e5\u7684\u7070\u5ea6\u5c42\u6b21\u3002<\/p>\n<p>s_y2printer \u5e76\u975e\u7b80\u5355\u7684\u7b97\u6cd5\u79fb\u690d&#xff0c;\u800c\u662f\u9488\u5bf9\u8d44\u6e90\u53d7\u9650\u7684\u5d4c\u5165\u5f0f MCU \u5e73\u53f0 \u8fdb\u884c\u4e86 \u5168\u94fe\u8def\u6df1\u5ea6\u4f18\u5316 \u7684\u5de5\u4e1a\u7ea7\u7b97\u6cd5\u5e93\u3002\u5176\u6838\u5fc3\u4ef7\u503c\u4f53\u73b0\u5728&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6\u4f20\u7edf PC \u65b9\u6848s_y2printer \u5d4c\u5165\u5f0f\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>\u8fd0\u7b97\u7c7b\u578b<\/td>\n<td>\u6d6e\u70b9\u8fd0\u7b97&#xff0c;\u7cbe\u5ea6\u9ad8\u4f46\u6d88\u8017\u5927<\/td>\n<td>\u7eaf\u5b9a\u70b9\u6570\u8fd0\u7b97 &#xff0c;\u5168\u7a0b\u65e0\u6d6e\u70b9&#xff0c;\u9664\u6cd5\u4f18\u5316\u4e3a\u4e58\u6cd5&#043;\u79fb\u4f4d<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58\u6a21\u578b<\/td>\n<td>\u5168\u5e27\u7f13\u51b2&#xff08;width \u00d7 height&#xff09;<\/td>\n<td>\u6d41\u5f0f\u884c\u5904\u7406 &#xff0c;\u5185\u5b58\u5360\u7528\u4ec5\u4e0e\u56fe\u50cf\u5bbd\u5ea6\u76f8\u5173&#xff08;\u9ad8\u5ea6\u65e0\u5173&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u7070\u5ea6\u8868\u73b0<\/td>\n<td>\u7eaf 1bit \u4e8c\u503c\u5316<\/td>\n<td>\u591a\u7070\u5ea6\u5c42\u7ea7\u5957\u5370&#xff08;Multi-level&#xff09; &#xff0c;\u5206\u89e3\u591a\u5c42\u591a\u6b21\u6253\u5370<\/td>\n<\/tr>\n<tr>\n<td>\u626b\u63cf\u65b9\u5f0f<\/td>\n<td>\u5355\u5411\u626b\u63cf&#xff0c;\u6613\u4ea7\u751f\u65b9\u5411\u6027\u7eb9\u7406<\/td>\n<td>\u86c7\u5f62\u626b\u63cf&#xff08;Serpentine&#xff09; &#xff0c;\u5947\u5076\u884c\u4ea4\u66ff\u65b9\u5411&#xff0c;\u6d88\u9664\u7eb9\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u56fe\u50cf\u589e\u5f3a<\/td>\n<td>\u4f9d\u8d56\u5916\u90e8\u56fe\u50cf\u5904\u7406\u5e93<\/td>\n<td>\u5185\u7f6e \u5bf9\u6bd4\u5ea6\u589e\u5f3a &#043; \u4f3d\u9a6c\u6821\u6b63 &#xff0c;\u9002\u914d\u4e0d\u540c\u7eb8\u5f20\u4e0e\u6d53\u5ea6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>2. \u7cfb\u7edf\u67b6\u6784\u4e0e\u6a21\u5757\u5212\u5206<\/h3>\n<p>\u9879\u76ee\u91c7\u7528\u5206\u5c42\u89e3\u8026\u7684\u67b6\u6784\u8bbe\u8ba1&#xff0c;\u7b97\u6cd5\u5185\u6838\u4e0e\u9a8c\u8bc1\u5de5\u5177\u5206\u79bb&#xff0c;\u786e\u4fdd\u5d4c\u5165\u5f0f\u7aef\u4ee3\u7801\u7684\u7eaf\u51c0\u6027\u3002<\/p>\n<p>y2printer\/<br \/>\n\u251c\u2500\u2500 src\/<br \/>\n\u2502   \u251c\u2500\u2500 dither_process\/              # \u534a\u8272\u8c03\u7b97\u6cd5\u6838\u5fc3\u5e93<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 dither_common.{c,h}    # \u516c\u5171\u57fa\u7840\u8bbe\u65bd&#xff08;\u589e\u5f3a\/\u6620\u5c04\/\u4f4d\u6253\u5305&#xff09;<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 fs_process\/            # Floyd-Steinberg \u7b97\u6cd5<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 atkinson_process\/      # Atkinson \u7b97\u6cd5<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 jjn_process\/           # Jarvis-Judice-Ninke \u7b97\u6cd5<br \/>\n\u2502   \u2502   \u2514\u2500\u2500 stucki_process\/        # Stucki \u7b97\u6cd5<br \/>\n\u2502   \u2514\u2500\u2500 virtual_printer\/           # PC \u7aef\u865a\u62df\u6253\u5370\u673a&#xff08;BMP \u5408\u6210\u9a8c\u8bc1&#xff09;<br \/>\n\u251c\u2500\u2500 example\/                         # PC \u7aef\u7f16\u8bd1\u6d4b\u8bd5\u793a\u4f8b&#xff08;Makefile&#xff09;<br \/>\n\u251c\u2500\u2500 doc\/<br \/>\n\u2502   \u251c\u2500\u2500 developer_docs\/            # \u4ee3\u7801\u89c4\u8303 \/ Git \u89c4\u8303&#xff08;submodule&#xff09;<br \/>\n\u2502   \u2514\u2500\u2500 images\/                    # \u6548\u679c\u5bf9\u6bd4\u56fe<br \/>\n\u251c\u2500\u2500 LICENSE                          # MIT<br \/>\n\u2514\u2500\u2500 README.md<\/p>\n<h4>2.1 \u67b6\u6784\u8bbe\u8ba1\u4eae\u70b9<\/h4>\n<ul>\n<li>\u7b97\u6cd5\u63d2\u4ef6\u5316: \u56db\u79cd\u7b97\u6cd5\u62e5\u6709\u5b8c\u5168\u4e00\u81f4\u7684\u63a5\u53e3\u8303\u5f0f&#xff08;xxx_create \/ xxx_process_row \/ xxx_destroy&#xff09;&#xff0c;\u53ef\u5728\u7f16\u8bd1\u671f\u6216\u8fd0\u884c\u671f\u65e0\u7f1d\u5207\u6362\u3002<\/li>\n<li>\u96f6\u8026\u5408\u4f9d\u8d56: \u6838\u5fc3\u5e93\u4ec5\u4f9d\u8d56\u6807\u51c6 C \u5e93 stdint.h\u3001stdlib.h\u3001string.h&#xff0c;\u7b26\u5408 C11 \u6807\u51c6&#xff0c;\u65e0\u5e73\u53f0\u7ed1\u5b9a\u4ee3\u7801\u3002<\/li>\n<li>\u5806\u7b56\u7565\u53ef\u63a7: \u52a8\u6001\u5185\u5b58\u4ec5\u5728 *_create() \u4e2d\u4e00\u6b21\u6027\u5206\u914d&#xff0c;\u8fd0\u884c\u65f6\u5904\u7406\u8fc7\u7a0b\u96f6\u5206\u914d&#xff1b;\u5bf9\u4e8e\u65e0\u5806&#xff08;heap-less&#xff09;\u7684\u786c\u5b9e\u65f6\u7cfb\u7edf&#xff0c;\u53ef\u8f7b\u677e\u6539\u9020\u4e3a\u9759\u6001\u5b9e\u4f8b\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>3. \u534a\u8272\u8c03\u7b97\u6cd5\u539f\u7406\u4e0e\u5b9e\u73b0\u5bf9\u6bd4<\/h3>\n<p>\u9879\u76ee\u5b9e\u73b0\u4e86\u56db\u79cd\u7ecf\u5178\u7684 \u8bef\u5dee\u6269\u6563&#xff08;Error Diffusion&#xff09; \u7b97\u6cd5\u3002\u5b83\u4eec\u5171\u4eab\u76f8\u540c\u7684\u6d41\u5f0f\u5904\u7406\u6846\u67b6&#xff0c;\u4f46\u5728\u6269\u6563\u6838\u3001\u7cfb\u6570\u5b9a\u70b9\u5316\u65b9\u5f0f\u3001\u5185\u5b58\u5360\u7528\u4e0a\u5b58\u5728\u5dee\u5f02\u3002<\/p>\n<h4>3.1 \u7b97\u6cd5\u6269\u6563\u6838\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u7b97\u6cd5\u6269\u6563\u6838&#xff08;X \u4e3a\u5f53\u524d\u50cf\u7d20&#xff09;\u7cfb\u6570\u7279\u70b9\u89c6\u89c9\u6548\u679c<\/tr>\n<tbody>\n<tr>\n<td>Floyd-Steinberg<\/td>\n<td>X 7\/16  3\/16 5\/16 1\/16<\/td>\n<td>\u603b\u548c 16&#xff0c;\u5b8c\u7f8e\u5b9a\u70b9\u5316&#xff08;&gt;&gt;4&#xff09;<\/td>\n<td>\u6700\u7ecf\u5178&#xff0c;\u7ec6\u8282\u9510\u5229&#xff0c;\u5bf9\u6bd4\u5ea6\u9ad8<\/td>\n<\/tr>\n<tr>\n<td>Atkinson<\/td>\n<td>X 1\/8 1\/8  1\/8 1\/8 1\/8  1\/8<\/td>\n<td>6 \u4e2a\u4f4d\u7f6e\u5404 1\/8&#xff0c;\u4fdd\u7559 25% \u8bef\u5dee<\/td>\n<td>\u67d4\u548c\u80f6\u7247\u611f&#xff0c;\u6697\u90e8\u7ec6\u8282\u4e30\u5bcc<\/td>\n<\/tr>\n<tr>\n<td>JJN<\/td>\n<td>X 7 5  3 5 7 5 3  1 3 5 3 1 (\u00f748)<\/td>\n<td>\u603b\u548c 48&#xff0c;\u6269\u6563\u8303\u56f4\u5927&#xff08;3\u884c\u00d75\u5217&#xff09;<\/td>\n<td>\u8fc7\u6e21\u6781\u5e73\u6ed1&#xff0c;\u9002\u5408\u4eba\u50cf<\/td>\n<\/tr>\n<tr>\n<td>Stucki<\/td>\n<td>X 8 4  2 4 8 4 2  1 2 4 2 1 (\u00f742)<\/td>\n<td>\u603b\u548c 42&#xff0c;\u7c7b\u4f3c JJN \u4f46\u6743\u91cd\u66f4\u96c6\u4e2d<\/td>\n<td>\u8fb9\u7f18\u66f4\u6e05\u6670&#xff0c;\u6587\u5b57\u8868\u73b0\u597d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.2 \u5b9a\u70b9\u6570\u5b9e\u73b0\u5dee\u5f02<\/h4>\n<p>\u4e0d\u540c\u7b97\u6cd5\u7684\u9664\u6570\u51b3\u5b9a\u4e86\u5b9a\u70b9\u5316\u7b56\u7565\u7684\u4f18\u52a3&#xff0c;\u9879\u76ee\u9488\u5bf9\u6bcf\u79cd\u7b97\u6cd5\u505a\u4e86 \u5b9a\u5236\u5316\u9664\u6cd5\u4f18\u5316 &#xff1a;<\/p>\n<ul>\n<li>Floyd-Steinberg : \u5206\u6bcd\u4e3a 16&#xff0c;\u76f4\u63a5\u7528\u7b97\u672f\u53f3\u79fb &gt;&gt; 4&#xff0c;\u96f6\u6210\u672c\u3002<\/li>\n<li>Atkinson : \u5206\u6bcd\u4e3a 8&#xff0c;\u7528 &gt;&gt; 3&#xff0c;\u4e14\u6240\u6709\u6269\u6563\u4f4d\u7f6e\u7cfb\u6570\u76f8\u540c&#xff0c;\u4ee3\u7801\u6781\u7b80\u3002<\/li>\n<li>JJN : \u5206\u6bcd\u4e3a 48&#xff0c;\u65e0\u6cd5\u88ab 2 \u7684\u5e42\u6574\u9664\u3002\u9879\u76ee\u91c7\u7528\u5b9a\u70b9\u4e58\u6cd5\u8fd1\u4f3c&#xff1a;<span class=\"token comment\">\/\/ value \/ 48 \u2248 (value * 5461) &gt;&gt; 18<\/span><br \/>\n<span class=\"token comment\">\/\/ 5461\/2^18 \u2248 1\/48, \u8bef\u5dee &lt; 0.001%<\/span><br \/>\n<span class=\"token keyword\">static<\/span> <span class=\"token keyword\">inline<\/span> <span class=\"token class-name\">int32_t<\/span> <span class=\"token function\">prv_div_by_48<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">int32_t<\/span> value<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">(<\/span>value <span class=\"token operator\">*<\/span> <span class=\"token number\">5461<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span> <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token number\">17<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&gt;&gt;<\/span> <span class=\"token number\">18<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<li>Stucki : \u5206\u6bcd\u4e3a 42&#xff0c;README \u63d0\u5230\u53ef\u7528\u4e58\u6cd5&#043;\u79fb\u4f4d\u8fd1\u4f3c&#xff08;39135 &gt;&gt; 22&#xff09;&#xff0c;\u6216\u5229\u7528\u90e8\u5206 MCU \u7684\u5feb\u901f\u786c\u4ef6\u9664\u6cd5\u3002<\/li>\n<\/ul>\n<h4>3.3 \u5185\u5b58\u5360\u7528\u5bf9\u6bd4&#xff08;\u4ee5 384 \u50cf\u7d20\u5bbd\u4e3a\u4f8b&#xff09;<\/h4>\n<table>\n<tr>\u7b97\u6cd5\u8bef\u5dee\u7f13\u51b2\u5de5\u4f5c\u884c\u7f13\u51b2\u5408\u8ba1&#xff08;\u7ea6&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>Floyd-Steinberg<\/td>\n<td>2 \u884c \u00d7 386 \u00d7 4B<\/td>\n<td>768 B<\/td>\n<td>~3.8 KB<\/td>\n<\/tr>\n<tr>\n<td>Atkinson \/ JJN \/ Stucki<\/td>\n<td>3 \u884c \u00d7 388 \u00d7 4B<\/td>\n<td>768 B<\/td>\n<td>~5.4 KB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5173\u952e\u8bbe\u8ba1: \u8bef\u5dee\u7f13\u51b2\u4f7f\u7528 int32_t \u800c\u975e int16_t&#xff0c;\u867d\u7136\u589e\u52a0\u5c11\u91cf\u5185\u5b58&#xff0c;\u4f46\u5f7b\u5e95\u907f\u514d\u4e86\u957f\u65f6\u95f4\u7d2f\u79ef\u540e\u7684\u8bef\u5dee\u6ea2\u51fa\u622a\u65ad&#xff0c;\u4fdd\u7559\u4e86\u66f4\u591a\u6697\u90e8\u7ec6\u8282\u3002<\/p>\n<h4>3.4 \u6e10\u53d8\u6548\u679c\u5bf9\u6bd4<\/h4>\n<p>\u4e0b\u56fe\u662f 384\u00d7240 \u6e10\u53d8\u6d4b\u8bd5\u56fe\u7ecf 16 \u5c42\u7ea7\u5957\u5370\u540e&#xff0c;\u56db\u79cd\u7b97\u6cd5\u5728\u540c\u4e00\u8f93\u5165\u4e0a\u7684\u89c6\u89c9\u5dee\u5f02\u3002\u53ef\u76f4\u89c2\u770b\u5230 Floyd-Steinberg \u7ec6\u8282\u9510\u5229\u3001Atkinson \u67d4\u548c\u3001JJN \/ Stucki \u8fc7\u6e21\u5e73\u6ed1\u7684\u7279\u70b9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727164948-6a678c2c0e100.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h3>4. \u5d4c\u5165\u5f0f\u6df1\u5ea6\u4f18\u5316\u7b56\u7565<\/h3>\n<h4>4.1 \u6d41\u5f0f\u884c\u5904\u7406&#xff08;Streaming Row Processing&#xff09;<\/h4>\n<p>\u4f20\u7edf\u56fe\u50cf\u5904\u7406\u9700\u5b8c\u6574\u52a0\u8f7d\u56fe\u50cf\u5e27&#xff08;\u5982 384\u00d7240 \u7ea6 90KB&#xff09;&#xff0c;\u5bf9 RAM \u4ec5 20~64KB \u7684 MCU \u4e0d\u53ef\u63a5\u53d7\u3002s_y2printer \u91c7\u7528 \u6d41\u5f0f\u67b6\u6784 &#xff1a;<\/p>\n<ul>\n<li>\u4ec5\u9700 2~3 \u884c\u8bef\u5dee\u7f13\u51b2 &#043; 1 \u884c\u5de5\u4f5c\u7f13\u51b2&#xff08;work_row&#xff09;\u3002<\/li>\n<li>\u5904\u7406\u8fc7\u7a0b\u4e3a\u7eaf\u9010\u884c\u72b6\u6001\u673a&#xff1a;\u8f93\u5165\u4e00\u884c Y \u6570\u636e \u2192 \u8bef\u5dee\u6269\u6563 \u2192 \u8f93\u51fa 1bit \u6253\u5305\u6570\u636e\u3002<\/li>\n<li>\u53ef\u76f4\u63a5\u5bf9\u63a5 JPEG \u89e3\u7801\u5668\u9010\u884c\u8f93\u51fa\u6216\u6444\u50cf\u5934 DMA \u884c\u7f13\u51b2&#xff0c;\u5b9e\u73b0&#034;\u8fb9\u89e3\u7801\u3001\u8fb9\u6296\u52a8\u3001\u8fb9\u6253\u5370&#034;\u7684\u6d41\u6c34\u7ebf\u3002<\/li>\n<\/ul>\n<h4>4.2 \u86c7\u5f62\u626b\u63cf&#xff08;Serpentine Scanning&#xff09;<\/h4>\n<p>\u6807\u51c6\u8bef\u5dee\u6269\u6563\u4ece\u5de6\u5230\u53f3\u5355\u5411\u626b\u63cf\u65f6&#xff0c;\u8bef\u5dee\u603b\u662f\u5411\u53f3\u4e0b\u65b9\u4f20\u9012&#xff0c;\u4f1a\u4ea7\u751f\u660e\u663e\u7684\u65b9\u5411\u6027\u7eb9\u7406&#xff08;\u5982\u53f3\u4e0b\u503e\u659c\u7684&#034;\u98ce\u75d5&#034;&#xff09;\u3002<\/p>\n<p>s_y2printer \u652f\u6301 reverse \u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>\u5076\u6570\u884c&#xff1a;\u4ece\u5de6\u5230\u53f3\u5904\u7406\u3002<\/li>\n<li>\u5947\u6570\u884c&#xff1a;\u4ece\u53f3\u5230\u5de6\u5904\u7406&#xff0c;\u6269\u6563\u6838\u505a \u5de6\u53f3\u955c\u50cf \u3002<\/li>\n<\/ul>\n<p>\u5185\u90e8\u6253\u5305\u65f6\u6309\u53cd\u5411\u4f4d\u5e8f\u5199\u5165&#xff0c;\u5904\u7406\u5b8c\u6bd5\u540e\u8c03\u7528 dither_reverse_output_buffer() \u5c06\u4f4d\u5e8f\u6062\u590d\u4e3a\u6807\u51c6\u4ece\u5de6\u5230\u53f3\u7684\u4f4d\u56fe\u987a\u5e8f&#xff0c;\u786e\u4fdd\u6253\u5370\u673a\u786c\u4ef6\u65e0\u9700\u611f\u77e5\u626b\u63cf\u65b9\u5411\u3002<\/p>\n<h4>4.3 \u591a\u7070\u5ea6\u5c42\u7ea7\u5957\u5370&#xff08;Multi-level Dithering&#xff09;<\/h4>\n<p>\u70ed\u654f\u7eb8\u7684 1bit \u4e8c\u503c\u5316\u7070\u5ea6\u8868\u73b0\u6709\u9650\u3002\u9879\u76ee\u652f\u6301\u5c06\u540c\u4e00\u56fe\u50cf\u5206\u89e3\u4e3a level_count \u4e2a\u5c42\u7ea7&#xff0c;\u5bf9\u6bcf\u4e2a\u5c42\u7ea7\u5206\u522b\u505a\u6296\u52a8\u540e \u591a\u6b21\u5957\u5370 &#xff1a;<\/p>\n<p>cfg<span class=\"token punctuation\">.<\/span>level_count <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">16<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u5206 16 \u5c42<\/span><br \/>\ncfg<span class=\"token punctuation\">.<\/span>level_index <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ \u5f53\u524d\u5904\u7406\u7b2c 0 \u5c42<\/span><\/p>\n<ul>\n<li>\u6bcf\u5c42\u901a\u8fc7 dither_map_to_level() \u5c06 0~255 \u6620\u5c04\u5230\u8be5\u5c42\u7ea7\u7684\u6709\u6548\u7070\u5ea6\u533a\u95f4\u3002<\/li>\n<li>\u5c42\u7ea7\u8d8a\u9ad8&#xff0c;\u6253\u5370\u7684\u70b9\u8d8a\u5bc6\u96c6&#xff0c;\u53e0\u52a0\u540e\u53ef\u5728\u70ed\u654f\u7eb8\u4e0a\u83b7\u5f97\u8fdc\u8d85 1bit \u7684\u7070\u5ea6\u5c42\u6b21\u3002<\/li>\n<li>\u865a\u62df\u6253\u5370\u673a\u6a21\u5757\u53ef\u5c06\u591a\u5c42 1bit \u8f93\u51fa\u5408\u6210\u4e3a\u5355\u5f20 BMP \u9a8c\u8bc1\u6548\u679c\u3002<\/li>\n<\/ul>\n<h4>4.4 \u56fe\u50cf\u589e\u5f3a\u524d\u7f6e\u5904\u7406<\/h4>\n<p>\u5728\u8bef\u5dee\u6269\u6563\u524d&#xff0c;\u63d0\u4f9b\u4e24\u79cd\u5d4c\u5165\u5f0f\u53cb\u597d\u7684\u56fe\u50cf\u589e\u5f3a&#xff1a;<\/p>\n<li>\n<p>\u4f3d\u9a6c\u6821\u6b63&#xff08;Gamma Correction&#xff09; :<\/p>\n<ul>\n<li>\u9884\u8ba1\u7b97 256 \u5b57\u8282 LUT&#xff08;Look-Up Table&#xff09;&#xff0c;\u9ed8\u8ba4 \u03b3&#061;2.2\u3002<\/li>\n<li>\u63d0\u4eae\u6697\u90e8\u7ec6\u8282&#xff0c;\u8865\u507f\u70ed\u654f\u7eb8\u4f4e\u7070\u5ea6\u54cd\u5e94\u4e0d\u4f73\u7684\u7269\u7406\u7279\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5bf9\u6bd4\u5ea6\u589e\u5f3a :<\/p>\n<ul>\n<li>\u56db\u7ea7\u5f3a\u5ea6&#xff08;None \/ Low \/ Medium \/ High&#xff09;\u3002<\/li>\n<li>\u4f7f\u7528\u5b9a\u70b9\u6570 Q8 \u683c\u5f0f&#xff1a;factor &#061; 256, 286, 320, 358&#xff08;\u5bf9\u5e94 1.0x, 1.12x, 1.25x, 1.4x&#xff09;\u3002<\/li>\n<li>\u516c\u5f0f&#xff1a;adjusted &#061; 128 &#043; ((val &#8211; 128) * factor) \/ 256&#xff0c;\u9632\u6b62\u6ea2\u51fa\u5e76\u505a\u9971\u548c\u622a\u65ad\u3002<\/li>\n<\/ul>\n<\/li>\n<hr \/>\n<h3>5. \u516c\u5171\u57fa\u7840\u8bbe\u65bd\u89e3\u6790<\/h3>\n<p>dither_common.{c,h} \u4f5c\u4e3a\u5404\u7b97\u6cd5\u7684\u5171\u4eab\u5e95\u5ea7&#xff0c;\u907f\u514d\u4e86\u91cd\u590d\u5b9e\u73b0&#xff0c;\u4f53\u73b0\u4e86\u826f\u597d\u7684\u5de5\u7a0b\u62bd\u8c61\u3002<\/p>\n<h4>5.1 \u6838\u5fc3\u6570\u636e\u7ed3\u6784<\/h4>\n<p><span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">dither_config<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">uint8_t<\/span> threshold<span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/\/ \u4e8c\u503c\u5316\u9608\u503c&#xff08;\u9ed8\u8ba4 128&#xff09;<\/span><br \/>\n    <span class=\"token class-name\">uint8_t<\/span> contrast_level<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u5bf9\u6bd4\u5ea6\u7ea7\u522b 0-3<\/span><br \/>\n    <span class=\"token class-name\">uint8_t<\/span> enable_gamma<span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ \u662f\u5426\u542f\u7528\u4f3d\u9a6c\u6821\u6b63<\/span><br \/>\n    <span class=\"token class-name\">uint8_t<\/span> gamma_val<span class=\"token punctuation\">;<\/span>      <span class=\"token comment\">\/\/ \u4f3d\u9a6c\u503c\u00d710&#xff08;\u5982 22 \u8868\u793a 2.2&#xff09;<\/span><br \/>\n    <span class=\"token class-name\">uint8_t<\/span> level_index<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/\/ \u5f53\u524d\u5c42\u7ea7\u7d22\u5f15<\/span><br \/>\n    <span class=\"token class-name\">uint8_t<\/span> level_count<span class=\"token punctuation\">;<\/span>    <span class=\"token comment\">\/\/ \u603b\u5c42\u7ea7\u6570<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8bbe\u8ba1\u6280\u5de7: \u5404\u7b97\u6cd5\u7684\u79c1\u6709 xxx_config \u7ed3\u6784\u4f53\u5b57\u6bb5\u5e03\u5c40\u4e0e dither_config \u5b8c\u5168\u4e00\u81f4&#xff0c;\u5141\u8bb8\u901a\u8fc7 \u7c7b\u578b\u53cc\u5173&#xff08;type punning&#xff09; \u76f4\u63a5\u590d\u7528\u516c\u5171\u903b\u8f91&#xff0c;\u5982&#xff1a;<\/p>\n<p> <span class=\"token function\">dither_apply_enhancement<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">const<\/span> <span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">dither_config<\/span> <span class=\"token operator\">*<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">&amp;<\/span>fs<span class=\"token operator\">-&gt;<\/span>config<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>5.2 \u4f4d\u6253\u5305\u4e0e\u5b57\u8282\u5e8f\u5904\u7406<\/h4>\n<p>\u70ed\u654f\u6253\u5370\u673a\u901a\u5e38\u8981\u6c42\u6570\u636e\u6309 MSB \u4f18\u5148 &#xff08;Most Significant Bit First&#xff09;\u6253\u5305&#xff0c;\u5373\u50cf\u7d20 0 \u5bf9\u5e94\u5b57\u8282\u6700\u9ad8\u4f4d\u3002<\/p>\n<p><span class=\"token keyword\">void<\/span> <span class=\"token function\">dither_pack_bit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint8_t<\/span> <span class=\"token operator\">*<\/span>out_byte<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">uint8_t<\/span> <span class=\"token operator\">*<\/span>out_bit<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">uint8_t<\/span> <span class=\"token operator\">*<\/span>out_idx<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">uint8_t<\/span> bit<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u7ef4\u62a4 out_bit \u8ba1\u6570\u5668&#xff08;0~7&#xff09;&#xff0c;\u6bcf\u6ee1 8 \u4f4d\u81ea\u52a8\u63a8\u8fdb out_idx\u3002<\/li>\n<li>\u86c7\u5f62\u626b\u63cf\u53cd\u5411\u884c\u5904\u7406\u5b8c\u6bd5\u540e&#xff0c;\u901a\u8fc7 dither_reverse_bits() \u5bf9\u6574\u884c\u5b57\u8282\u505a\u4f4d\u5e8f\u53cd\u8f6c&#xff0c;\u4fdd\u8bc1\u7269\u7406\u6253\u5370\u987a\u5e8f\u4e0e\u56fe\u50cf\u5750\u6807\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>6. API \u8bbe\u8ba1\u4e0e\u7f16\u7a0b\u6a21\u578b<\/h3>\n<p>\u56db\u79cd\u7b97\u6cd5\u7684 API \u9075\u5faa \u5b8c\u5168\u4e00\u81f4\u7684\u5951\u7ea6\u5f0f\u63a5\u53e3 &#xff0c;\u964d\u4f4e\u4e86\u7528\u6237\u7684\u5fc3\u667a\u8d1f\u62c5\u3002<\/p>\n<h4>6.1 \u6807\u51c6\u4f7f\u7528\u8303\u5f0f<\/h4>\n<p>\u4ee5 Floyd-Steinberg \u4e3a\u4f8b&#xff08;\u5176\u4f59\u7b97\u6cd5\u4ec5\u66ff\u6362\u524d\u7f00 fs_ \u2192 atkinson_ \/ jjn_ \/ stucki_&#xff09;&#xff1a;<\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&#034;dither_process\/fs_process\/fs_process.h&#034;<\/span><\/span><\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">WIDTH<\/span>        <span class=\"token expression\"><span class=\"token number\">384<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">OUT_BUF_SIZE<\/span> <span class=\"token expression\"><span class=\"token punctuation\">(<\/span>WIDTH <span class=\"token operator\">\/<\/span> <span class=\"token number\">8<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><\/span><\/span><\/p>\n<p><span class=\"token keyword\">static<\/span> <span class=\"token class-name\">uint8_t<\/span> out_buf<span class=\"token punctuation\">[<\/span>OUT_BUF_SIZE<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/* 1. \u521b\u5efa\u5b9e\u4f8b&#xff08;\u6307\u5b9a\u5c42\u7ea7&#xff09; *\/<\/span><br \/>\n<span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">fs_config<\/span> cfg <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">fs_get_default_config<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\ncfg<span class=\"token punctuation\">.<\/span>level_index <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\ncfg<span class=\"token punctuation\">.<\/span>level_count <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">16<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">struct<\/span> <span class=\"token class-name\">fs_dither<\/span> <span class=\"token operator\">*<\/span>fs <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">fs_create_with_config<\/span><span class=\"token punctuation\">(<\/span>WIDTH<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>cfg<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/* 2. \u9010\u884c\u6d41\u5f0f\u5904\u7406&#xff08;\u86c7\u5f62\u626b\u63cf&#xff1a;\u5947\u6570\u884c reverse&#061;1&#xff09; *\/<\/span><br \/>\n<span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token class-name\">uint16_t<\/span> row <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> row <span class=\"token operator\">&lt;<\/span> height<span class=\"token punctuation\">;<\/span> row<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">fs_reset<\/span><span class=\"token punctuation\">(<\/span>fs<span class=\"token punctuation\">,<\/span> out_buf<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">fs_process_row<\/span><span class=\"token punctuation\">(<\/span>fs<span class=\"token punctuation\">,<\/span> y_data<span class=\"token punctuation\">[<\/span>row<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> row <span class=\"token operator\">&amp;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token class-name\">uint16_t<\/span> bytes <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">fs_get_output_bytes<\/span><span class=\"token punctuation\">(<\/span>fs<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">thermal_print_send_line<\/span><span class=\"token punctuation\">(<\/span>cfg<span class=\"token punctuation\">.<\/span>level_index<span class=\"token punctuation\">,<\/span> out_buf<span class=\"token punctuation\">,<\/span> bytes<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\">\/* 3. \u91ca\u653e\u8d44\u6e90 *\/<\/span><br \/>\n<span class=\"token function\">fs_destroy<\/span><span class=\"token punctuation\">(<\/span>fs<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>6.2 \u72b6\u6001\u673a\u751f\u547d\u5468\u671f<\/h4>\n<p>[create] \u2500\u2500\u25ba [reset] \u2500\u2500\u25ba [process_row] \u00d7 N \u2500\u2500\u25ba [destroy]<br \/>\n                \u25b2<br \/>\n                \u2514\u2500\u2500 \u5904\u7406\u4e0b\u4e00\u5e27\u56fe\u50cf\u524d\u53ef\u91cd\u590d\u8c03\u7528<\/p>\n<ul>\n<li>*_create(): \u4e00\u6b21\u6027\u5206\u914d\u6240\u6709\u52a8\u6001\u5185\u5b58&#xff08;\u8bef\u5dee\u7f13\u51b2 &#043; \u5de5\u4f5c\u7f13\u51b2&#xff09;\u3002<\/li>\n<li>*_reset(): \u6e05\u96f6\u8bef\u5dee\u7f13\u51b2&#xff0c;\u7ed1\u5b9a\u65b0\u7684\u8f93\u51fa\u7f13\u51b2\u533a&#xff0c;\u51c6\u5907\u5904\u7406\u65b0\u56fe\u50cf\u3002<\/li>\n<li>*_process_row(): \u6838\u5fc3\u72b6\u6001\u63a8\u8fdb&#xff0c;\u5185\u90e8\u81ea\u52a8\u7ba1\u7406\u8bef\u5dee\u884c\u4ea4\u6362\u3002<\/li>\n<li>*_destroy(): \u91ca\u653e\u5806\u5185\u5b58&#xff0c;\u5e76\u7f6e\u7a7a\u6307\u9488&#xff08;\u9632\u5fa1\u6027\u7f16\u7a0b&#xff09;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>7. \u865a\u62df\u6253\u5370\u673a\u9a8c\u8bc1\u4f53\u7cfb<\/h3>\n<p>virtual_printer\/ \u6a21\u5757\u662f\u9879\u76ee\u7684\u4e00\u5927\u5de5\u7a0b\u4eae\u70b9&#xff0c;\u89e3\u51b3\u4e86\u5d4c\u5165\u5f0f\u7b97\u6cd5 \u201c\u65e0\u786c\u4ef6\u5373\u65e0\u6cd5\u9a8c\u8bc1\u201d \u7684\u75db\u70b9\u3002<\/p>\n<ul>\n<li>\u529f\u80fd: \u5c06\u591a\u5c42\u7ea7 1bit \u8f93\u51fa\u5408\u6210\u4e3a\u6807\u51c6 BMP \u7070\u5ea6\u56fe\u50cf\u3002<\/li>\n<li>\u539f\u7406: \u5bf9\u6bcf\u4e2a\u5c42\u7ea7\u7684 1bit \u6570\u636e\u6309\u6743\u91cd\u53e0\u52a0&#xff0c;\u6a21\u62df\u70ed\u654f\u7eb8\u4e0a\u7684\u58a8\u70b9\u7d2f\u79ef\u6548\u679c\u3002<\/li>\n<li>\u4ef7\u503c: \u5f00\u53d1\u8005\u53ef\u5728 PC \u7aef\u901a\u8fc7 make run-all \u4e00\u952e\u5bf9\u6bd4\u56db\u79cd\u7b97\u6cd5\u5728\u540c\u4e00\u6d4b\u8bd5\u56fe\u4e0a\u7684\u8868\u73b0&#xff0c;\u65e0\u9700\u8fde\u63a5\u5b9e\u4f53\u6253\u5370\u673a\u3002<\/li>\n<\/ul>\n<h4>7.1 PC \u7aef\u5feb\u901f\u9a8c\u8bc1<\/h4>\n<p><span class=\"token builtin class-name\">cd<\/span> example<br \/>\n<span class=\"token function\">make<\/span>            <span class=\"token comment\"># \u7f16\u8bd1<\/span><br \/>\n<span class=\"token function\">make<\/span> run-all    <span class=\"token comment\"># \u8fd0\u884c\u5168\u90e8 4 \u79cd\u7b97\u6cd5\u7684\u6e10\u53d8 &#043; \u771f\u5b9e\u6570\u636e\u6d4b\u8bd5<\/span><br \/>\n<span class=\"token comment\"># \u751f\u6210 output_*.bmp \u7ed3\u679c\u6587\u4ef6<\/span><\/p>\n<h4>7.2 \u771f\u5b9e\u56fe\u50cf\u9a8c\u8bc1<\/h4>\n<p>\u4ee5\u4e0b\u5206\u522b\u4e3a\u771f\u5b9e\u6d4b\u8bd5\u56fe\u539f\u56fe&#xff0c;\u4ee5\u53ca\u56db\u79cd\u7b97\u6cd5\u7ecf\u865a\u62df\u6253\u5370\u673a\u5408\u6210\u540e\u7684\u8f93\u51fa\u5bf9\u6bd4\u3002\u53ef\u89c1\u4e0d\u540c\u7b97\u6cd5\u5728\u771f\u5b9e\u7167\u7247\u4e0a\u7684\u8d28\u611f\u5dee\u5f02&#xff1a;Floyd-Steinberg \u5bf9\u6bd4\u5f3a\u70c8&#xff0c;Atkinson \u6697\u90e8\u5c42\u6b21\u4e30\u5bcc&#xff0c;JJN \/ Stucki \u8fc7\u6e21\u66f4\u81ea\u7136\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727164948-6a678c2c4734a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727164948-6a678c2c603b1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h3>8. \u5de5\u7a0b\u89c4\u8303\u4e0e\u4ee3\u7801\u8d28\u91cf<\/h3>\n<p>\u9879\u76ee\u901a\u8fc7 doc\/developer_docs&#xff08;git submodule \u5f15\u5165&#xff09;\u5f3a\u5236\u63a8\u884c\u5f00\u53d1\u89c4\u8303&#xff0c;\u4f53\u73b0\u4e13\u4e1a\u8f6f\u4ef6\u5de5\u7a0b\u7d20\u517b&#xff1a;<\/p>\n<ul>\n<li>C \u8bed\u8a00\u4ee3\u7801\u7f16\u5199\u89c4\u8303: \u547d\u540d\u89c4\u5219\u3001\u7f29\u8fdb\u3001\u6ce8\u91ca Doxygen \u98ce\u683c\u3001\u9632\u5fa1\u6027\u7f16\u7a0b\u3002<\/li>\n<li>Git \u63d0\u4ea4\u4fe1\u606f\u89c4\u8303: Conventional Commits \u98ce\u683c&#xff0c;\u4fbf\u4e8e\u81ea\u52a8\u751f\u6210 CHANGELOG\u3002<\/li>\n<li>Git \u5206\u652f\u7ba1\u7406\u89c4\u8303: \u57fa\u4e8e Git Flow \u6216\u7c7b\u4f3c\u6a21\u578b\u7684\u5206\u652f\u7b56\u7565\u3002<\/li>\n<\/ul>\n<h4>8.1 \u4ee3\u7801\u8d28\u91cf\u4eae\u70b9<\/h4>\n<li>\u9632\u5fa1\u6027\u7f16\u7a0b: \u6240\u6709\u516c\u5171 API \u5165\u53e3\u5747\u8fdb\u884c NULL \u6307\u9488\u68c0\u67e5\u3002<\/li>\n<li>\u5185\u5b58\u5b89\u5168: destroy \u540e\u663e\u5f0f\u7f6e\u7a7a\u6307\u9488&#xff0c;\u907f\u514d\u60ac\u5782\u6307\u9488&#xff1b;calloc \u521d\u59cb\u5316\u907f\u514d\u810f\u6570\u636e\u3002<\/li>\n<li>\u65e0 VLA&#xff08;Variable Length Array&#xff09;: \u4f7f\u7528 calloc \u5206\u914d work_row&#xff0c;\u517c\u5bb9\u9700\u8981\u56fa\u5b9a\u6808\u7a7a\u95f4\u7684\u786c\u5b9e\u65f6\u7cfb\u7edf\u3002<\/li>\n<li>\u5185\u8054\u4f18\u5316: \u6838\u5fc3\u50cf\u7d20\u5904\u7406\u51fd\u6570\u6807\u8bb0\u4e3a static inline&#xff0c;\u786e\u4fdd\u5728 -O2 \u4f18\u5316\u4e0b\u5c55\u5f00&#xff0c;\u6d88\u9664\u51fd\u6570\u8c03\u7528\u5f00\u9500\u3002<\/li>\n<hr \/>\n<h3>9. \u79fb\u690d\u6307\u5357\u4e0e\u96c6\u6210\u5efa\u8bae<\/h3>\n<h4>9.1 \u76f4\u63a5\u96c6\u6210<\/h4>\n<p>\u5c06 src\/dither_process\/ \u76ee\u5f55\u6574\u4f53\u590d\u5236\u5230\u76ee\u6807\u5de5\u7a0b\u7684\u6e90\u7801\u6811&#xff0c;\u5934\u6587\u4ef6\u8def\u5f84\u52a0\u5165\u7f16\u8bd1\u5668\u7684 -I \u9009\u9879\u5373\u53ef\u3002<\/p>\n<h4>9.2 \u65e0\u5806&#xff08;Heap-less&#xff09;\u6539\u9020<\/h4>\n<p>\u82e5\u76ee\u6807\u7cfb\u7edf\u7981\u6b62\u52a8\u6001\u5185\u5b58&#xff08;\u5982\u67d0\u4e9b\u5b89\u5168\u5173\u952e\u578b MCU&#xff09;&#xff0c;\u53ef\u6309\u4ee5\u4e0b\u6b65\u9aa4\u6539\u9020&#xff1a;<\/p>\n<li>\u5c06 struct fs_dither \u6539\u4e3a\u5168\u5c40\u9759\u6001\u53d8\u91cf\u6216\u4f20\u5165\u5916\u90e8\u7f13\u51b2\u533a\u3002<\/li>\n<li>\u5c06 *_create() \u6539\u9020\u4e3a *_init()&#xff0c;\u63a5\u6536\u5916\u90e8\u9884\u5206\u914d\u7684 err_curr\u3001err_next\u3001work_row \u6307\u9488\u3002<\/li>\n<li>\u79fb\u9664 stdlib.h \u4f9d\u8d56\u3002<\/li>\n<h4>9.3 \u4e0e JPEG \u89e3\u7801\u5668\u5bf9\u63a5<\/h4>\n<p>\u7531\u4e8e\u63a5\u53e3\u4e3a\u9010\u884c\u6d41\u5f0f&#xff0c;\u53ef\u76f4\u63a5\u5bf9\u63a5 libjpeg \u7684 jpeg_read_scanlines() \u6216\u786c\u4ef6 JPEG \u89e3\u7801\u5668\u7684\u884c\u4e2d\u65ad&#xff1a;<\/p>\n<p><span class=\"token keyword\">while<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token function\">jpeg_read_scanlines<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>cinfo<span class=\"token punctuation\">,<\/span> buffer<span class=\"token punctuation\">,<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ buffer[0] \u5373\u4e3a Y \u5206\u91cf\u884c\u6570\u636e<\/span><br \/>\n    <span class=\"token function\">fs_process_row<\/span><span class=\"token punctuation\">(<\/span>fs<span class=\"token punctuation\">,<\/span> buffer<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> row <span class=\"token operator\">&amp;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    row<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<hr \/>\n<h3>10. \u603b\u7ed3\u4e0e\u6280\u672f\u8bc4\u4ef7<\/h3>\n<h4>10.1 \u4f18\u52bf<\/h4>\n<ul>\n<li>\u7b97\u6cd5\u5168\u9762: \u8986\u76d6\u4ece\u5feb\u901f&#xff08;FS&#xff09;\u5230\u9ad8\u8d28\u91cf&#xff08;JJN\/Stucki&#xff09;\u7684\u5b8c\u6574\u7b97\u6cd5\u8c31\u7cfb\u3002<\/li>\n<li>\u6781\u81f4\u4f18\u5316: \u5b9a\u70b9\u5316\u3001\u6d41\u5f0f\u5904\u7406\u3001\u86c7\u5f62\u626b\u63cf\u3001\u591a\u5c42\u7ea7\u5957\u5370&#xff0c;\u6bcf\u4e00\u5904\u90fd\u4f53\u73b0\u4e86\u5bf9\u5d4c\u5165\u5f0f\u8d44\u6e90\u7ea6\u675f\u7684\u6df1\u523b\u7406\u89e3\u3002<\/li>\n<li>\u5de5\u7a0b\u6210\u719f: \u4e00\u81f4\u7684 API \u62bd\u8c61\u3001\u5b8c\u5584\u7684 PC \u7aef\u9a8c\u8bc1\u4f53\u7cfb\u3001\u89c4\u8303\u7684\u6587\u6863\u4e0e\u4ee3\u7801\u6807\u51c6&#xff0c;\u53ef\u76f4\u63a5\u7528\u4e8e\u5546\u4e1a\u4ea7\u54c1\u3002<\/li>\n<\/ul>\n<h4>10.2 \u9002\u7528\u573a\u666f<\/h4>\n<ul>\n<li>\u4fbf\u643a\u5f0f\u70ed\u654f\u7167\u7247\u6253\u5370\u673a&#xff08;\u5982\u53e3\u888b\u6253\u5370\u673a\u3001\u9519\u9898\u6253\u5370\u673a&#xff09;\u3002<\/li>\n<li>\u6807\u7b7e\u6253\u5370\u673a\u7684\u9ad8\u5206\u8fa8\u7387\u56fe\u7247\u6253\u5370\u6a21\u5f0f\u3002<\/li>\n<li>\u4efb\u4f55\u9700\u8981\u5c06\u7070\u5ea6\u56fe\u50cf\u8f6c\u6362\u4e3a 1bit \u5e76\u8ffd\u6c42\u89c6\u89c9\u8d28\u91cf\u7684\u5d4c\u5165\u5f0f\u8bbe\u5907\u3002<\/li>\n<\/ul>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 \u4ed3\u5e93\u5730\u5740: https:\/\/gitee.com\/smallerxuan\/s_y2printer \u9879\u76ee\u5b9a\u4f4d: \u9762\u5411 \u5d4c\u5165\u5f0f\u70ed\u654f\u6253\u5370\u673a\u9879\u76ee\u7684\u534a\u8272\u8c03&#xff08;Dithering&#xff09;\u7b97\u6cd5\u5e93 \u6838\u5fc3\u529f\u80fd: \u5c06 8bit \u7070\u5ea6\u56fe\u50cf\u9ad8\u6548\u8f6c\u6362\u4e3a 1bit \u6253\u5370\u6570\u636e License: MIT \u76ee\u5f55<br \/>\n\u9879\u76ee\u6982\u8ff0\u4e0e\u6838\u5fc3\u4ef7\u503c\u7cfb\u7edf\u67b6\u6784\u4e0e\u6a21\u5757\u5212\u5206\u534a\u8272\u8c03\u7b97\u6cd5\u539f\u7406\u4e0e\u5b9e\u73b0\u5bf9\u6bd4\u5d4c\u5165\u5f0f\u6df1\u5ea6\u4f18\u5316\u7b56\u7565\u516c\u5171\u57fa\u7840\u8bbe\u65bd\u89e3\u6790API \u8bbe\u8ba1\u4e0e\u7f16\u7a0b\u6a21\u578b\u865a\u62df\u6253\u5370\u673a\u9a8c\u8bc1\u4f53\u7cfb\u5de5\u7a0b\u89c4\u8303<\/p>\n","protected":false},"author":2,"featured_media":85922,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"topic":[],"class_list":["post-85925","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/85925.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 \u4ed3\u5e93\u5730\u5740: https:\/\/gitee.com\/smallerxuan\/s_y2printer \u9879\u76ee\u5b9a\u4f4d: \u9762\u5411 \u5d4c\u5165\u5f0f\u70ed\u654f\u6253\u5370\u673a\u9879\u76ee\u7684\u534a\u8272\u8c03&#xff08;Dithering&#xff09;\u7b97\u6cd5\u5e93 \u6838\u5fc3\u529f\u80fd: \u5c06 8bit \u7070\u5ea6\u56fe\u50cf\u9ad8\u6548\u8f6c\u6362\u4e3a 1bit \u6253\u5370\u6570\u636e License: MIT \u76ee\u5f55 \u9879\u76ee\u6982\u8ff0\u4e0e\u6838\u5fc3\u4ef7\u503c\u7cfb\u7edf\u67b6\u6784\u4e0e\u6a21\u5757\u5212\u5206\u534a\u8272\u8c03\u7b97\u6cd5\u539f\u7406\u4e0e\u5b9e\u73b0\u5bf9\u6bd4\u5d4c\u5165\u5f0f\u6df1\u5ea6\u4f18\u5316\u7b56\u7565\u516c\u5171\u57fa\u7840\u8bbe\u65bd\u89e3\u6790API \u8bbe\u8ba1\u4e0e\u7f16\u7a0b\u6a21\u578b\u865a\u62df\u6253\u5370\u673a\u9a8c\u8bc1\u4f53\u7cfb\u5de5\u7a0b\u89c4\u8303\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/85925.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-27T16:49:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727164948-6a678c2c0e100.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85925.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/85925.html\",\"name\":\"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-27T16:49:49+00:00\",\"dateModified\":\"2026-07-27T16:49:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/85925.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/85925.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85925.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/85925.html","og_locale":"zh_CN","og_type":"article","og_title":"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 \u4ed3\u5e93\u5730\u5740: https:\/\/gitee.com\/smallerxuan\/s_y2printer \u9879\u76ee\u5b9a\u4f4d: \u9762\u5411 \u5d4c\u5165\u5f0f\u70ed\u654f\u6253\u5370\u673a\u9879\u76ee\u7684\u534a\u8272\u8c03&#xff08;Dithering&#xff09;\u7b97\u6cd5\u5e93 \u6838\u5fc3\u529f\u80fd: \u5c06 8bit \u7070\u5ea6\u56fe\u50cf\u9ad8\u6548\u8f6c\u6362\u4e3a 1bit \u6253\u5370\u6570\u636e License: MIT \u76ee\u5f55 \u9879\u76ee\u6982\u8ff0\u4e0e\u6838\u5fc3\u4ef7\u503c\u7cfb\u7edf\u67b6\u6784\u4e0e\u6a21\u5757\u5212\u5206\u534a\u8272\u8c03\u7b97\u6cd5\u539f\u7406\u4e0e\u5b9e\u73b0\u5bf9\u6bd4\u5d4c\u5165\u5f0f\u6df1\u5ea6\u4f18\u5316\u7b56\u7565\u516c\u5171\u57fa\u7840\u8bbe\u65bd\u89e3\u6790API \u8bbe\u8ba1\u4e0e\u7f16\u7a0b\u6a21\u578b\u865a\u62df\u6253\u5370\u673a\u9a8c\u8bc1\u4f53\u7cfb\u5de5\u7a0b\u89c4\u8303","og_url":"https:\/\/www.wsisp.com\/helps\/85925.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-27T16:49:49+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727164948-6a678c2c0e100.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/85925.html","url":"https:\/\/www.wsisp.com\/helps\/85925.html","name":"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-27T16:49:49+00:00","dateModified":"2026-07-27T16:49:49+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/85925.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/85925.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/85925.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"s_y2printer \u5f00\u6e90\u9879\u76ee\u5206\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=85925"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85925\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/85922"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=85925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=85925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=85925"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=85925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}