My Project
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
mcrt_dataio::ClientReceiverDenoiser Class Reference

Public Types

using DenoiseEngine = ClientReceiverFb::DenoiseEngine
 
using SnapshotBuffCallBack = std::function< void(std::vector< float > &buff)>
 

Public Member Functions

void resetTimingInfo ()
 
bool denoiseBeauty (const DenoiseEngine engine, const float latencySec, const int width, const int height, const scene_rdl2::math::Viewport *roi, const SnapshotBuffCallBack &beautyInputSnapshot, const SnapshotBuffCallBack &albedoInputSnapshot, const SnapshotBuffCallBack &normalInputSnapshot, const int outputNumChan, std::vector< float > &beautyOutput, bool &fallback)
 
bool denoiseBeauty888 (const DenoiseEngine engine, const float latencySec, const int width, const int height, const scene_rdl2::math::Viewport *roi, const SnapshotBuffCallBack &beautyInputSnapshot, const SnapshotBuffCallBack &albedoInputSnapshot, const SnapshotBuffCallBack &normalInputSnapshot, std::vector< unsigned char > &beautyOutput, bool isSrgb, bool &fallback)
 
const std::string & getErrorMsg () const
 
std::string showStatus () const
 

Protected Member Functions

bool setupDenoiser (const DenoiseEngine engine, const int width, const int height, const scene_rdl2::math::Viewport *roi, const SnapshotBuffCallBack &albedoInputCallBack, const SnapshotBuffCallBack &normalInputCallBack)
 
const float * inputBuff (const SnapshotBuffCallBack &callBack, std::vector< float > &buff) const
 
float * outputBuff (std::vector< float > &buff, int numChan) const
 
void copyDenoisedResultToOut (const int outputNumChan, std::vector< float > &beautyOutput) const
 
void denoiseActionTimingTrackStart (const float latencySec)
 
bool denoiseActionIntervalTest ()
 
void denoiseActionTimingUpdate ()
 

Protected Attributes

DenoiseEngine mDenoiseEngine
 
std::vector< float > mBeautyInput
 
std::vector< float > mAlbedoInput
 
std::vector< float > mNormalInput
 
std::vector< float > mDenoisedResult
 
bool mDenoiseReady
 
int mDenoiseWidth
 
int mDenoiseHeight
 
bool mDenoiseUseAlbedo
 
bool mDenoiseUseNormals
 
std::unique_ptr< moonray::denoiser::Denoiser > mDenoiser
 
std::string mErrorMsg
 
scene_rdl2::rec_time::RecTime mDenoiseActionInterval
 
scene_rdl2::rec_time::RecTime mDenoiseAction
 
scene_rdl2::grid_util::FloatValueTracker mLatencyTracker
 
scene_rdl2::grid_util::FloatValueTracker mDenoiseTimeTracker
 
float mDenoiseMinInterval
 
float mPrevEvalTimingResult
 

Static Protected Attributes

static constexpr int sKeepMaxItems = 10
 

The documentation for this class was generated from the following files: