[API CHANGE SUGGESION] Make `TextureOpt::missingcolor` a `cspan`
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
调研方向
从 TextureOpt 声明及其缺失的 missingcolor、conservative_filter、firstchannel、subimage 和 subimagename API 入口开始。在定义 cspan 的 breaking 行为和命名范围之前,先检查现有调用方和测试;完成的要求是达成一致的 API 设计并提供相应的覆盖率。
由索引模型根据 Issue 内容生成。
描述
I heard most pointers + length would be replaced with spans of some sort going forward.
In that spirit I would like to suggest a (breaking) change to TextureOpt. The title kinda sums it up already. 😁
The change would be that the length of the missingcolor does not have to match nchannels any more.
It would simply be using the last channel value as fill if the cspan is shorter than nchannels or ignore channels at the end, if it is longer.
On that note: the OIIO API has quite afew naming inconistencies with its use of underscores. For example, the set prefix in some some methods is sometimes postfixed with an underscore and sometimes not.
In TextureOpt itself the obvious example is conservative_filter (uses an underscore) vs missingcolor, firstchannel, subimage, subimagename, etc. (don't).
It should be conservative_filter, missing_color, first_channel, sub_image, sub_image_name, etc.
Or neither should have an underscore.
While this is more changes than just removing the underscore from conservative_filter: as a non-native speaker I very much prefer the underscore version.
One of the reasons people struggle with German is that we string arbitray number of nouns together to create new ones. 😁
When you read these it is very difficult for non-native speakers to understand where one noun ends and the next one starts. So if you think this is a silly request, ask someone in your circle of friends who know German as a second language how they feel about that. They can probably reason about it better than I. 😉
TLDR; if the missingcolor as cspan change happens that may be an opportunity to clean up naming in this struct too.
In the Rust version I btw. also postfixed any s & t settings, i.e. s_blur etc.
- 主要语言
- C++
- 星标
- 2.4k
- 派生
- 727
- 平均合并
- 4 天 8 小时
- 30 天内合并 PR
- 67
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AcademySoftwareFoundation/OpenImageIO 的其他 Issue
-
bug: Python ImageBuf.get_pixels(oiio.UNKNOWN) returns None silently or segfaults可能重新可做 @stevwya77 于 10 天前认领,目前没有进行中的 PR。 未关闭bug good first issue python
难度 3/5 1-2 天 新手友好度 68/100
AcademySoftwareFoundation/OpenImageIO#5698 · 3 条评论 ·
维护者通常 3 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
AcademySoftwareFoundation/OpenImageIO#5619 · 2 条评论 ·
维护者通常 3 天内回复
-
难度 5/5 一周以上 新手友好度 10/100
AcademySoftwareFoundation/OpenImageIO#5570 ·
维护者通常 3 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
AcademySoftwareFoundation/OpenImageIO#5558 ·
维护者通常 3 天内回复
-
define which color metadata OpenImageIO trusts, and when it resolves it可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 5/5 一周以上 新手友好度 20/100
AcademySoftwareFoundation/OpenImageIO#5516 ·
维护者通常 3 天内回复
查看 AcademySoftwareFoundation/OpenImageIO 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
component: tabs platform: macOS
难度 2/5 1-3 小时 新手友好度 72/100
zen-browser/desktop#16860 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
windirstat/windirstat#776 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
godotengine/godot#125913 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100