Comments (6)
- では対応しましょう。テスト用に各フォーマットの bmp ファイルを用意してください(コミットには含まず)。
std::bad_alloc
を使うようにして大丈夫です。
from opensiv3d.
ヘッダと画像データの間にギャップがあるとき、および、パレットの色数が最大でないときに正しく読み込めないバグがありました。
一緒に直します。
from opensiv3d.
テスト用コード、実装完了しました。
from opensiv3d.
PR #1207 のコメントに変更についての詳しい説明を書きました。
from opensiv3d.
- 16-bit BMP は Microsoft Paint で保存できる形式ではなく、マイナーですが、1, 4, 8, 24, 32-bit に対応して 16-bit だけ対応しないのも変なので、16-bit にも一緒に実装していいですか?
- 現在の実装では、バッファの確保 (
std::malloc
) に失敗すると透明な画像を返す実装になっているので、std::bad_alloc
もしくはstd::length_error
を投げるように変更したいです。一緒に実装しようと思っていますが、別で issue 立てたほうがいいですか?
from opensiv3d.
テスト用ソースコード: https://gist.github.com/Raclamusi/039af3aa2698424a3bfc48e885224f94
テスト用画像ファイル: https://drive.google.com/drive/folders/1UFL-rqHZ3wjn-5efr_9ghWNtZ-GqYlOD?usp=sharing
from opensiv3d.
Related Issues (20)
- LineString::calculateRoundBuffer() で始点と終点が一致するときに終端が丸くならない
- LineString::calculateRoundBuffer() でサイズが1のときに円を返す提案 HOT 3
- Update lunasvg v2.3.1 -> v2.3.9
- giflib を Siv3D 本体ビルドに含める
- Statistics::Mode(), Statistics::MultiMode()でビルドエラー HOT 1
- CSVのIReaderロードでビルドエラー HOT 1
- Point::length(), lengthSq() を整数オーバーフローしにくい実装にする
- 複数ファイルのドラッグを開始する機能の提案 HOT 1
- Texture から ID3D11Texture2D* を取得する機能
- CUDA と Texture を連係しやすくする CUDATexture クラス
- Platform::Windows::Keyboard::GetEvents() ロック忘れを修正
- boost 1.74 doesn't actually conform to c++20 HOT 4
- FileSytem:: の関数をリソースファイルパスにも使えるようにする HOT 1
- AngelScript 機能の改善の提案 HOT 1
- Parse<double>(U""); で例外ではなく assert になる
- [Windows] 起動時に、必ず実行ファイルのディレクトリをカレントディレクトリにする
- Math::Clamp(Vec2 v,Vec2 min,Vec2 max) HOT 1
- Image::inBounds HOT 1
- プログラムが IDE で実行されているかを取得する関数
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensiv3d.