RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
Common.cpp File Reference
#include "fuzz/Common.h"
#include "adt/Casts.h"
#include "adt/Point.h"
#include "common/RawImage.h"
#include "io/Buffer.h"
#include "io/ByteStream.h"
#include "io/IOException.h"
#include "metadata/ColorFilterArray.h"
#include <cstdint>
Include dependency graph for Common.cpp:

Go to the source code of this file.

Functions

rawspeed::RawImage CreateRawImage (rawspeed::ByteStream &bs)
rawspeed::ColorFilterArray CreateCFA (rawspeed::ByteStream &bs)

Function Documentation

◆ CreateCFA()

Definition at line 54 of file Common.cpp.

References rawspeed::iPoint2D::area(), rawspeed::ByteStream::check(), rawspeed::END, rawspeed::ByteStream::getI32(), rawspeed::ByteStream::getU32(), rawspeed::iPoint2D::hasPositiveArea(), rawspeed::implicit_cast(), rawspeed::ColorFilterArray::setColorAt(), rawspeed::ColorFilterArray::setSize(), ThrowIOE, ThrowRSE, x, and y.

Referenced by LLVMFuzzerTestOneInput().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateRawImage()

rawspeed::RawImage CreateRawImage ( rawspeed::ByteStream & bs)

Definition at line 31 of file Common.cpp.

References rawspeed::RawImage::create(), rawspeed::RawImageData::dim, rawspeed::F32, rawspeed::ByteStream::getU32(), rawspeed::RawImageData::isCFA, rawspeed::RawImageData::setCpp(), ThrowRSE, and rawspeed::UINT16.

Referenced by LLVMFuzzerTestOneInput(), and rawspeed::LLVMFuzzerTestOneInput().

Here is the call graph for this function:
Here is the caller graph for this function: