| #pragma once |
| |
| |
| |
| |
| |
| |
| #ifndef ADJUST_EXPOSURE_H |
| #define ADJUST_EXPOSURE_H |
| |
| #include "stdfx.h" |
| #include "tfxparam.h" |
| |
| struct float4 { |
| float x, y, z, w; |
| }; |
| |
| class Iwa_AdjustExposureFx : public TStandardRasterFx |
| { |
| |
| FX_PLUGIN_DECLARATION(Iwa_AdjustExposureFx) |
| |
| protected: |
| TRasterFxPort m_source; |
| TDoubleParamP m_hardness; |
| TDoubleParamP m_scale; |
| TDoubleParamP m_offset; |
| |
| |
| template <typename RASTER, typename PIXEL> |
| void setSourceRaster(const RASTER srcRas, |
| float4 *dstMem, |
| TDimensionI dim); |
| |
| template <typename RASTER, typename PIXEL> |
| void setOutputRaster(float4 *srcMem, |
| const RASTER dstRas, |
| TDimensionI dim); |
| |
| public: |
| Iwa_AdjustExposureFx(); |
| |
| void doCompute(TTile &tile, |
| double frame, |
| const TRenderSettings &settings); |
| |
| void doCompute_CPU(TTile &tile, |
| double frame, |
| const TRenderSettings &settings, |
| TDimensionI &dim, |
| float4 *tile_host); |
| |
| bool doGetBBox(double frame, |
| TRectD &bBox, |
| const TRenderSettings &info); |
| |
| bool canHandle(const TRenderSettings &info, |
| double frame); |
| }; |
| |
| #endif |