void BinaryReader::visit<std::wstring, WStringField>(std::wstring &field, const WStringField *fieldDescriptor)
{
    CORE_UNUSED(field);
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    SYNC_PRINT(("%s : NYI\n", __FUNCTION__));
}
void BinaryReader::visit<void *, PointerField>(void * &field, const PointerField *fieldDescriptor)
{
    CORE_UNUSED(field);
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    SYNC_PRINT(("%s : NYI\n", __FUNCTION__));
}
void BinaryReader::visit<double, DoubleVectorField>(std::vector<double> &field, const DoubleVectorField *fieldDescriptor)
{
    CORE_UNUSED(field);
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    SYNC_PRINT(("%s : NYI\n", __FUNCTION__));
}
void BinaryReader::visit<std::wstring>(std::wstring &stringField, std::wstring /*defaultValue*/, const char *fieldName)
{
    CORE_UNUSED(stringField);
    CORE_UNUSED(fieldName);
    if (stream == NULL) return;
    SYNC_PRINT(("%s : NYI\n", __FUNCTION__));
}
Example #5
0
ImageCaptureInterface::CapErrorCode OpenCVCaptureInterface::setCaptureProperty(int id, int value)
{
    CORE_UNUSED(id);
    CORE_UNUSED(value);
    /*
    int retL = -1;
    int retR = -1;
    switch (propID)
    {
    case (ImageCaptureInterface::CAP_PROP_WIDTH):
        {
            if (captureLeft)
                retL = cvSetCaptureProperty(captureLeft, CV_CAP_PROP_FRAME_WIDTH, propValue);
            if (captureRight)
                retR = cvSetCaptureProperty(captureRight, CV_CAP_PROP_FRAME_WIDTH, propValue);
            break;
        }
    case (ImageCaptureInterface::CAP_PROP_HEIGHT):
        {
            if (captureLeft)
                retL = cvSetCaptureProperty(captureLeft, CV_CAP_PROP_FRAME_HEIGHT, propValue);
            if (captureRight)
                retR = cvSetCaptureProperty(captureRight, CV_CAP_PROP_FRAME_HEIGHT, propValue);
            break;
        }

    default:
        return ImageCaptureInterface::CAP_FAILURE;
    }

    return (ImageCaptureInterface::CapErrorCode) ((bool) retL + (bool) retR);
    */
    return ImageCaptureInterface::FAILURE;
}
void BinaryReader::visit<string, StringField>(std::string &field, const StringField *fieldDescriptor)
{
    CORE_UNUSED(field);
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    SYNC_PRINT(("%s : NYI\n", __FUNCTION__));
    //stream->read((char *) &field, sizeof(field));
}
void BinaryReader::visit<double>(double &doubleField, double defaultValue, const char *fieldName)
{
    CORE_UNUSED(defaultValue);
    CORE_UNUSED(fieldName);
    if (stream == NULL) return;
    stream->read((char *) &doubleField, sizeof(doubleField));
    SYNC_PRINT(("BinaryReader::visit<double>(): read %lf\n", doubleField));
}
void BinaryReader::visit<int>(int &intField, int defaultValue, const char *fieldName)
{
    CORE_UNUSED(defaultValue);
    CORE_UNUSED(fieldName);
    if (stream == NULL) return;
    stream->read((char *) &intField, sizeof(intField));
    SYNC_PRINT(("BinaryReader::visit<int>(): read %d\n", intField));
}
Example #9
0
        void Renderer::postProcessInternal( const RenderData& renderData )
        {
            CORE_UNUSED( renderData );

            // This pass does nothing by default

            m_postprocessFbo->useAsTarget( m_width, m_height );

            GL_ASSERT( glDepthMask( GL_TRUE ) );
            GL_ASSERT( glColorMask( 1, 1, 1, 1 ) );

            GL_ASSERT( glClearColor( 1.0, 0.0, 0.0, 0.0 ) );
            GL_ASSERT( glClearDepth( 0.0 ) );
            m_postprocessFbo->clear( FBO::Components( FBO::COLOR | FBO::DEPTH ) );

            // FIXME(Charly): Do we really need to clear the depth buffer ?
            GL_ASSERT( glDrawBuffers( 1, buffers ) );

            GL_ASSERT( glDepthFunc( GL_ALWAYS ) );

            m_postprocessShader->bind();
            m_postprocessShader->setUniform( "renderpassColor", m_renderpassTexture.get(), 0 );

            m_quadMesh->render();

            GL_ASSERT( glDepthFunc( GL_LESS ) );

            m_postprocessFbo->unbind();
        }
