Compositor: Code cleanup, prepare for strict C++ flags
This commit is contained in:
@@ -433,7 +433,8 @@ void ExecutionGroup::determineChunkRect(rcti *rect, const unsigned int chunkNumb
|
||||
determineChunkRect(rect, xChunk, yChunk);
|
||||
}
|
||||
|
||||
MemoryBuffer *ExecutionGroup::allocateOutputBuffer(int chunkNumber, rcti *rect)
|
||||
MemoryBuffer *ExecutionGroup::allocateOutputBuffer(int /*chunkNumber*/,
|
||||
rcti *rect)
|
||||
{
|
||||
// we asume that this method is only called from complex execution groups.
|
||||
NodeOperation *operation = this->getOutputOperation();
|
||||
|
||||
@@ -161,7 +161,7 @@ public:
|
||||
*
|
||||
* @return bool the result of this method
|
||||
*/
|
||||
virtual bool isOutputOperation(bool rendering) const { return false; }
|
||||
virtual bool isOutputOperation(bool /*rendering*/) const { return false; }
|
||||
|
||||
virtual int isSingleThreaded() { return false; }
|
||||
|
||||
@@ -175,7 +175,8 @@ public:
|
||||
* @param chunkNumber the chunkNumber to be calculated
|
||||
* @param memoryBuffers all input MemoryBuffer's needed
|
||||
*/
|
||||
virtual void executeRegion(rcti *rect, unsigned int chunkNumber) {}
|
||||
virtual void executeRegion(rcti * /*rect*/,
|
||||
unsigned int /*chunkNumber*/) {}
|
||||
|
||||
/**
|
||||
* @brief when a chunk is executed by an OpenCLDevice, this method is called
|
||||
@@ -189,8 +190,11 @@ public:
|
||||
* @param memoryBuffers all input MemoryBuffer's needed
|
||||
* @param outputBuffer the outputbuffer to write to
|
||||
*/
|
||||
virtual void executeOpenCLRegion(OpenCLDevice *device, rcti *rect,
|
||||
unsigned int chunkNumber, MemoryBuffer **memoryBuffers, MemoryBuffer *outputBuffer) {}
|
||||
virtual void executeOpenCLRegion(OpenCLDevice * /*device*/,
|
||||
rcti * /*rect*/,
|
||||
unsigned int /*chunkNumber*/,
|
||||
MemoryBuffer ** /*memoryBuffers*/,
|
||||
MemoryBuffer * /*outputBuffer*/) {}
|
||||
|
||||
/**
|
||||
* @brief custom handle to add new tasks to the OpenCL command queue in order to execute a chunk on an GPUDevice
|
||||
@@ -204,10 +208,12 @@ public:
|
||||
* @param clMemToCleanUp all created cl_mem references must be added to this list. Framework will clean this after execution
|
||||
* @param clKernelsToCleanUp all created cl_kernel references must be added to this list. Framework will clean this after execution
|
||||
*/
|
||||
virtual void executeOpenCL(OpenCLDevice *device,
|
||||
MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
|
||||
MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
|
||||
list<cl_kernel> *clKernelsToCleanUp) {}
|
||||
virtual void executeOpenCL(OpenCLDevice * /*device*/,
|
||||
MemoryBuffer * /*outputMemoryBuffer*/,
|
||||
cl_mem /*clOutputBuffer*/,
|
||||
MemoryBuffer ** /*inputMemoryBuffers*/,
|
||||
list<cl_mem> * /*clMemToCleanUp*/,
|
||||
list<cl_kernel> * /*clKernelsToCleanUp*/) {}
|
||||
virtual void deinitExecution();
|
||||
|
||||
bool isResolutionSet() {
|
||||
|
||||
@@ -459,7 +459,8 @@ WriteBufferOperation *NodeOperationBuilder::find_attached_write_buffer_operation
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void NodeOperationBuilder::add_input_buffers(NodeOperation *operation, NodeOperationInput *input)
|
||||
void NodeOperationBuilder::add_input_buffers(NodeOperation * /*operation*/,
|
||||
NodeOperationInput *input)
|
||||
{
|
||||
if (!input->isConnected())
|
||||
return;
|
||||
|
||||
@@ -33,7 +33,7 @@ void SingleThreadedOperation::initExecution()
|
||||
initMutex();
|
||||
}
|
||||
|
||||
void SingleThreadedOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void SingleThreadedOperation::executePixel(float output[4], int x, int y, void * /*data*/)
|
||||
{
|
||||
this->m_cachedInstance->readNoCheck(output, x, y);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,10 @@ protected:
|
||||
* @param y the y-coordinate of the pixel to calculate in image space
|
||||
* @param inputBuffers chunks that can be read by their ReadBufferOperation.
|
||||
*/
|
||||
virtual void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) {}
|
||||
virtual void executePixelSampled(float /*output*/[4],
|
||||
float /*x*/,
|
||||
float /*y*/,
|
||||
PixelSampler /*sampler*/) { }
|
||||
|
||||
/**
|
||||
* @brief calculate a single pixel
|
||||
@@ -74,7 +77,7 @@ protected:
|
||||
* @param inputBuffers chunks that can be read by their ReadBufferOperation.
|
||||
* @param chunkData chunk specific data a during execution time.
|
||||
*/
|
||||
virtual void executePixel(float output[4], int x, int y, void *chunkData) {
|
||||
virtual void executePixel(float output[4], int x, int y, void * /*chunkData*/) {
|
||||
executePixelSampled(output, x, y, COM_PS_NEAREST);
|
||||
}
|
||||
|
||||
@@ -88,7 +91,10 @@ protected:
|
||||
* @param dy
|
||||
* @param inputBuffers chunks that can be read by their ReadBufferOperation.
|
||||
*/
|
||||
virtual void executePixelFiltered(float output[4], float x, float y, float dx[2], float dy[2], PixelSampler sampler) {}
|
||||
virtual void executePixelFiltered(float /*output*/[4],
|
||||
float /*x*/, float /*y*/,
|
||||
float /*dx*/[2], float /*dy*/[2],
|
||||
PixelSampler /*sampler*/) {}
|
||||
|
||||
public:
|
||||
inline void readSampled(float result[4], float x, float y, PixelSampler sampler) {
|
||||
@@ -101,12 +107,12 @@ public:
|
||||
executePixelFiltered(result, x, y, dx, dy, sampler);
|
||||
}
|
||||
|
||||
virtual void *initializeTileData(rcti *rect) { return 0; }
|
||||
virtual void deinitializeTileData(rcti *rect, void *data) {}
|
||||
virtual void *initializeTileData(rcti * /*rect*/) { return 0; }
|
||||
virtual void deinitializeTileData(rcti * /*rect*/, void * /*data*/) {}
|
||||
|
||||
virtual ~SocketReader() {}
|
||||
|
||||
virtual MemoryBuffer *getInputMemoryBuffer(MemoryBuffer **memoryBuffers) { return 0; }
|
||||
virtual MemoryBuffer *getInputMemoryBuffer(MemoryBuffer ** /*memoryBuffers*/) { return 0; }
|
||||
|
||||
inline const unsigned int getWidth() const { return this->m_width; }
|
||||
inline const unsigned int getHeight() const { return this->m_height; }
|
||||
|
||||
@@ -276,7 +276,10 @@ bool WorkScheduler::hasGPUDevices()
|
||||
#endif
|
||||
}
|
||||
|
||||
static void CL_CALLBACK clContextError(const char *errinfo, const void *private_info, size_t cb, void *user_data)
|
||||
static void CL_CALLBACK clContextError(const char *errinfo,
|
||||
const void * /*private_info*/,
|
||||
size_t /*cb*/,
|
||||
void * /*user_data*/)
|
||||
{
|
||||
printf("OPENCL error: %s\n", errinfo);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "COM_SetValueOperation.h"
|
||||
#include "DNA_material_types.h" // the ramp types
|
||||
|
||||
void AlphaOverNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void AlphaOverNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *color1Socket = this->getInputSocket(1);
|
||||
NodeInput *color2Socket = this->getInputSocket(2);
|
||||
|
||||
@@ -29,7 +29,7 @@ BokehImageNode::BokehImageNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void BokehImageNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void BokehImageNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
BokehImageOperation *operation = new BokehImageOperation();
|
||||
operation->setData((NodeBokehImage *)this->getbNode()->storage);
|
||||
|
||||
@@ -29,7 +29,7 @@ BrightnessNode::BrightnessNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void BrightnessNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void BrightnessNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
BrightnessOperation *operation = new BrightnessOperation();
|
||||
converter.addOperation(operation);
|
||||
|
||||
@@ -30,7 +30,7 @@ ChannelMatteNode::ChannelMatteNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ChannelMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ChannelMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *node = this->getbNode();
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ ChromaMatteNode::ChromaMatteNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ChromaMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ChromaMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *editorsnode = getbNode();
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ ColorBalanceNode::ColorBalanceNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ColorBalanceNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ColorBalanceNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *node = this->getbNode();
|
||||
NodeColorBalance *n = (NodeColorBalance *)node->storage;
|
||||
|
||||
@@ -29,7 +29,7 @@ ColorCorrectionNode::ColorCorrectionNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ColorCorrectionNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ColorCorrectionNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *editorNode = getbNode();
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ ColorCurveNode::ColorCurveNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ColorCurveNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ColorCurveNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
if (this->getInputSocket(2)->isLinked() || this->getInputSocket(3)->isLinked()) {
|
||||
ColorCurveOperation *operation = new ColorCurveOperation();
|
||||
|
||||
@@ -30,7 +30,7 @@ ColorMatteNode::ColorMatteNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ColorMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ColorMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *editorsnode = getbNode();
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ ColorNode::ColorNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ColorNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ColorNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
SetColorOperation *operation = new SetColorOperation();
|
||||
NodeOutput *output = this->getOutputSocket(0);
|
||||
|
||||
@@ -32,7 +32,7 @@ ColorRampNode::ColorRampNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ColorRampNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ColorRampNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
NodeOutput *outputSocket = this->getOutputSocket(0);
|
||||
|
||||
@@ -29,7 +29,7 @@ ColorSpillNode::ColorSpillNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ColorSpillNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ColorSpillNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *editorsnode = getbNode();
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ ColorToBWNode::ColorToBWNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ColorToBWNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ColorToBWNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *colorSocket = this->getInputSocket(0);
|
||||
NodeOutput *valueSocket = this->getOutputSocket(0);
|
||||
|
||||
@@ -72,17 +72,17 @@ void CombineColorNode::convertToOperations(NodeConverter &converter, const Compo
|
||||
}
|
||||
|
||||
|
||||
NodeOperation *CombineRGBANode::getColorConverter(const CompositorContext &context) const
|
||||
NodeOperation *CombineRGBANode::getColorConverter(const CompositorContext &/*context*/) const
|
||||
{
|
||||
return NULL; /* no conversion needed */
|
||||
}
|
||||
|
||||
NodeOperation *CombineHSVANode::getColorConverter(const CompositorContext &context) const
|
||||
NodeOperation *CombineHSVANode::getColorConverter(const CompositorContext &/*context*/) const
|
||||
{
|
||||
return new ConvertHSVToRGBOperation();
|
||||
}
|
||||
|
||||
NodeOperation *CombineYCCANode::getColorConverter(const CompositorContext &context) const
|
||||
NodeOperation *CombineYCCANode::getColorConverter(const CompositorContext &/*context*/) const
|
||||
{
|
||||
ConvertYCCToRGBOperation *operation = new ConvertYCCToRGBOperation();
|
||||
bNode *editorNode = this->getbNode();
|
||||
@@ -90,7 +90,7 @@ NodeOperation *CombineYCCANode::getColorConverter(const CompositorContext &conte
|
||||
return operation;
|
||||
}
|
||||
|
||||
NodeOperation *CombineYUVANode::getColorConverter(const CompositorContext &context) const
|
||||
NodeOperation *CombineYUVANode::getColorConverter(const CompositorContext &/*context*/) const
|
||||
{
|
||||
return new ConvertYUVToRGBOperation();
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "COM_ConvertOperation.h"
|
||||
#include "COM_ExecutionSystem.h"
|
||||
|
||||
void ConvertAlphaNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ConvertAlphaNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeOperation *operation = NULL;
|
||||
bNode *node = this->getbNode();
|
||||
|
||||
@@ -28,7 +28,7 @@ CornerPinNode::CornerPinNode(bNode *editorNode) : Node(editorNode)
|
||||
{
|
||||
}
|
||||
|
||||
void CornerPinNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void CornerPinNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *input_image = this->getInputSocket(0);
|
||||
/* note: socket order differs between UI node and operations:
|
||||
|
||||
@@ -29,7 +29,7 @@ CropNode::CropNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void CropNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void CropNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *node = getbNode();
|
||||
NodeTwoXYs *cropSettings = (NodeTwoXYs *)node->storage;
|
||||
|
||||
@@ -29,7 +29,7 @@ DespeckleNode::DespeckleNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void DespeckleNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void DespeckleNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *editorNode = this->getbNode();
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
|
||||
@@ -30,7 +30,7 @@ DifferenceMatteNode::DifferenceMatteNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void DifferenceMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void DifferenceMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
NodeInput *inputSocket2 = this->getInputSocket(1);
|
||||
|
||||
@@ -31,7 +31,7 @@ DistanceMatteNode::DistanceMatteNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void DistanceMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void DistanceMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *editorsnode = getbNode();
|
||||
NodeChroma *storage = (NodeChroma *)editorsnode->storage;
|
||||
|
||||
@@ -29,7 +29,7 @@ DoubleEdgeMaskNode::DoubleEdgeMaskNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void DoubleEdgeMaskNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void DoubleEdgeMaskNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
DoubleEdgeMaskOperation *operation;
|
||||
bNode *bnode = this->getbNode();
|
||||
|
||||
@@ -32,7 +32,7 @@ FilterNode::FilterNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void FilterNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void FilterNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
NodeInput *inputImageSocket = this->getInputSocket(1);
|
||||
|
||||
@@ -30,7 +30,7 @@ FlipNode::FlipNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void FlipNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void FlipNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
NodeOutput *outputSocket = this->getOutputSocket(0);
|
||||
|
||||
@@ -29,7 +29,7 @@ GammaNode::GammaNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void GammaNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void GammaNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
GammaOperation *operation = new GammaOperation();
|
||||
converter.addOperation(operation);
|
||||
|
||||
@@ -36,7 +36,7 @@ GlareNode::GlareNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void GlareNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void GlareNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *node = this->getbNode();
|
||||
NodeGlare *glare = (NodeGlare *)node->storage;
|
||||
|
||||
@@ -36,7 +36,7 @@ HueSaturationValueCorrectNode::HueSaturationValueCorrectNode(bNode *editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void HueSaturationValueCorrectNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void HueSaturationValueCorrectNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *valueSocket = this->getInputSocket(0);
|
||||
NodeInput *colorSocket = this->getInputSocket(1);
|
||||
|
||||
@@ -35,7 +35,7 @@ HueSaturationValueNode::HueSaturationValueNode(bNode *editorNode) : Node(editorN
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void HueSaturationValueNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void HueSaturationValueNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *valueSocket = this->getInputSocket(0);
|
||||
NodeInput *colorSocket = this->getInputSocket(1);
|
||||
|
||||
@@ -31,7 +31,7 @@ InpaintNode::InpaintNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void InpaintNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void InpaintNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
|
||||
bNode *editorNode = this->getbNode();
|
||||
|
||||
@@ -30,7 +30,7 @@ InvertNode::InvertNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void InvertNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void InvertNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
InvertOperation *operation = new InvertOperation();
|
||||
bNode *node = this->getbNode();
|
||||
|
||||
@@ -30,7 +30,7 @@ LensDistortionNode::LensDistortionNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void LensDistortionNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void LensDistortionNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *editorNode = this->getbNode();
|
||||
NodeLensDist *data = (NodeLensDist *)editorNode->storage;
|
||||
|
||||
@@ -30,7 +30,7 @@ LuminanceMatteNode::LuminanceMatteNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void LuminanceMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void LuminanceMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *editorsnode = getbNode();
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
|
||||
@@ -30,7 +30,7 @@ MapRangeNode::MapRangeNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void MapRangeNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void MapRangeNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *valueSocket = this->getInputSocket(0);
|
||||
NodeInput *sourceMinSocket = this->getInputSocket(1);
|
||||
|
||||
@@ -28,7 +28,7 @@ MapUVNode::MapUVNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void MapUVNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void MapUVNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bNode *node = this->getbNode();
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ MapValueNode::MapValueNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void MapValueNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void MapValueNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
TexMapping *storage = (TexMapping *)this->getbNode()->storage;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "COM_MathBaseOperation.h"
|
||||
#include "COM_ExecutionSystem.h"
|
||||
|
||||
void MathNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void MathNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
MathBaseOperation *operation = NULL;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ MixNode::MixNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void MixNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void MixNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *valueSocket = this->getInputSocket(0);
|
||||
NodeInput *color1Socket = this->getInputSocket(1);
|
||||
|
||||
@@ -31,7 +31,7 @@ NormalNode::NormalNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void NormalNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void NormalNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
NodeOutput *outputSocket = this->getOutputSocket(0);
|
||||
|
||||
@@ -28,7 +28,7 @@ NormalizeNode::NormalizeNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void NormalizeNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void NormalizeNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NormalizeOperation *operation = new NormalizeOperation();
|
||||
converter.addOperation(operation);
|
||||
|
||||
@@ -30,7 +30,7 @@ PixelateNode::PixelateNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void PixelateNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void PixelateNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
NodeOutput *outputSocket = this->getOutputSocket(0);
|
||||
|
||||
@@ -31,7 +31,7 @@ RotateNode::RotateNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void RotateNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void RotateNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
NodeInput *inputDegreeSocket = this->getInputSocket(1);
|
||||
|
||||
@@ -96,17 +96,17 @@ void SeparateColorNode::convertToOperations(NodeConverter &converter, const Comp
|
||||
}
|
||||
|
||||
|
||||
NodeOperation *SeparateRGBANode::getColorConverter(const CompositorContext &context) const
|
||||
NodeOperation *SeparateRGBANode::getColorConverter(const CompositorContext &/*context*/) const
|
||||
{
|
||||
return NULL; /* no conversion needed */
|
||||
}
|
||||
|
||||
NodeOperation *SeparateHSVANode::getColorConverter(const CompositorContext &context) const
|
||||
NodeOperation *SeparateHSVANode::getColorConverter(const CompositorContext &/*context*/) const
|
||||
{
|
||||
return new ConvertRGBToHSVOperation();
|
||||
}
|
||||
|
||||
NodeOperation *SeparateYCCANode::getColorConverter(const CompositorContext &context) const
|
||||
NodeOperation *SeparateYCCANode::getColorConverter(const CompositorContext &/*context*/) const
|
||||
{
|
||||
ConvertRGBToYCCOperation *operation = new ConvertRGBToYCCOperation();
|
||||
bNode *editorNode = this->getbNode();
|
||||
@@ -114,7 +114,7 @@ NodeOperation *SeparateYCCANode::getColorConverter(const CompositorContext &cont
|
||||
return operation;
|
||||
}
|
||||
|
||||
NodeOperation *SeparateYUVANode::getColorConverter(const CompositorContext &context) const
|
||||
NodeOperation *SeparateYUVANode::getColorConverter(const CompositorContext &/*context*/) const
|
||||
{
|
||||
return new ConvertRGBToYUVOperation();
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "COM_SetAlphaOperation.h"
|
||||
#include "COM_ExecutionSystem.h"
|
||||
|
||||
void SetAlphaNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void SetAlphaNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
SetAlphaOperation *operation = new SetAlphaOperation();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ SocketProxyNode::SocketProxyNode(bNode *editorNode, bNodeSocket *editorInput, bN
|
||||
this->addOutputSocket(dt, editorOutput);
|
||||
}
|
||||
|
||||
void SocketProxyNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void SocketProxyNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeOperationOutput *proxy_output = converter.addInputProxy(getInputSocket(0), m_use_conversion);
|
||||
converter.mapOutputSocket(getOutputSocket(), proxy_output);
|
||||
@@ -68,7 +68,7 @@ SocketBufferNode::SocketBufferNode(bNode *editorNode, bNodeSocket *editorInput,
|
||||
this->addOutputSocket(dt, editorOutput);
|
||||
}
|
||||
|
||||
void SocketBufferNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void SocketBufferNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeOutput *output = this->getOutputSocket(0);
|
||||
NodeInput *input = this->getInputSocket(0);
|
||||
|
||||
@@ -27,7 +27,7 @@ SunBeamsNode::SunBeamsNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void SunBeamsNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void SunBeamsNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *inputSocket = this->getInputSocket(0);
|
||||
NodeOutput *outputSocket = this->getOutputSocket(0);
|
||||
|
||||
@@ -27,7 +27,7 @@ SwitchNode::SwitchNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void SwitchNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void SwitchNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
bool condition = this->getbNode()->custom1;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ TonemapNode::TonemapNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void TonemapNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void TonemapNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeTonemap *data = (NodeTonemap *)this->getbNode()->storage;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ TransformNode::TransformNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void TransformNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void TransformNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *imageInput = this->getInputSocket(0);
|
||||
NodeInput *xInput = this->getInputSocket(1);
|
||||
|
||||
@@ -29,7 +29,7 @@ ValueNode::ValueNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ValueNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ValueNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
SetValueOperation *operation = new SetValueOperation();
|
||||
NodeOutput *output = this->getOutputSocket(0);
|
||||
|
||||
@@ -29,7 +29,7 @@ VectorCurveNode::VectorCurveNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void VectorCurveNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void VectorCurveNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
VectorCurveOperation *operation = new VectorCurveOperation();
|
||||
operation->setCurveMapping((CurveMapping *)this->getbNode()->storage);
|
||||
|
||||
@@ -31,7 +31,7 @@ ViewLevelsNode::ViewLevelsNode(bNode *editorNode) : Node(editorNode)
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ViewLevelsNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void ViewLevelsNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
{
|
||||
NodeInput *input = this->getInputSocket(0);
|
||||
if (input->isLinked()) {
|
||||
|
||||
@@ -45,7 +45,7 @@ void AntiAliasOperation::initExecution()
|
||||
NodeOperation::initMutex();
|
||||
}
|
||||
|
||||
void AntiAliasOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void AntiAliasOperation::executePixel(float output[4], int x, int y, void * /*data*/)
|
||||
{
|
||||
if (y < 0 || (unsigned int)y >= this->m_height || x < 0 || (unsigned int)x >= this->m_width) {
|
||||
output[0] = 0.0f;
|
||||
@@ -66,7 +66,7 @@ void AntiAliasOperation::deinitExecution()
|
||||
NodeOperation::deinitMutex();
|
||||
}
|
||||
|
||||
bool AntiAliasOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool AntiAliasOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
rcti imageInput;
|
||||
if (this->m_buffer) {
|
||||
|
||||
@@ -92,7 +92,7 @@ float *BlurBaseOperation::make_gausstab(float rad, int size)
|
||||
}
|
||||
|
||||
#ifdef __SSE2__
|
||||
__m128 *BlurBaseOperation::convert_gausstab_sse(const float *gausstab, float rad, int size)
|
||||
__m128 *BlurBaseOperation::convert_gausstab_sse(const float *gausstab, int size)
|
||||
{
|
||||
int n = 2 * size + 1;
|
||||
__m128 *gausstab_sse = (__m128 *) MEM_mallocN_aligned(sizeof(__m128) * n, 16, "gausstab sse");
|
||||
|
||||
@@ -39,7 +39,7 @@ protected:
|
||||
BlurBaseOperation(DataType data_type);
|
||||
float *make_gausstab(float rad, int size);
|
||||
#ifdef __SSE2__
|
||||
__m128 *convert_gausstab_sse(const float *gaustab, float rad, int size);
|
||||
__m128 *convert_gausstab_sse(const float *gaustab, int size);
|
||||
#endif
|
||||
float *make_dist_fac_inverse(float rad, int size, int falloff);
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ BokehBlurOperation::BokehBlurOperation() : NodeOperation()
|
||||
this->m_inputBoundingBoxReader = NULL;
|
||||
}
|
||||
|
||||
void *BokehBlurOperation::initializeTileData(rcti *rect)
|
||||
void *BokehBlurOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
lockMutex();
|
||||
if (!this->m_sizeavailable) {
|
||||
@@ -194,7 +194,7 @@ bool BokehBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBuffe
|
||||
void BokehBlurOperation::executeOpenCL(OpenCLDevice *device,
|
||||
MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
|
||||
MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
|
||||
list<cl_kernel> *clKernelsToCleanUp)
|
||||
list<cl_kernel> * /*clKernelsToCleanUp*/)
|
||||
{
|
||||
cl_kernel kernel = device->COM_clCreateKernel("bokehBlurKernel", NULL);
|
||||
if (!this->m_sizeavailable) {
|
||||
|
||||
@@ -85,7 +85,7 @@ float BokehImageOperation::isInsideBokeh(float distance, float x, float y)
|
||||
}
|
||||
return insideBokeh;
|
||||
}
|
||||
void BokehImageOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void BokehImageOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
float shift = this->m_data->lensshift;
|
||||
float shift2 = shift / 2.0f;
|
||||
@@ -116,7 +116,7 @@ void BokehImageOperation::deinitExecution()
|
||||
}
|
||||
}
|
||||
|
||||
void BokehImageOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
|
||||
void BokehImageOperation::determineResolution(unsigned int resolution[2], unsigned int /*preferredResolution*/[2])
|
||||
{
|
||||
resolution[0] = COM_BLUR_BOKEH_PIXELS;
|
||||
resolution[1] = COM_BLUR_BOKEH_PIXELS;
|
||||
|
||||
@@ -44,7 +44,9 @@ void CalculateMeanOperation::initExecution()
|
||||
NodeOperation::initMutex();
|
||||
}
|
||||
|
||||
void CalculateMeanOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void CalculateMeanOperation::executePixel(float output[4],
|
||||
int /*x*/, int /*y*/,
|
||||
void */*data*/)
|
||||
{
|
||||
output[0] = this->m_result;
|
||||
}
|
||||
@@ -55,7 +57,7 @@ void CalculateMeanOperation::deinitExecution()
|
||||
NodeOperation::deinitMutex();
|
||||
}
|
||||
|
||||
bool CalculateMeanOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool CalculateMeanOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
rcti imageInput;
|
||||
if (this->m_iscalculated) {
|
||||
|
||||
@@ -33,7 +33,9 @@ CalculateStandardDeviationOperation::CalculateStandardDeviationOperation() : Cal
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void CalculateStandardDeviationOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void CalculateStandardDeviationOperation::executePixel(float output[4],
|
||||
int /*x*/, int /*y*/,
|
||||
void * /*data*/)
|
||||
{
|
||||
output[0] = this->m_standardDeviation;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ void CompositorOperation::deinitExecution()
|
||||
}
|
||||
|
||||
|
||||
void CompositorOperation::executeRegion(rcti *rect, unsigned int tileNumber)
|
||||
void CompositorOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/)
|
||||
{
|
||||
float color[8]; // 7 is enough
|
||||
float *buffer = this->m_outputBuffer;
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
void executeRegion(rcti *rect, unsigned int tileNumber);
|
||||
void setSceneName(const char *sceneName) { BLI_strncpy(this->m_sceneName, sceneName, sizeof(this->m_sceneName)); }
|
||||
void setRenderData(const RenderData *rd) { this->m_rd = rd; }
|
||||
bool isOutputOperation(bool rendering) const { return this->isActiveCompositorOutput(); }
|
||||
bool isOutputOperation(bool /*rendering*/) const { return this->isActiveCompositorOutput(); }
|
||||
void initExecution();
|
||||
void deinitExecution();
|
||||
const CompositorPriority getRenderPriority() const { return COM_PRIORITY_MEDIUM; }
|
||||
|
||||
@@ -28,7 +28,7 @@ ConvolutionEdgeFilterOperation::ConvolutionEdgeFilterOperation() : ConvolutionFi
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void ConvolutionEdgeFilterOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void ConvolutionEdgeFilterOperation::executePixel(float output[4], int x, int y, void * /*data*/)
|
||||
{
|
||||
float in1[4], in2[4], res1[4] = {0.0}, res2[4] = {0.0};
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ void ConvolutionFilterOperation::deinitExecution()
|
||||
}
|
||||
|
||||
|
||||
void ConvolutionFilterOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void ConvolutionFilterOperation::executePixel(float output[4], int x, int y, void * /*data*/)
|
||||
{
|
||||
float in1[4];
|
||||
float in2[4];
|
||||
|
||||
@@ -52,7 +52,7 @@ BLI_INLINE int color_diff(const float a[3], const float b[3], const float thresh
|
||||
(fabsf(a[2] - b[2]) > threshold));
|
||||
}
|
||||
|
||||
void DespeckleOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void DespeckleOperation::executePixel(float output[4], int x, int y, void * /*data*/)
|
||||
{
|
||||
float w = 0.0f;
|
||||
float color_org[4];
|
||||
|
||||
@@ -56,7 +56,7 @@ void DilateErodeThresholdOperation::initExecution()
|
||||
}
|
||||
}
|
||||
|
||||
void *DilateErodeThresholdOperation::initializeTileData(rcti *rect)
|
||||
void *DilateErodeThresholdOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
void *buffer = this->m_inputProgram->initializeTileData(NULL);
|
||||
return buffer;
|
||||
@@ -180,7 +180,7 @@ void DilateDistanceOperation::initExecution()
|
||||
}
|
||||
}
|
||||
|
||||
void *DilateDistanceOperation::initializeTileData(rcti *rect)
|
||||
void *DilateDistanceOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
void *buffer = this->m_inputProgram->initializeTileData(NULL);
|
||||
return buffer;
|
||||
@@ -238,7 +238,7 @@ bool DilateDistanceOperation::determineDependingAreaOfInterest(rcti *input, Read
|
||||
void DilateDistanceOperation::executeOpenCL(OpenCLDevice *device,
|
||||
MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
|
||||
MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
|
||||
list<cl_kernel> *clKernelsToCleanUp)
|
||||
list<cl_kernel> * /*clKernelsToCleanUp*/)
|
||||
{
|
||||
cl_kernel dilateKernel = device->COM_clCreateKernel("dilateKernel", NULL);
|
||||
|
||||
@@ -295,7 +295,7 @@ void ErodeDistanceOperation::executePixel(float output[4], int x, int y, void *d
|
||||
void ErodeDistanceOperation::executeOpenCL(OpenCLDevice *device,
|
||||
MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
|
||||
MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
|
||||
list<cl_kernel> *clKernelsToCleanUp)
|
||||
list<cl_kernel> * /*clKernelsToCleanUp*/)
|
||||
{
|
||||
cl_kernel erodeKernel = device->COM_clCreateKernel("erodeKernel", NULL);
|
||||
|
||||
@@ -446,7 +446,7 @@ void DilateStepOperation::deinitExecution()
|
||||
this->m_inputProgram = NULL;
|
||||
}
|
||||
|
||||
void DilateStepOperation::deinitializeTileData(rcti *rect, void *data)
|
||||
void DilateStepOperation::deinitializeTileData(rcti * /*rect*/, void *data)
|
||||
{
|
||||
tile_info *tile = (tile_info *)data;
|
||||
MEM_freeN(tile->buffer);
|
||||
|
||||
@@ -66,7 +66,7 @@ void DirectionalBlurOperation::initExecution()
|
||||
|
||||
}
|
||||
|
||||
void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void * /*data*/)
|
||||
{
|
||||
const int iterations = pow(2.0f, this->m_data->iter);
|
||||
float col[4] = {0.0f, 0.0f, 0.0f, 0.0f};
|
||||
@@ -104,7 +104,7 @@ void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void
|
||||
void DirectionalBlurOperation::executeOpenCL(OpenCLDevice *device,
|
||||
MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
|
||||
MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
|
||||
list<cl_kernel> *clKernelsToCleanUp)
|
||||
list<cl_kernel> * /*clKernelsToCleanUp*/)
|
||||
{
|
||||
cl_kernel directionalBlurKernel = device->COM_clCreateKernel("directionalBlurKernel", NULL);
|
||||
|
||||
@@ -132,7 +132,7 @@ void DirectionalBlurOperation::deinitExecution()
|
||||
this->m_inputProgram = NULL;
|
||||
}
|
||||
|
||||
bool DirectionalBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool DirectionalBlurOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
rcti newInput;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ void DisplaceOperation::initExecution()
|
||||
this->m_height_x4 = this->getHeight() * 4;
|
||||
}
|
||||
|
||||
void DisplaceOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void DisplaceOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
float xy[2] = { x, y };
|
||||
float uv[2], deriv[2][2];
|
||||
|
||||
@@ -1237,7 +1237,7 @@ DoubleEdgeMaskOperation::DoubleEdgeMaskOperation() : NodeOperation()
|
||||
this->setComplex(true);
|
||||
}
|
||||
|
||||
bool DoubleEdgeMaskOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool DoubleEdgeMaskOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
if (this->m_cachedInstance == NULL) {
|
||||
rcti newInput;
|
||||
|
||||
@@ -37,7 +37,7 @@ void FastGaussianBlurOperation::executePixel(float output[4], int x, int y, void
|
||||
newData->read(output, x, y);
|
||||
}
|
||||
|
||||
bool FastGaussianBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool FastGaussianBlurOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
rcti newInput;
|
||||
rcti sizeInput;
|
||||
@@ -257,7 +257,7 @@ void FastGaussianBlurValueOperation::executePixel(float output[4], int x, int y,
|
||||
newData->read(output, x, y);
|
||||
}
|
||||
|
||||
bool FastGaussianBlurValueOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool FastGaussianBlurValueOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
rcti newInput;
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ GaussianAlphaXBlurOperation::GaussianAlphaXBlurOperation() : BlurBaseOperation(C
|
||||
this->m_falloff = -1; /* intentionally invalid, so we can detect uninitialized values */
|
||||
}
|
||||
|
||||
void *GaussianAlphaXBlurOperation::initializeTileData(rcti *rect)
|
||||
void *GaussianAlphaXBlurOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
lockMutex();
|
||||
if (!this->m_sizeavailable) {
|
||||
|
||||
@@ -36,7 +36,7 @@ GaussianAlphaYBlurOperation::GaussianAlphaYBlurOperation() : BlurBaseOperation(C
|
||||
this->m_falloff = -1; /* intentionally invalid, so we can detect uninitialized values */
|
||||
}
|
||||
|
||||
void *GaussianAlphaYBlurOperation::initializeTileData(rcti *rect)
|
||||
void *GaussianAlphaYBlurOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
lockMutex();
|
||||
if (!this->m_sizeavailable) {
|
||||
|
||||
@@ -32,7 +32,7 @@ GaussianBokehBlurOperation::GaussianBokehBlurOperation() : BlurBaseOperation(COM
|
||||
this->m_gausstab = NULL;
|
||||
}
|
||||
|
||||
void *GaussianBokehBlurOperation::initializeTileData(rcti *rect)
|
||||
void *GaussianBokehBlurOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
lockMutex();
|
||||
if (!this->m_sizeavailable) {
|
||||
@@ -205,7 +205,7 @@ GaussianBlurReferenceOperation::GaussianBlurReferenceOperation() : BlurBaseOpera
|
||||
this->m_maintabs = NULL;
|
||||
}
|
||||
|
||||
void *GaussianBlurReferenceOperation::initializeTileData(rcti *rect)
|
||||
void *GaussianBlurReferenceOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
void *buffer = getInputOperation(0)->initializeTileData(NULL);
|
||||
return buffer;
|
||||
|
||||
@@ -38,7 +38,7 @@ GaussianXBlurOperation::GaussianXBlurOperation() : BlurBaseOperation(COM_DT_COLO
|
||||
this->m_filtersize = 0;
|
||||
}
|
||||
|
||||
void *GaussianXBlurOperation::initializeTileData(rcti *rect)
|
||||
void *GaussianXBlurOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
lockMutex();
|
||||
if (!this->m_sizeavailable) {
|
||||
@@ -63,7 +63,6 @@ void GaussianXBlurOperation::initExecution()
|
||||
this->m_gausstab = BlurBaseOperation::make_gausstab(rad, m_filtersize);
|
||||
#ifdef __SSE2__
|
||||
this->m_gausstab_sse = BlurBaseOperation::convert_gausstab_sse(this->m_gausstab,
|
||||
rad,
|
||||
m_filtersize);
|
||||
#endif
|
||||
}
|
||||
@@ -79,7 +78,6 @@ void GaussianXBlurOperation::updateGauss()
|
||||
this->m_gausstab = BlurBaseOperation::make_gausstab(rad, m_filtersize);
|
||||
#ifdef __SSE2__
|
||||
this->m_gausstab_sse = BlurBaseOperation::convert_gausstab_sse(this->m_gausstab,
|
||||
rad,
|
||||
m_filtersize);
|
||||
#endif
|
||||
}
|
||||
@@ -128,7 +126,7 @@ void GaussianXBlurOperation::executePixel(float output[4], int x, int y, void *d
|
||||
void GaussianXBlurOperation::executeOpenCL(OpenCLDevice *device,
|
||||
MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
|
||||
MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
|
||||
list<cl_kernel> *clKernelsToCleanUp)
|
||||
list<cl_kernel> * /*clKernelsToCleanUp*/)
|
||||
{
|
||||
cl_kernel gaussianXBlurOperationKernel = device->COM_clCreateKernel("gaussianXBlurOperationKernel", NULL);
|
||||
cl_int filter_size = this->m_filtersize;
|
||||
|
||||
@@ -38,7 +38,7 @@ GaussianYBlurOperation::GaussianYBlurOperation() : BlurBaseOperation(COM_DT_COLO
|
||||
this->m_filtersize = 0;
|
||||
}
|
||||
|
||||
void *GaussianYBlurOperation::initializeTileData(rcti *rect)
|
||||
void *GaussianYBlurOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
lockMutex();
|
||||
if (!this->m_sizeavailable) {
|
||||
@@ -62,7 +62,6 @@ void GaussianYBlurOperation::initExecution()
|
||||
this->m_gausstab = BlurBaseOperation::make_gausstab(rad, m_filtersize);
|
||||
#ifdef __SSE2__
|
||||
this->m_gausstab_sse = BlurBaseOperation::convert_gausstab_sse(this->m_gausstab,
|
||||
rad,
|
||||
m_filtersize);
|
||||
#endif
|
||||
}
|
||||
@@ -78,7 +77,6 @@ void GaussianYBlurOperation::updateGauss()
|
||||
this->m_gausstab = BlurBaseOperation::make_gausstab(rad, m_filtersize);
|
||||
#ifdef __SSE2__
|
||||
this->m_gausstab_sse = BlurBaseOperation::convert_gausstab_sse(this->m_gausstab,
|
||||
rad,
|
||||
m_filtersize);
|
||||
#endif
|
||||
}
|
||||
@@ -130,7 +128,7 @@ void GaussianYBlurOperation::executePixel(float output[4], int x, int y, void *d
|
||||
void GaussianYBlurOperation::executeOpenCL(OpenCLDevice *device,
|
||||
MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
|
||||
MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
|
||||
list<cl_kernel> *clKernelsToCleanUp)
|
||||
list<cl_kernel> * /*clKernelsToCleanUp*/)
|
||||
{
|
||||
cl_kernel gaussianYBlurOperationKernel = device->COM_clCreateKernel("gaussianYBlurOperationKernel", NULL);
|
||||
cl_int filter_size = this->m_filtersize;
|
||||
|
||||
@@ -55,7 +55,7 @@ MemoryBuffer *GlareBaseOperation::createMemoryBuffer(rcti *rect2)
|
||||
return result;
|
||||
}
|
||||
|
||||
bool GlareBaseOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool GlareBaseOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
if (isCached()) {
|
||||
return false;
|
||||
|
||||
@@ -96,7 +96,7 @@ void BaseImageOperation::deinitExecution()
|
||||
BKE_image_release_ibuf(this->m_image, this->m_buffer, NULL);
|
||||
}
|
||||
|
||||
void BaseImageOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
|
||||
void BaseImageOperation::determineResolution(unsigned int resolution[2], unsigned int /*preferredResolution*/[2])
|
||||
{
|
||||
ImBuf *stackbuf = getImBuf();
|
||||
|
||||
@@ -170,7 +170,7 @@ void ImageAlphaOperation::executePixelSampled(float output[4], float x, float y,
|
||||
}
|
||||
}
|
||||
|
||||
void ImageDepthOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void ImageDepthOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
if (this->m_depthBuffer == NULL) {
|
||||
output[0] = 0.0f;
|
||||
|
||||
@@ -241,7 +241,7 @@ void *InpaintSimpleOperation::initializeTileData(rcti *rect)
|
||||
return this->m_cached_buffer;
|
||||
}
|
||||
|
||||
void InpaintSimpleOperation::executePixel(float output[4], int x, int y, void *data)
|
||||
void InpaintSimpleOperation::executePixel(float output[4], int x, int y, void * /*data*/)
|
||||
{
|
||||
this->clamp_xy(x, y);
|
||||
copy_v4_v4(output, this->get_pixel(x, y));
|
||||
@@ -268,7 +268,7 @@ void InpaintSimpleOperation::deinitExecution()
|
||||
this->m_cached_buffer_ready = false;
|
||||
}
|
||||
|
||||
bool InpaintSimpleOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool InpaintSimpleOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
if (this->m_cached_buffer_ready) {
|
||||
return false;
|
||||
|
||||
@@ -267,7 +267,7 @@ void *KeyingScreenOperation::initializeTileData(rcti *rect)
|
||||
return tile_data;
|
||||
}
|
||||
|
||||
void KeyingScreenOperation::deinitializeTileData(rcti *rect, void *data)
|
||||
void KeyingScreenOperation::deinitializeTileData(rcti * /*rect*/, void *data)
|
||||
{
|
||||
TileData *tile_data = (TileData *) data;
|
||||
|
||||
@@ -278,7 +278,7 @@ void KeyingScreenOperation::deinitializeTileData(rcti *rect, void *data)
|
||||
MEM_freeN(tile_data);
|
||||
}
|
||||
|
||||
void KeyingScreenOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
|
||||
void KeyingScreenOperation::determineResolution(unsigned int resolution[2], unsigned int /*preferredResolution*/[2])
|
||||
{
|
||||
resolution[0] = 0;
|
||||
resolution[1] = 0;
|
||||
|
||||
@@ -41,7 +41,7 @@ void MapUVOperation::initExecution()
|
||||
this->m_inputUVProgram = this->getInputSocketReader(1);
|
||||
}
|
||||
|
||||
void MapUVOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void MapUVOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
float xy[2] = { x, y };
|
||||
float uv[2], deriv[2][2], alpha;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/*
|
||||
|
||||
* Copyright 2012, Blender Foundation.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@@ -127,7 +128,7 @@ void MaskOperation::determineResolution(unsigned int resolution[2], unsigned int
|
||||
}
|
||||
}
|
||||
|
||||
void MaskOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void MaskOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
const float xy[2] = {
|
||||
(x * this->m_maskWidthInv) + this->m_mask_px_ofs[0],
|
||||
|
||||
@@ -33,7 +33,9 @@ MovieClipAttributeOperation::MovieClipAttributeOperation() : NodeOperation()
|
||||
this->m_attribute = MCA_X;
|
||||
}
|
||||
|
||||
void MovieClipAttributeOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void MovieClipAttributeOperation::executePixelSampled(float output[4],
|
||||
float /*x*/, float /*y*/,
|
||||
PixelSampler /*sampler*/)
|
||||
{
|
||||
if (!this->m_valueSet) {
|
||||
float loc[2], scale, angle;
|
||||
|
||||
@@ -71,7 +71,7 @@ void MovieClipBaseOperation::deinitExecution()
|
||||
}
|
||||
}
|
||||
|
||||
void MovieClipBaseOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
|
||||
void MovieClipBaseOperation::determineResolution(unsigned int resolution[2], unsigned int /*preferredResolution*/[2])
|
||||
{
|
||||
resolution[0] = 0;
|
||||
resolution[1] = 0;
|
||||
|
||||
@@ -121,7 +121,7 @@ void MovieDistortionOperation::deinitExecution()
|
||||
}
|
||||
|
||||
|
||||
void MovieDistortionOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void MovieDistortionOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
|
||||
if (this->m_cache != NULL) {
|
||||
|
||||
@@ -74,7 +74,7 @@ void MultilayerColorOperation::executePixelSampled(float output[4], float x, flo
|
||||
}
|
||||
}
|
||||
|
||||
void MultilayerValueOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void MultilayerValueOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
if (this->m_imageFloatBuffer == NULL) {
|
||||
output[0] = 0.0f;
|
||||
@@ -91,7 +91,7 @@ void MultilayerValueOperation::executePixelSampled(float output[4], float x, flo
|
||||
}
|
||||
}
|
||||
|
||||
void MultilayerVectorOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void MultilayerVectorOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
if (this->m_imageFloatBuffer == NULL) {
|
||||
output[0] = 0.0f;
|
||||
|
||||
@@ -60,7 +60,7 @@ void NormalizeOperation::deinitExecution()
|
||||
NodeOperation::deinitMutex();
|
||||
}
|
||||
|
||||
bool NormalizeOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool NormalizeOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
rcti imageInput;
|
||||
if (this->m_cachedInstance) return false;
|
||||
@@ -118,7 +118,7 @@ void *NormalizeOperation::initializeTileData(rcti *rect)
|
||||
return this->m_cachedInstance;
|
||||
}
|
||||
|
||||
void NormalizeOperation::deinitializeTileData(rcti *rect, void *data)
|
||||
void NormalizeOperation::deinitializeTileData(rcti * /*rect*/, void * /*data*/)
|
||||
{
|
||||
/* pass */
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ void OutputSingleLayerOperation::initExecution()
|
||||
this->m_outputBuffer = init_buffer(this->getWidth(), this->getHeight(), this->m_datatype);
|
||||
}
|
||||
|
||||
void OutputSingleLayerOperation::executeRegion(rcti *rect, unsigned int tileNumber)
|
||||
void OutputSingleLayerOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/)
|
||||
{
|
||||
write_buffer_rect(rect, this->m_tree, this->m_imageInput, this->m_outputBuffer, this->getWidth(), this->m_datatype);
|
||||
}
|
||||
@@ -194,7 +194,7 @@ void OutputOpenExrMultiLayerOperation::initExecution()
|
||||
}
|
||||
}
|
||||
|
||||
void OutputOpenExrMultiLayerOperation::executeRegion(rcti *rect, unsigned int tileNumber)
|
||||
void OutputOpenExrMultiLayerOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/)
|
||||
{
|
||||
for (unsigned int i = 0; i < this->m_layers.size(); ++i) {
|
||||
OutputOpenExrLayer &layer = this->m_layers[i];
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings);
|
||||
|
||||
void executeRegion(rcti *rect, unsigned int tileNumber);
|
||||
bool isOutputOperation(bool rendering) const { return true; }
|
||||
bool isOutputOperation(bool /*rendering*/) const { return true; }
|
||||
void initExecution();
|
||||
void deinitExecution();
|
||||
const CompositorPriority getRenderPriority() const { return COM_PRIORITY_LOW; }
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
void add_layer(const char *name, DataType datatype, bool use_layer);
|
||||
|
||||
void executeRegion(rcti *rect, unsigned int tileNumber);
|
||||
bool isOutputOperation(bool rendering) const { return true; }
|
||||
bool isOutputOperation(bool /*rendering*/) const { return true; }
|
||||
void initExecution();
|
||||
void deinitExecution();
|
||||
const CompositorPriority getRenderPriority() const { return COM_PRIORITY_LOW; }
|
||||
|
||||
@@ -100,7 +100,7 @@ void PlaneDistortWarpImageOperation::deinitExecution()
|
||||
this->m_pixelReader = NULL;
|
||||
}
|
||||
|
||||
void PlaneDistortWarpImageOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void PlaneDistortWarpImageOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
float uv[2];
|
||||
float deriv[2][2];
|
||||
@@ -194,7 +194,7 @@ void PlaneDistortMaskOperation::initExecution()
|
||||
BLI_jitter_init(m_jitter, m_osa);
|
||||
}
|
||||
|
||||
void PlaneDistortMaskOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void PlaneDistortMaskOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
float point[2];
|
||||
int inside_counter = 0;
|
||||
|
||||
@@ -71,7 +71,7 @@ void PlaneTrackCommon::readCornersFromTrack(float corners[4][2], float frame)
|
||||
}
|
||||
}
|
||||
|
||||
void PlaneTrackCommon::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
|
||||
void PlaneTrackCommon::determineResolution(unsigned int resolution[2], unsigned int /*preferredResolution*/[2])
|
||||
{
|
||||
resolution[0] = 0;
|
||||
resolution[1] = 0;
|
||||
|
||||
@@ -85,7 +85,7 @@ void PreviewOperation::deinitExecution()
|
||||
this->m_input = NULL;
|
||||
}
|
||||
|
||||
void PreviewOperation::executeRegion(rcti *rect, unsigned int tileNumber)
|
||||
void PreviewOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/)
|
||||
{
|
||||
int offset;
|
||||
float color[4];
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
PreviewOperation(const ColorManagedViewSettings *viewSettings, const ColorManagedDisplaySettings *displaySettings);
|
||||
void verifyPreview(bNodeInstanceHash *previews, bNodeInstanceKey key);
|
||||
|
||||
bool isOutputOperation(bool rendering) const { return !G.background; }
|
||||
bool isOutputOperation(bool /*rendering*/) const { return !G.background; }
|
||||
void initExecution();
|
||||
void deinitExecution();
|
||||
const CompositorPriority getRenderPriority() const;
|
||||
|
||||
@@ -40,7 +40,7 @@ void ProjectorLensDistortionOperation::initExecution()
|
||||
this->m_inputProgram = this->getInputSocketReader(0);
|
||||
}
|
||||
|
||||
void *ProjectorLensDistortionOperation::initializeTileData(rcti *rect)
|
||||
void *ProjectorLensDistortionOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
updateDispersion();
|
||||
void *buffer = this->m_inputProgram->initializeTileData(NULL);
|
||||
|
||||
@@ -32,7 +32,7 @@ ReadBufferOperation::ReadBufferOperation(DataType datatype) : NodeOperation()
|
||||
this->m_buffer = NULL;
|
||||
}
|
||||
|
||||
void *ReadBufferOperation::initializeTileData(rcti *rect)
|
||||
void *ReadBufferOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
return m_buffer;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ void RenderLayersBaseProg::deinitExecution()
|
||||
this->m_inputBuffer = NULL;
|
||||
}
|
||||
|
||||
void RenderLayersBaseProg::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
|
||||
void RenderLayersBaseProg::determineResolution(unsigned int resolution[2], unsigned int /*preferredResolution*/[2])
|
||||
{
|
||||
Scene *sce = this->getScene();
|
||||
Render *re = (sce) ? RE_GetRender(sce->id.name) : NULL;
|
||||
@@ -269,7 +269,7 @@ RenderLayersDepthProg::RenderLayersDepthProg() : RenderLayersBaseProg(SCE_PASS_Z
|
||||
this->addOutputSocket(COM_DT_VALUE);
|
||||
}
|
||||
|
||||
void RenderLayersDepthProg::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void RenderLayersDepthProg::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
int ix = x;
|
||||
int iy = y;
|
||||
|
||||
@@ -279,7 +279,7 @@ bool ScaleFixedSizeOperation::determineDependingAreaOfInterest(rcti *input, Read
|
||||
return BaseScaleOperation::determineDependingAreaOfInterest(&newInput, readOperation, output);
|
||||
}
|
||||
|
||||
void ScaleFixedSizeOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2])
|
||||
void ScaleFixedSizeOperation::determineResolution(unsigned int resolution[2], unsigned int /*preferredResolution*/[2])
|
||||
{
|
||||
unsigned int nr[2];
|
||||
nr[0] = this->m_newWidth;
|
||||
|
||||
@@ -70,7 +70,7 @@ void ScreenLensDistortionOperation::initExecution()
|
||||
}
|
||||
}
|
||||
|
||||
void *ScreenLensDistortionOperation::initializeTileData(rcti *rect)
|
||||
void *ScreenLensDistortionOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
void *buffer = this->m_inputProgram->initializeTileData(NULL);
|
||||
|
||||
@@ -208,7 +208,7 @@ void ScreenLensDistortionOperation::determineUV(float result[6], float x, float
|
||||
get_delta(uv_dot, m_k4[2], uv, result + 4);
|
||||
}
|
||||
|
||||
bool ScreenLensDistortionOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool ScreenLensDistortionOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
rcti newInputValue;
|
||||
newInputValue.xmin = 0;
|
||||
|
||||
@@ -27,7 +27,9 @@ SetColorOperation::SetColorOperation() : NodeOperation()
|
||||
this->addOutputSocket(COM_DT_COLOR);
|
||||
}
|
||||
|
||||
void SetColorOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void SetColorOperation::executePixelSampled(float output[4],
|
||||
float /*x*/, float /*y*/,
|
||||
PixelSampler /*sampler*/)
|
||||
{
|
||||
copy_v4_v4(output, this->m_color);
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ void SetSamplerOperation::deinitExecution()
|
||||
this->m_reader = NULL;
|
||||
}
|
||||
|
||||
void SetSamplerOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void SetSamplerOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
this->m_reader->readSampled(output, x, y, this->m_sampler);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,9 @@ SetValueOperation::SetValueOperation() : NodeOperation()
|
||||
this->addOutputSocket(COM_DT_VALUE);
|
||||
}
|
||||
|
||||
void SetValueOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void SetValueOperation::executePixelSampled(float output[4],
|
||||
float /*x*/, float /*y*/,
|
||||
PixelSampler /*sampler*/)
|
||||
{
|
||||
output[0] = this->m_value;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,9 @@ SetVectorOperation::SetVectorOperation() : NodeOperation()
|
||||
this->addOutputSocket(COM_DT_VECTOR);
|
||||
}
|
||||
|
||||
void SetVectorOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void SetVectorOperation::executePixelSampled(float output[4],
|
||||
float /*x*/, float /*y*/,
|
||||
PixelSampler /*sampler*/)
|
||||
{
|
||||
output[0] = this->m_x;
|
||||
output[1] = this->m_y;
|
||||
|
||||
@@ -56,7 +56,7 @@ void SplitOperation::deinitExecution()
|
||||
this->m_image2Input = NULL;
|
||||
}
|
||||
|
||||
void SplitOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void SplitOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
int perc = this->m_xSplit ? this->m_splitPercentage * this->getWidth() / 100.0f : this->m_splitPercentage * this->getHeight() / 100.0f;
|
||||
bool image1 = this->m_xSplit ? x > perc : y > perc;
|
||||
|
||||
@@ -293,7 +293,7 @@ static void accumulate_line(MemoryBuffer *input, float output[4], const float co
|
||||
}
|
||||
}
|
||||
|
||||
void *SunBeamsOperation::initializeTileData(rcti *rect)
|
||||
void *SunBeamsOperation::initializeTileData(rcti * /*rect*/)
|
||||
{
|
||||
void *buffer = getInputOperation(0)->initializeTileData(NULL);
|
||||
return buffer;
|
||||
|
||||
@@ -117,7 +117,7 @@ void TextureBaseOperation::executePixelSampled(float output[4], float x, float y
|
||||
}
|
||||
}
|
||||
|
||||
MemoryBuffer *TextureBaseOperation::createMemoryBuffer(rcti *rect2)
|
||||
MemoryBuffer *TextureBaseOperation::createMemoryBuffer(rcti * /*rect2*/)
|
||||
{
|
||||
int height = getHeight();
|
||||
int width = getWidth();
|
||||
|
||||
@@ -97,7 +97,7 @@ void TonemapOperation::deinitExecution()
|
||||
NodeOperation::deinitMutex();
|
||||
}
|
||||
|
||||
bool TonemapOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool TonemapOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
rcti imageInput;
|
||||
|
||||
@@ -150,7 +150,7 @@ void *TonemapOperation::initializeTileData(rcti *rect)
|
||||
return this->m_cachedInstance;
|
||||
}
|
||||
|
||||
void TonemapOperation::deinitializeTileData(rcti *rect, void *data)
|
||||
void TonemapOperation::deinitializeTileData(rcti * /*rect*/, void * /*data*/)
|
||||
{
|
||||
/* pass */
|
||||
}
|
||||
|
||||
@@ -102,7 +102,9 @@ void TrackPositionOperation::initExecution()
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPositionOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void TrackPositionOperation::executePixelSampled(float output[4],
|
||||
float /*x*/, float /*y*/,
|
||||
PixelSampler /*sampler*/)
|
||||
{
|
||||
output[0] = this->m_markerPos[this->m_axis] - this->m_relativePos[this->m_axis];
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ void TranslateOperation::deinitExecution()
|
||||
}
|
||||
|
||||
|
||||
void TranslateOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
|
||||
void TranslateOperation::executePixelSampled(float output[4], float x, float y, PixelSampler /*sampler*/)
|
||||
{
|
||||
ensureDelta();
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ void *VariableSizeBokehBlurOperation::initializeTileData(rcti *rect)
|
||||
return data;
|
||||
}
|
||||
|
||||
void VariableSizeBokehBlurOperation::deinitializeTileData(rcti *rect, void *data)
|
||||
void VariableSizeBokehBlurOperation::deinitializeTileData(rcti * /*rect*/, void *data)
|
||||
{
|
||||
VariableSizeBokehBlurTileData *result = (VariableSizeBokehBlurTileData *)data;
|
||||
delete result;
|
||||
@@ -187,7 +187,7 @@ void VariableSizeBokehBlurOperation::executePixel(float output[4], int x, int y,
|
||||
void VariableSizeBokehBlurOperation::executeOpenCL(OpenCLDevice *device,
|
||||
MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer,
|
||||
MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp,
|
||||
list<cl_kernel> *clKernelsToCleanUp)
|
||||
list<cl_kernel> * /*clKernelsToCleanUp*/)
|
||||
{
|
||||
cl_kernel defocusKernel = device->COM_clCreateKernel("defocusKernel", NULL);
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ void *VectorBlurOperation::initializeTileData(rcti *rect)
|
||||
return this->m_cachedInstance;
|
||||
}
|
||||
|
||||
bool VectorBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
|
||||
bool VectorBlurOperation::determineDependingAreaOfInterest(rcti * /*input*/, ReadBufferOperation *readOperation, rcti *output)
|
||||
{
|
||||
if (this->m_cachedInstance == NULL) {
|
||||
rcti newInput;
|
||||
|
||||
@@ -80,7 +80,7 @@ void ViewerOperation::deinitExecution()
|
||||
this->m_outputBuffer = NULL;
|
||||
}
|
||||
|
||||
void ViewerOperation::executeRegion(rcti *rect, unsigned int tileNumber)
|
||||
void ViewerOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/)
|
||||
{
|
||||
float *buffer = this->m_outputBuffer;
|
||||
float *depthbuffer = this->m_depthBuffer;
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
void initExecution();
|
||||
void deinitExecution();
|
||||
void executeRegion(rcti *rect, unsigned int tileNumber);
|
||||
bool isOutputOperation(bool rendering) const { if (G.background) return false; return isActiveViewerOutput(); }
|
||||
bool isOutputOperation(bool /*rendering*/) const { if (G.background) return false; return isActiveViewerOutput(); }
|
||||
void setImage(Image *image) { this->m_image = image; }
|
||||
void setImageUser(ImageUser *imageUser) { this->m_imageUser = imageUser; }
|
||||
const bool isActiveViewerOutput() const { return this->m_active; }
|
||||
|
||||
@@ -57,7 +57,7 @@ void WriteBufferOperation::deinitExecution()
|
||||
this->m_memoryProxy->free();
|
||||
}
|
||||
|
||||
void WriteBufferOperation::executeRegion(rcti *rect, unsigned int tileNumber)
|
||||
void WriteBufferOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/)
|
||||
{
|
||||
MemoryBuffer *memoryBuffer = this->m_memoryProxy->getBuffer();
|
||||
float *buffer = memoryBuffer->getBuffer();
|
||||
@@ -110,7 +110,7 @@ void WriteBufferOperation::executeRegion(rcti *rect, unsigned int tileNumber)
|
||||
memoryBuffer->setCreatedState();
|
||||
}
|
||||
|
||||
void WriteBufferOperation::executeOpenCLRegion(OpenCLDevice *device, rcti *rect, unsigned int chunkNumber,
|
||||
void WriteBufferOperation::executeOpenCLRegion(OpenCLDevice *device, rcti * /*rect*/, unsigned int /*chunkNumber*/,
|
||||
MemoryBuffer **inputMemoryBuffers, MemoryBuffer *outputBuffer)
|
||||
{
|
||||
float *outputFloatBuffer = outputBuffer->getBuffer();
|
||||
|
||||
Reference in New Issue
Block a user