CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
pixel_format.h File Reference

Defines the pixel storage formats used throughout the CaptureMoment Core library. More...

#include <cstddef>
#include <cstdint>
#include <utility>
+ Include dependency graph for pixel_format.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CaptureMoment
 
namespace  CaptureMoment::Core
 Manages the lifecycle of a single IWorkingImage instance.
 
namespace  CaptureMoment::Core::Common
 

Enumerations

enum class  CaptureMoment::Core::Common::PixelFormat : std::uint8_t { CaptureMoment::Core::Common::RGBA_F32 , CaptureMoment::Core::Common::RGB_F32 }
 Enumerates the supported pixel storage formats in memory. More...
 

Functions

constexpr std::uint8_t CaptureMoment::Core::Common::getChannelCount (PixelFormat pf) noexcept
 Returns the number of channels for a given PixelFormat.
 
constexpr std::size_t CaptureMoment::Core::Common::getPixelSizeInBytes (PixelFormat fmt) noexcept
 Returns the size in bytes of a single pixel for a given PixelFormat.
 

Detailed Description

Defines the pixel storage formats used throughout the CaptureMoment Core library.

This header provides the CaptureMoment::Core::Common::PixelFormat enum, which specifies how pixel data is stored in memory, including the number of channels and the data type per channel. It's primarily used within the ImageRegion structure to define the format of its pixel data buffer.

Author
CaptureMoment Team
Date
2025

Definition in file pixel_format.h.

CaptureMoment — footer