mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:37:34 +00:00
LibPDF: Implement two SeparationColorSpace methods
Actually using separation color spaces still doesn't work, but we now no longer assert on them when they're used. Fixes 2 crashes on the `-n 500` 0000.zip pdfa dataset.
This commit is contained in:
parent
2311e28d63
commit
311cc7d9b9
2 changed files with 2 additions and 3 deletions
|
@ -396,8 +396,7 @@ PDFErrorOr<Color> SeparationColorSpace::color(ReadonlySpan<Value>) const
|
|||
|
||||
Vector<float> SeparationColorSpace::default_decode() const
|
||||
{
|
||||
warnln("PDF: TODO implement SeparationColorSpace::default_decode()");
|
||||
return {};
|
||||
return { 0.0f, 1.0f };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ public:
|
|||
~SeparationColorSpace() override = default;
|
||||
|
||||
PDFErrorOr<Color> color(ReadonlySpan<Value> arguments) const override;
|
||||
int number_of_components() const override { TODO(); }
|
||||
int number_of_components() const override { return 1; }
|
||||
Vector<float> default_decode() const override;
|
||||
ColorSpaceFamily const& family() const override { return ColorSpaceFamily::Separation; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue