mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
LibGfx: Remove unused BMPWriter::set_compression()
This has always been unused, and after #8440 BMPWriter::dump() unconditionally writes to m_compression, meaning even if this method was called, it would have no effect.
This commit is contained in:
parent
7bb7d87807
commit
74891ab656
2 changed files with 9 additions and 8 deletions
|
@ -16,11 +16,6 @@ class BMPWriter {
|
|||
public:
|
||||
BMPWriter() = default;
|
||||
|
||||
enum class Compression : u32 {
|
||||
BI_RGB = 0,
|
||||
BI_BITFIELDS = 3,
|
||||
};
|
||||
|
||||
enum class DibHeader : u32 {
|
||||
Info = 40,
|
||||
V3 = 56,
|
||||
|
@ -29,10 +24,16 @@ public:
|
|||
|
||||
ByteBuffer dump(RefPtr<Bitmap const>, DibHeader dib_header = DibHeader::V4);
|
||||
|
||||
inline void set_compression(Compression compression) { m_compression = compression; }
|
||||
|
||||
private:
|
||||
enum class Compression : u32 {
|
||||
BI_RGB = 0,
|
||||
BI_BITFIELDS = 3,
|
||||
};
|
||||
|
||||
static ByteBuffer compress_pixel_data(ByteBuffer const&, Compression);
|
||||
|
||||
Compression m_compression { Compression::BI_BITFIELDS };
|
||||
|
||||
int m_bytes_per_pixel { 4 };
|
||||
bool m_include_alpha_channel { true };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue