RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
Common.h File Reference
#include "rawspeedconfig.h"
#include "adt/Array1DRef.h"
#include "adt/Array2DRef.h"
#include "adt/Bit.h"
#include "adt/Invariant.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <initializer_list>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <vector>
Include dependency graph for Common.h:

Go to the source code of this file.

Namespaces

namespace  rawspeed

Enumerations

enum class  rawspeed::DEBUG_PRIO { rawspeed::ERROR = 0x10 , rawspeed::WARNING = 0x100 , rawspeed::INFO = 0x1000 , rawspeed::EXTRA = 0x10000 }

Functions

int rawspeed_get_number_of_processor_cores ()
void rawspeed::writeLog (DEBUG_PRIO priority, const char *format,...)
void void rawspeed::copyPixelsImpl (Array1DRef< std::byte > dest, Array1DRef< const std::byte > src)
void rawspeed::copyPixelsImpl (Array2DRef< std::byte > dest, Array2DRef< const std::byte > src)
void rawspeed::copyPixels (std::byte *destPtr, int dstPitch, const std::byte *srcPtr, int srcPitch, int rowSize, int height)
template<typename T>
requires std::is_pointer_v<T>
constexpr uint64_t RAWSPEED_READNONE rawspeed::getMisalignmentOffset (T value, uint64_t multiple)
template<typename T>
requires std::is_integral_v<T>
constexpr uint64_t RAWSPEED_READNONE rawspeed::getMisalignmentOffset (T value, uint64_t multiple)
template<typename T>
constexpr T RAWSPEED_READNONE rawspeed::roundToMultiple (T value, uint64_t multiple, bool roundDown)
constexpr uint64_t RAWSPEED_READNONE rawspeed::roundDown (uint64_t value, uint64_t multiple)
constexpr uint64_t RAWSPEED_READNONE rawspeed::roundUp (uint64_t value, uint64_t multiple)
constexpr uint64_t RAWSPEED_READNONE rawspeed::roundUpDivision (uint64_t value, uint64_t div)
constexpr uint64_t RAWSPEED_READNONE rawspeed::roundUpDivisionSafe (uint64_t value, uint64_t div)
template<class T>
constexpr RAWSPEED_READNONE bool rawspeed::isAligned (T value, size_t multiple)
template<typename T, typename T2>
bool RAWSPEED_READONLY rawspeed::isIn (const T value, const std::initializer_list< T2 > &list)
std::string rawspeed::trimSpaces (std::string_view str)
std::vector< std::string > rawspeed::splitString (const std::string &input, char c=' ')
template<int N, typename T>
std::array< T, N > rawspeed::to_array (const std::vector< T > &v)

Function Documentation

◆ rawspeed_get_number_of_processor_cores()

int rawspeed_get_number_of_processor_cores ( )

Definition at line 26 of file RawSpeed.cpp.

References anonymous_namespace{main.cpp}::currThreadCount.

Referenced by __attribute__(), rawspeed::PanasonicV8Decompressor::decompress(), and rawspeed::RawImageData::startWorker().

Here is the caller graph for this function: