Bug in binary gcode specification, thumbnail block
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
调研方向
从 doc/specifications.md 中的 thumbnail 部分开始,将其块布局与 src/LibBGCode/core/core.cpp 以及链接的 ThumbnailBinaryGCode.m 解析器进行比较。确认 thumbnail 数据和末尾四个字节的表示方式,然后更新规范,使文档中的布局与观察到的格式一致。
由索引模型根据 Issue 内容生成。
描述
I wrote my own binary gcode parser ThumbnailBinaryGCode.m because your sample code
core.cpp had too many dependencies for me to get it to compile. In that core.cpp, block_parameters_size() claims that the block header for a Thumbnail block is longer than the others by two sizeof(uint16_t). This matches what the thumbnail spec says, but it isn't actually true.
In reality, a thumbnail block, is the same length as all the other blocks. The following data is either a PNG file, a QOI file, or a JPG file. Following the compressed data are 4 bytes that I don't know what they are, and the next block starts after that. (both PNG and QOI start with a 4 byte magic number, then the width and height.
Since core.cpp doesn't actually try to show the thumbnail, that code doesn't detect the error.
Please correct the thumbnail spec to say that there is a single sizeof(uint16_t) parameter at the end of the block, then the uncompressed data of the thumbnail, then 4 bytes of ?what?, and then the next block.
- 主要语言
- G-code
- 星标
- 73
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prusa3d/libbgcode 的其他 Issue
-
Extending bgcode未关闭
难度 5/5 一周以上 新手友好度 25/100
-
Broken on big-endian architectures可能已有人在做 @onitake 于 308 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
-
PyPI release可能重新可做 @tomasbedrich 于 1009 天前认领,目前没有进行中的 PR。 未关闭
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 20/100
查看 prusa3d/libbgcode 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 76/100
-
chore priority:low size:S
难度 2/5 1-3 小时 新手友好度 74/100
celo-org/celopedia-skills#98 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
elder-plinius/V3R1T4S#625 ·
维护者通常 1 天内回复
-
GCP cloud storage bucket - permissions missing for NetApp backup and recovery - datalock enablement未关闭
难度 1/5 1 小时以内 新手友好度 88/100
-
bug:new
难度 1/5 1-3 小时 新手友好度 86/100
callstackincubator/simlock#931 ·
维护者通常 1 天内回复