repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
2020wmarvil/3D-environment-reconstruction | src/main.cpp | <gh_stars>0
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace cv;
int main() {
/*std::string image_path;
std::cin >> image_path;
//image_path=samples::findFile(image_pa... |
gapost/QtHDF5 | examples/demo/main.cpp | <filename>examples/demo/main.cpp
#include "qthdf5.h"
#include <QDebug>
/*! \example examples/demo/main.cpp
*
* This is a basic example of how to use QtHDF5.
*
* A HDF5 is created and some groups, attributes and datasets are written to it.
*
* Then the file is re-opened in read-only mode and the contents are lis... |
gapost/QtHDF5 | examples/hdf5browser/h5browserwidget.cpp | <reponame>gapost/QtHDF5
#include "h5browserwidget.h"
#include "ui_h5browserwidget.h"
#include "qh5filemodel.h"
#include <QFileDialog>
#include <QTextStream>
template<typename T>
QTextStream& operator<<(QTextStream& s, const QVector<T>& v)
{
if (v.size()>1) {
s << "( ";
for (int i=0; i<v.size()-1;... |
gapost/QtHDF5 | examples/hdf5browser/main.cpp | <filename>examples/hdf5browser/main.cpp
#include "h5browserwidget.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
H5BrowserWidget w;
w.show();
return a.exec();
}
/*! \example examples/hdf5browser/main.cpp
*
* This example shows how to use QtHDF5 and the Qt ... |
gapost/QtHDF5 | src/qthdf5/qthdf5.cpp | <filename>src/qthdf5/qthdf5.cpp
#include "qthdf5.h"
#include <hdf5.h>
#include <QtDebug>
hid_t _h(const QH5id::h5id& v) { return static_cast<hid_t>(v); }
hid_t _h(const QH5id& v) { return static_cast<hid_t>(v.id()); }
QH5id::QH5id(h5id id, bool incref) : id_(id)
{
if (id_ > 0 && incref) ref();
}
QH5id::QH5id(c... |
gapost/QtHDF5 | examples/hdf5browser/qh5filemodel.cpp | #include "qh5filemodel.h"
#include <QImage>
#include <QIcon>
#include <QFileIconProvider>
class Node
{
public:
QList<Node*> children;
QByteArray name;
QH5Node h5obj;
Node *parent;
explicit Node(const QByteArray& n, const QH5Node& obj, Node *parentItem = 0) :
name(n),
h5obj(obj),
... |
codeclimate-testing/bish | src/IRVisitor.cpp | #include "IRVisitor.h"
#include "IR.h"
using namespace Bish;
IRVisitor::~IRVisitor() { }
void IRVisitor::visit(Module *node) {
if (visited(node)) return;
visited_set.insert(node);
node->global_variables->accept(this);
for (std::vector<Function *>::const_iterator I = node->functions.begin(),
... |
codeclimate-testing/bish | src/CallGraph.cpp | #include <iostream>
#include <cassert>
#include <set>
#include <queue>
#include "CallGraph.h"
using namespace Bish;
// Return a list of direct calls from f.
const std::vector<Function *> &CallGraph::calls(Function *f) {
return calls_map[f];
}
// Return a list of all calls (recursively) from root.
std::vector<Fun... |
codeclimate-testing/bish | src/ReplaceIRNodes.cpp | #include <cassert>
#include "IR.h"
#include "ReplaceIRNodes.h"
using namespace Bish;
namespace {
template <class T>
T assert_cast(IRNode *n) {
T t = dynamic_cast<T>(n);
assert(t != NULL);
return t;
}
}
IRNode *ReplaceIRNodes::replacement(IRNode *node) {
std::map<IRNode *, IRNode *>::iterator I = repl... |
codeclimate-testing/bish | src/CodeGen.cpp | #include "CodeGen.h"
#include "CodeGen_Bash.h"
using namespace Bish;
template<typename T>
static CodeGenerator* create_instance(std::ostream &os) {
return new T(os);
}
CodeGenerators::CodeGeneratorsMap CodeGenerators::generator_map;
void CodeGenerators::initialize() {
/*
We are saving a function point... |
codeclimate-testing/bish | src/bish.cpp | <filename>src/bish.cpp
#include <stdio.h>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <set>
#include <string>
#include <iostream>
#include <unistd.h>
#include "Compile.h"
#include "Parser.h"
#include "CodeGen.h"
int run_on(const std::string &sh, std::istream &is, const std::string &args) {
//... |
codeclimate-testing/bish | src/Parser.cpp | <gh_stars>1000+
#include <cassert>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <iostream>
#include "Builtins.h"
#include "Errors.h"
#include "Util.h"
#include "Parser.h"
#include "TypeChecker.h"
#include "LinkImportsPass.h"
#include "IRAncestorsPass.h"
namespace Bish {
void ParseScope::set_modu... |
codeclimate-testing/bish | tools/TypeAnnotator.cpp | <gh_stars>1000+
#include <set>
#include <sstream>
#include <iostream>
#include <cassert>
#include "CodeGen.h"
#include "Compile.h"
#include "IR.h"
#include "Type.h"
#include "Parser.h"
using namespace Bish;
class TypeAnnotator : public IRVisitor {
public:
TypeAnnotator(std::ostream &os) : stream(os), indent_level... |
codeclimate-testing/bish | src/Util.cpp | <reponame>codeclimate-testing/bish
#include <fstream>
#include <sys/stat.h>
#include <cassert>
#include <cstdlib>
#include "Errors.h"
#include "Config.h"
#include "Util.h"
bool is_file(const std::string &path) {
struct stat info;
int rc = stat(path.c_str(), &info);
return rc == 0 && !S_ISDIR(info.st_mode);... |
codeclimate-testing/bish | src/ReturnValuesPass.cpp | <filename>src/ReturnValuesPass.cpp
#include "ReplaceIRNodes.h"
#include "ReturnValuesPass.h"
using namespace Bish;
namespace {
// Constructs an ordered list of all Block nodes in a function.
class GetAllBlocks : public IRVisitor {
public:
GetAllBlocks(Function *f) {
f->accept(this);
}
std::vecto... |
codeclimate-testing/bish | src/IRAncestorsPass.cpp | <reponame>codeclimate-testing/bish
#include <vector>
#include "IRAncestorsPass.h"
using namespace Bish;
void IRAncestorsPass::visit(Module *node) {
module_stack.push(node);
// Add dummy root-level block.
block_stack.push(new Block());
IRVisitor::visit(node);
block_stack.pop();
module_stack.pop... |
codeclimate-testing/bish | src/SymbolTable.cpp | <reponame>codeclimate-testing/bish
#include <iostream>
#include <cassert>
#include "SymbolTable.h"
using namespace Bish;
void SymbolTable::insert(const Name &v, IRNode *n) {
table[v] = new SymbolTableEntry(n);
}
void SymbolTable::remove(const Name &v) {
table.erase(v);
}
SymbolTableEntry *SymbolTable::looku... |
codeclimate-testing/bish | src/Compile.cpp | #include <cassert>
#include <cstdlib>
#include "ByReferencePass.h"
#include "CodeGen.h"
#include "CodeGen_Bash.h"
#include "Compile.h"
#include "Config.h"
#include "Parser.h"
#include "ReturnValuesPass.h"
#include "TypeChecker.h"
#include "Util.h"
using namespace Bish;
namespace {
// Add necessary stdlib functions t... |
codeclimate-testing/bish | src/TypeChecker.cpp | #include <iostream>
#include <cassert>
#include "Errors.h"
#include "IR.h"
#include "TypeChecker.h"
using namespace Bish;
void TypeChecker::visit(Module *node) {
if (visited(node)) return;
visited_set.insert(node);
module = node;
node->global_variables->accept(this);
// Functions are not visited h... |
codeclimate-testing/bish | src/FindCalls.cpp | <filename>src/FindCalls.cpp<gh_stars>1000+
#include "FindCalls.h"
using namespace Bish;
FindCallsToModule::FindCallsToModule(Module *m) {
for (std::vector<Function *>::iterator I = m->functions.begin(),
E = m->functions.end(); I != E; ++I) {
Function *f = *I;
// Skip calls to the modu... |
codeclimate-testing/bish | src/CodeGen_Bash.cpp | <filename>src/CodeGen_Bash.cpp
#include <cassert>
#include "CodeGen_Bash.h"
using namespace Bish;
void CodeGen_Bash::indent() {
for (unsigned i = 0; i < indent_level; i++) {
stream << " ";
}
}
// Return true if the given node is a statement that should be
// emitted. This excludes side-effecting s... |
codeclimate-testing/bish | src/LinkImportsPass.cpp | #include "Parser.h"
#include "LinkImportsPass.h"
using namespace Bish;
void LinkImportsPass::visit(Module *node) {
module = node;
node->global_variables->accept(this);
// There's probably a better way to do this. The issue is that
// visiting functions which have import statements in them can
// c... |
codeclimate-testing/bish | src/ByReferencePass.cpp | #include "ByReferencePass.h"
using namespace Bish;
void ByReferencePass::initialize_unique_naming(Module *m) {
unique_id = 0;
for (Block::iterator I = m->global_variables->begin(), E = m->global_variables->end();
I != E; ++I) {
if (const Assignment *A = dynamic_cast<const Assignment *>(*I)) {... |
codeclimate-testing/bish | src/Tokenizer.cpp | <reponame>codeclimate-testing/bish<filename>src/Tokenizer.cpp
#include <cassert>
#include <iostream>
#include <sstream>
#include <set>
#include "Tokenizer.h"
using namespace Bish;
namespace {
inline bool is_newline(char c) {
return c == '\n';
}
inline bool is_whitespace(char c) {
return c == ' ' || c == '\t'... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/AVWrapper.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Input/PulseAudioInput.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/Icons.cpp | <reponame>MaartenBaert/ssr-packages
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastResampler_FirFilter_SSE2.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/bionic/simplescreenrecorder-0.3.10/src/AV/Output/Synchronizer.cpp | <filename>ubuntu/source-packages/bionic/simplescreenrecorder-0.3.10/src/AV/Output/Synchronizer.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as... |
MaartenBaert/ssr-packages | ubuntu/source-packages/trusty/simplescreenrecorder-0.3.10/src/GUI/AudioPreviewer.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/PageOutput.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Output/SyncDiagram.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastResampler.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/VideoPreviewer.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/bionic/simplescreenrecorder-0.3.10/src/AV/Output/VideoEncoder.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/PageInput.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/PageDone.cpp | <filename>ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/PageDone.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Output/BaseEncoder.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/xenial/simplescreenrecorder-0.3.10/src/AV/Output/Muxer.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/common/CPUFeatures.cpp | <reponame>MaartenBaert/ssr-packages
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastScaler.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/HiddenScrollArea.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Output/X264Presets.cpp | #include "X264Presets.h"
// This file was generated by 'x264-preset-translator.php', don't edit it.
#if !SSR_USE_AVCODEC_PRIVATE_PRESET
void X264Preset(AVCodecContext* cc, const char* preset) {
if(strcmp(preset, "ultrafast") == 0)
X264Preset_ultrafast(cc);
if(strcmp(preset, "superfast") == 0)
X264Preset_superf... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastResampler_FirFilter_Fallback.cpp | <filename>ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastResampler_FirFilter_Fallback.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Publ... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastScaler_Scale_Fallback.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastScaler_Scale_Generic.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/SimpleSynth.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/Benchmark.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/glinject/GLXFrameGrabber.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WA... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/HotkeyListener.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastScaler_Convert_SSSE3.cpp | <reponame>MaartenBaert/ssr-packages
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/PageWelcome.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/common/Logger.cpp | <filename>ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/common/Logger.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publishe... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/PageRecord.cpp | <reponame>MaartenBaert/ssr-packages<filename>ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/PageRecord.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GN... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/glinject/GLInject.cpp | <reponame>MaartenBaert/ssr-packages<filename>ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/glinject/GLInject.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyri... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Output/AudioEncoder.cpp | <reponame>MaartenBaert/ssr-packages
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastScaler_Convert_Fallback.cpp | <reponame>MaartenBaert/ssr-packages
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/Main.cpp | <reponame>MaartenBaert/ssr-packages<filename>ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/Main.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General ... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/ProfileBox.cpp | <gh_stars>10-100
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(a... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/MainWindow.cpp | <filename>ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/MainWindow.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... |
MaartenBaert/ssr-packages | ubuntu/source-packages/xenial/simplescreenrecorder-0.3.10/src/AV/Output/OutputManager.cpp | <reponame>MaartenBaert/ssr-packages
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Input/ALSAInput.cpp | <reponame>MaartenBaert/ssr-packages<filename>ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Input/ALSAInput.cpp
/*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of th... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Input/JACKInput.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/common/Dialogs.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/NVidia.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/FastScaler_Scale_SSSE3.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/ElidedLabel.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
Original code written by <NAME> and placed in the public domain.
http://gedgedev.blogspot.be/2010/12/elided-labels-in-qt.html
This is a slightly modified version.
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/AV/Input/X11Input.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file contains code from x11grab.c (part of ffmpeg/libav). The copyright information for x11grab.c is:
>> FFmpeg/Libav integration:
>> Copyright (C) 2006 <NAME> <<EMAIL>>
>> <NAME> <<EMAIL>>
>>
>> This file contains code from grab.c:
>> Copyright (c) 2... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/glinject/Hook.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WA... |
MaartenBaert/ssr-packages | ubuntu/source-packages/artful/simplescreenrecorder-0.3.10/src/GUI/DialogGLInject.cpp | /*
Copyright (c) 2012-2017 <NAME> <<EMAIL>>
This file is part of SimpleScreenRecorder.
SimpleScreenRecorder is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
Sergimech/GraphSLAM | src/scanner/src/scanner.cpp | <gh_stars>1-10
#include <scanner.hpp>
ros::Publisher registration_pub;
ros::Publisher pointcloud_debug_pub;
ros::Publisher delta_pub;
ros::ServiceClient keyframe_last_client;
ros::ServiceClient keyframe_closest_client;
// Tuning constants:
const double converged_fitness_threshold = 0.1; // TODO migrate to rosparams
d... |
Sergimech/GraphSLAM | src/odometry/src/odometry.cpp | #include <math.h>
#include <vector>
#include <deque>
#include <Eigen/Core>
#include <ros/ros.h>
#include <common/Odometry.h>
#include <common/Pose2DWithCovariance.h>
#include <common/OdometryBuffer.h>
#include <geometry_msgs/Twist.h>
// JS: David, I guess this file is the result of a copypaste from HW1.
// There a... |
Sergimech/GraphSLAM | src/scanner/include/scanner.hpp | <filename>src/scanner/include/scanner.hpp<gh_stars>1-10
#include <ros/ros.h>
#include <ros/console.h>
#include <sstream>
#include <string>
#include <tf/transform_listener.h>
#include <geometry_msgs/Pose2D.h>
#include <sensor_msgs/PointCloud2.h>
#include <sensor_msgs/LaserScan.h>
#include <laser_geometry/laser_geom... |
Sergimech/GraphSLAM | src/graph/src/graph.cpp | <reponame>Sergimech/GraphSLAM
#include <graph.hpp>
//#include <scanner/scanner.hpp>
#include <common/Keyframes.h>
ros::Publisher keyframes_pub;
gtsam::NonlinearFactorGraph graph;
gtsam::Values initial;
common::Pose2DWithCovariance pose_opt;
std::vector<common::Keyframe> keyframes; // JS: Better use map<key,Keyframe> w... |
Sergimech/GraphSLAM | src/graph/include/graph.hpp | #include <vector>
#include <math.h>
#include <iostream>
#include <string>
#include <sstream>
#include <ros/ros.h>
#include <ros/console.h>
#include <common/Factor.h>
#include <common/Keyframe.h>
#include <common/ClosestKeyframe.h>
#include <common/LastKeyframe.h>
#include <common/Registration.h>
#include <common/Pose... |
Sergimech/GraphSLAM | src/common/src/basic_shapes.cpp | #include <ros/ros.h>
#include <vector>
#include <common/Keyframe.h>
#include <common/Keyframes.h>
#include <tf/transform_broadcaster.h>
#include <visualization_msgs/Marker.h>
#include <costmap_2d/costmap_2d_ros.h>
common::Keyframes keyframes;
ros::Publisher marker_pub;
ros::Publisher pointcloud_pub;
void create_arrow... |
RashmicaG/phosphor-virtual-sensor | virtualSensor.hpp | #include "dbusSensor.hpp"
#include "exprtkTools.hpp"
#include "thresholds.hpp"
#include <fmt/format.h>
#include <nlohmann/json.hpp>
#include <sdbusplus/bus.hpp>
#include <xyz/openbmc_project/Sensor/Value/server.hpp>
#include <map>
#include <string>
namespace phosphor
{
namespace virtualSensor
{
using Json = nlohma... |
RashmicaG/phosphor-virtual-sensor | virtualSensor.cpp | #include "virtualSensor.hpp"
#include "config.hpp"
#include <fmt/format.h>
#include <phosphor-logging/log.hpp>
#include <sdeventplus/event.hpp>
#include <fstream>
#include <iostream>
static constexpr bool DEBUG = false;
static constexpr auto busName = "xyz.openbmc_project.VirtualSensor";
static constexpr auto sens... |
RashmicaG/phosphor-virtual-sensor | thresholds.hpp | <filename>thresholds.hpp
#pragma once
#include <xyz/openbmc_project/Sensor/Threshold/Critical/server.hpp>
#include <xyz/openbmc_project/Sensor/Threshold/HardShutdown/server.hpp>
#include <xyz/openbmc_project/Sensor/Threshold/PerformanceLoss/server.hpp>
#include <xyz/openbmc_project/Sensor/Threshold/SoftShutdown/server... |
Eidonko/Opencv-rgb2hsi | rgb2hsi.cpp | <gh_stars>0
#include <string.h>
#include <iostream>
#include <fstream>
#include <map>
#include <utility> // std::pair
#include <iomanip> // std::setprecision
#include <limits> // std::numeric_limits
#include <vector>
#include <algorithm> // std::max
#include <queue>
// OpenCV... |
pqrs-org/cpp-environment_variable | example/main.cpp | #include <iostream>
#include <pqrs/environment_variable.hpp>
int main(void) {
if (auto home = pqrs::environment_variable::find("HOME")) {
std::cout << "HOME: " << *home << std::endl;
}
return 0;
}
|
pqrs-org/cpp-environment_variable | tests/src/test.cpp | <reponame>pqrs-org/cpp-environment_variable<gh_stars>0
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <pqrs/environment_variable.hpp>
TEST_CASE("find") {
REQUIRE(pqrs::environment_variable::find("PATH"));
REQUIRE(pqrs::environment_variable::find("UNKNOWN_ENVIRONMENT_VARIABLE") == std::nullopt);
}
|
beardog-ukr/dragonbones-cocos2dx-v4-demo | DemoProj/Classes/dragonBones/cocos2dx/CCArmatureDisplay.cpp | <reponame>beardog-ukr/dragonbones-cocos2dx-v4-demo
#include "CCArmatureDisplay.h"
#include "CCSlot.h"
DRAGONBONES_NAMESPACE_BEGIN
CCArmatureDisplay* CCArmatureDisplay::create()
{
CCArmatureDisplay* displayContainer = new (std::nothrow) CCArmatureDisplay();
if (displayContainer && displayContainer->init())
... |
neutralinojs/neutralinojs-server-windows | src/serverlistener.cpp | #include "serverlistener.h"
#include <iostream>
#include <cstdlib>
#include <list>
#include <future>
#include <chrono>
#include <thread>
#include <sstream>
#include <fstream>
#include "settings.h"
#include "requestparser.h"
#include "router.h"
ServerListener::ServerListener(int port, size_t buffer_size) {
this... |
neutralinojs/neutralinojs-server-windows | src/settings.cpp | #include <iostream>
#include <fstream>
#include "../lib/json/json.hpp"
using namespace std;
using json = nlohmann::json;
json options;
namespace settings {
string getFileContent(string filename){
ifstream t(filename);
string buffer = "";
string line = "";
while(!t.eof()){
... |
neutralinojs/neutralinojs-server-windows | src/main.cpp | #include <iostream>
#include "serverlistener.h"
#define APP_NAME "Neutralino"
#define APP_VERSION "1.0.0"
using namespace std;
int main() {
cout << APP_NAME << " " << APP_VERSION << "" << endl;
ServerListener().run();
return 0;
}
|
deepakksingh/mmdetection | mmdet/ops/carafe/src/carafe_ext.cpp | <reponame>deepakksingh/mmdetection<gh_stars>100-1000
#include <ATen/ATen.h>
#include <torch/extension.h>
#include <cmath>
#include <vector>
#ifdef WITH_CUDA
int carafe_forward_cuda(at::Tensor features, at::Tensor rfeatures,
at::Tensor masks, at::Tensor rmasks, int kernel_size,
... |
fvidak00/Kviz | kviz.cpp | #include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
FILE *f,*g;
char p[200];
char a[200];
char b[200];
char c[200];
char d[200];
int t[101];
int i,r,br=0,j;
char o;
int x;
FILE *z;
main()
{
f=fopen("Pitanja.dat","r");
g=fopen("Odgovori... |
fvidak00/Kviz | upis_pitanja.cpp | #include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
FILE *f;
struct pitanja
{
char p[200];
char a[200];
char b[200];
char c[200];
char d[200];
}q;
int i;
main()
{
f=fopen("Pitanja.dat","a+");
gets(q.p);
... |
fvidak00/Kviz | upis_odgovora.cpp | #include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
FILE *g;
int t;
main()
{
g=fopen("Odgovori.dat","a+");
scanf("%d",&t);
fprintf(g,"%d\n", t);
fclose(g);
}
|
tanderegg/Sigma | src/systems/BulletPhysics.cpp | #include "systems/BulletPhysics.h"
#include "components/BulletShapeMesh.h"
#include "components/GLMesh.h"
#include "components/BulletShapeSphere.h"
namespace Sigma {
BulletPhysics::~BulletPhysics() {
if (this->dynamicsWorld != nullptr) {
delete this->dynamicsWorld;
}
if (this->solver != nullptr) {
delete ... |
tanderegg/Sigma | src/GLTransform.cpp | <gh_stars>1-10
#include "GLTransform.h"
const glm::vec3 GLTransform::FORWARD_VECTOR(0.0f,0.0f,-1.0f);
const glm::vec3 GLTransform::UP_VECTOR(0.0f,1.0f,0.0f);
const glm::vec3 GLTransform::RIGHT_VECTOR(1.0f,0.0f,0.0f); |
tanderegg/Sigma | src/controllers/GLSixDOFViewController.cpp | <filename>src/controllers/GLSixDOFViewController.cpp<gh_stars>1-10
#include "controllers/GLSixDOFViewController.h"
namespace Sigma{
namespace event{
namespace handler{
const float GLSixDOFViewController::SPEED_TRANSLATE = 2.0f;
const float GLSixDOFViewController::SPEED_ROTATE = 20.0f * 3.14159f;
co... |
tanderegg/Sigma | src/systems/GLSixDOFView.cpp | #include "systems/GLSixDOFView.h"
GLSixDOFView::GLSixDOFView(int entity_id) : IGLView(entity_id) {}
const glm::mat4 GLSixDOFView::GetViewMatrix() {
return glm::lookAt(this->transform.GetPosition(),
this->transform.GetPosition() + GLTransform::FORWARD_VECTOR * this->transform.GetOrientation(),
GLTra... |
tanderegg/Sigma | src/components/PhysicsMover.cpp | #include "components/PhysicsMover.h"
#include "GLTransform.h"
PhysicsMover::PhysicsMover(const int entityID) : IMoverComponent(entityID) {
}
void PhysicsMover::ApplyForces(const double delta) {
glm::vec3 deltavec = glm::vec3(delta);
// Rotation forces first
for (auto rotitr = this->rotationForces.begin(); rotitr... |
tanderegg/Sigma | src/IGLComponent.cpp | <filename>src/IGLComponent.cpp
#include "IGLComponent.h"
namespace Sigma{
// static member initialization
IGLComponent::ShaderMap IGLComponent::loadedShaders;
void IGLComponent::LoadShader(const std::string& filename) {
// look up shader that is already loaded
ShaderMap::iterator existingShad... |
tanderegg/Sigma | src/SoundFile.cpp | <reponame>tanderegg/Sigma
extern "C" {
#include <ogg/ogg.h>
#include <vorbis/codec.h>
}
#include <memory>
#include <string.h>
#include <cstdlib>
#include <iostream>
#include <string>
#include "resources/SoundFile.h"
struct OggLinkedPacket {
ogg_packet pack;
void * next;
};
struct VorbisState {
vorbis_info info;
... |
tanderegg/Sigma | src/main.cpp | <reponame>tanderegg/Sigma
#include <iostream>
#include "systems/OpenGLSystem.h"
#include "systems/OpenALSystem.h"
#include "systems/BulletPhysics.h"
#include "systems/FactorySystem.h"
#include "controllers/GUIController.h"
#include "controllers/FPSCamera.h"
#include "components/BulletMover.h"
#include "components/GLSc... |
tanderegg/Sigma | src/systems/FactorySystem.cpp | <reponame>tanderegg/Sigma<gh_stars>1-10
#include "systems/FactorySystem.h"
namespace Sigma{
std::shared_ptr<FactorySystem> FactorySystem::_instance;
FactorySystem::FactorySystem(){
// nothing to construct
}
FactorySystem::~FactorySystem(){
// destruction of private members is handled... |
tanderegg/Sigma | src/components/BulletShapeSphere.cpp | #include "components/BulletShapeSphere.h"
#include "components/GLMesh.h"
namespace Sigma {
void Sigma::BulletShapeSphere::SetRadius(float radius) {
this->shape = new btSphereShape(radius);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.