Skip to content

Commit

Permalink
Zstd Compressor
Browse files Browse the repository at this point in the history
Signed-off-by: Todica Ionut <[email protected]>
  • Loading branch information
TodicaIonut authored Oct 15, 2024
1 parent cfa20e7 commit a6ee9f0
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/lib/OpenEXR/ImfZstdCompressor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//

//-----------------------------------------------------------------------------
//
// class ZstdCompressor
//
//-----------------------------------------------------------------------------

#include "ImfZstdCompressor.h"

OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_ENTER

ZstdCompressor::ZstdCompressor (const Header& hdr, size_t maxScanLineSize, int numScanLines)
: Compressor (hdr, EXR_COMPRESSION_ZSTD, maxScanLineSize, numScanLines)
{
}

ZstdCompressor::~ZstdCompressor ()
{
}

OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_EXIT
35 changes: 35 additions & 0 deletions src/lib/OpenEXR/ImfZstdCompressor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//

#ifndef INCLUDED_IMF_ZSTD_COMPRESSOR_H
#define INCLUDED_IMF_ZSTD_COMPRESSOR_H

//-----------------------------------------------------------------------------
//
// class ZstdCompressor
//
//-----------------------------------------------------------------------------

#include "ImfCompressor.h"

OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER

class ZstdCompressor : public Compressor
{
public:
ZstdCompressor (
const Header& hdr, size_t maxScanLineSize, int numScanLines);

virtual ~ZstdCompressor ();

ZstdCompressor (const ZstdCompressor& other) = delete;
ZstdCompressor& operator= (const ZstdCompressor& other) = delete;
ZstdCompressor (ZstdCompressor&& other) = delete;
ZstdCompressor& operator= (ZstdCompressor&& other) = delete;
};

OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT

#endif

0 comments on commit a6ee9f0

Please sign in to comment.