Example #10
0
void BinaryReader::visit<double, DoubleField>(double &field, const DoubleField *fieldDescriptor)
{
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    stream->read((char *) &field, sizeof(field));
    SYNC_PRINT(("BinaryReader::visit<double, DoubleField>():read %lf\n", field));
}
Example #11
0
void BinaryReader::visit<int,    IntField>(int &field, const IntField *fieldDescriptor)
{
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    stream->read((char *) &field, sizeof(field));
    SYNC_PRINT(("BinaryReader::visit<int,IntField>(): read %d\n", field));
}
void FolderScanner::emptyDir(const string &path)
{
#ifdef WIN32
    std::system(("rd /s /q " + path).c_str());
#else
    int result = std::system(("rm -rf " + path).c_str());
    CORE_UNUSED(result);
#endif
    L_INFO_P("The <%s> folder is deleted.", path.c_str());
}
Example #13
0
        void Renderer::updateRenderObjectsInternal( const RenderData& renderData,
                                                    const std::vector<RenderObjectPtr>& renderObjects )
        {
            CORE_UNUSED( renderData );

            for ( auto& ro : renderObjects )
            {
                ro->updateGL();
            }
        }
Example #14
0
void BinaryReader::visit<std::string>(std::string &stringField, std::string /*defaultValue*/, const char *fieldName)
{
    CORE_UNUSED(fieldName);
    if (stream == NULL) return;
    uint32_t length = 0;
    stream->read((char *)&length, sizeof(length));
    char* data = new char[length + 1];
    stream->read((char *)data, length);
    data[length] = 0;
    stringField = data;
    SYNC_PRINT(("BinaryReader::visit<std::string>():read %s\n", stringField.c_str()));
}
Example #15
0
void BinaryReader::visit<int, EnumField>(int &field, const EnumField *fieldDescriptor)
{
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    stream->read((char *) &field, sizeof(field));
}
Example #16
0
void BinaryReader::visit<uint64_t>(uint64_t &intField, uint64_t /*defaultValue*/, const char *fieldName)
{
    CORE_UNUSED(fieldName);
    if (stream == NULL) return;
    stream->read((char *) &intField, sizeof(intField));
}
Example #17
0
void BinaryReader::visit<bool>(bool &boolField, bool /*defaultValue*/, const char *fieldName)
{
    CORE_UNUSED(fieldName);
    if (stream == NULL) return;
    stream->read((char *) &boolField, sizeof(boolField));
}
Example #18
0
void BinaryReader::visit<bool,   BoolField>(bool &field, const BoolField *fieldDescriptor)
{
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    stream->read((char *) &field, sizeof(field));
}
BufferReader* OpenCvBufferReaderProvider::getBufferReader(const std::string &filename)
{
    CORE_UNUSED(filename);
    return new OpenCvBufferReader();
}
Example #20
0
string DirectShowCaptureInterface::getDeviceSerial(int num)
{
    CORE_UNUSED(num);
    return "-unsupported-";                                 // first minus is very important!
}
Example #21
0
void BinaryReader::visit<uint64_t, UInt64Field>(uint64_t &field, const UInt64Field *fieldDescriptor)
{
    CORE_UNUSED(fieldDescriptor);
    if (stream == NULL) return;
    stream->read((char *) &field, sizeof(field));
}
bool OpenCvBufferReaderProvider::provides(const std::string &filename)
{
    // TODO: make list of supported formats
    CORE_UNUSED(filename);
    return true;
}