text
stringlengths
8.71k
38.4k
/* -*- C++ -*- * * ONScripter_image.cpp - Image processing in ONScripter * * Copyright (c) 2001-2011 Ogapee. All rights reserved. * * <EMAIL> * * This program 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 Softwa...
#include "player.h" #include "stream_handler.h" #include "clock.h" #include "video_renderer.h" #include "frame_queue.h" #include "sdl_renderer.h" // Enable profiling. //#define PROFILING 1 #ifdef PROFILING #include <chrono> #include <fstream> std::ofstream debugfile; uint32_t profcount = 0; #endif // Static initi...
#include <asio_utp.hpp> #include "multi_peer_reader.h" #include "multi_peer_reader_error.h" #include "cache_entry.h" #include "http_sign.h" #include "../http_util.h" #include "../session.h" #include "../util/watch_dog.h" #include "../util/crypto.h" #include "../util/intrusive_list.h" #include "../bittorrent/is_martian...
#include "attentional.h" #include "cnn/cnn-helper.h" #include <iostream> #include <fstream> #include <sstream> #include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp> #include <boost/program_options/parsers.hpp> #include <boost/program_options/variables_map.hpp> using namespace std; usi...
/************************************************************************************[ParSolver.cc] MergeSat -- Copyright (c) 2021, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software with...
/** *********************************************************************************************** * @brief CObjectJointSliding2D implementation * * @author <NAME> * @date 2018-06-17 (generated) * * @copyright This file is part of Exudyn. Exudyn is free software: you can redistribute it and/or ...
/* rgbd-tracker Copyright (c) 2014, <NAME>, All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version...
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
/* nblast_demo_plugin.cpp * The main file of plugin nblast_demo * 2018-10-25 by <NAME>. */ #include "nblast_demo_plugin.h" #include <QtGlobal> Q_EXPORT_PLUGIN2(nblast_demo, NblastDemoPlugin); QStringList NblastDemoPlugin::menulist() const { return QStringList() << tr("pre_processing") << tr("global_retrieve...
//===-- ManualDWARFIndex.cpp ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "CheckerGame.hpp" using std::cerr; using std::cout; using std::endl; using std::string; using std::ostringstream; sf::Time CheckerGame::timeElapsed; int CheckerGame::winner = 0; // no winner at initialization CheckerGame::CheckerGame(sf::RenderWindow& window, const bool& isHuman1, const bool& isHuman2) { i...
//============================================================================== /* Software License Agreement (BSD License) Copyright (c) 2003-2016, CHAI3D. (www.chai3d.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
// Copyright (C) 2016 <NAME>, <NAME> and MIT CSAIL // Prophet // // This file is part of Prophet. // // Prophet 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 y...
#include "SPH_2D.hpp" SPH_main *SPH_particle::main_data; // 计算每个黑线交点particle处于的蓝色grid里的grid的index void SPH_particle::calc_index(void) { for (int i = 0; i < 2; i++) { list_num[i] = int((x[i] - main_data->min_x[i]) / (2.0*main_data->h)); } } SPH_main::SPH_main() { SPH_particle::main_data = this...
/* ************************************************************************ * Copyright 2020 Advanced Micro Devices, Inc. * ************************************************************************ */ #include "norm.hpp" #include "rocsolver_test.hpp" #include "rocsolver_arguments.hpp" #include "rocsolver.hpp" #includ...
#include <gravity/CplexProgram.h> CplexProgram::CplexProgram(Model<>* m) { _cplex_env = make_shared<IloEnv>(); _cplex_model = make_shared<IloModel>(*_cplex_env); _model = m; m->fill_in_maps(); m->compute_funcs(); } void CplexProgram::update_model(){ _model->fill_in_maps(); _model->compute_...
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Fre...
/*! \file parquet.cpp \brief The parquet class definition, gives possibilty to read from and write into a parquet file. \author <NAME> @github.com/Malek-ATIA \version 1.0 \date 02.2021 */ #include "tools.h" #include "parquet.h" /*! \fn void reader(std::shared_ptr<parquet::Colu...
#include "Instance.h" #include <logik/window/Window.h> #define GLFW_INCLUDE_VULKAN #include <GLFW/glfw3.h> #include <algorithm> #include <fstream> #include <optional> #include <stdexcept> #include <vector> //REMOVEME #include <iostream> namespace { template<typename LambdaType> std::optional<uint32_t> Find...
#define USE_SSE2 #include "rgbhsv.h" #include "util.h" // ============================================================================ // [Pure C Implementation] // ============================================================================ void ahsv_from_argb_c(float* dst, const float* src, int length) { ...
//=========================================================================== /* CS277 - Experimental Haptics Winter 2010, Stanford University You may use this program as a boilerplate for starting your homework assignments. Use CMake (www.cmake.org) on the CMakeLists.txt file to generate p...
// Preprocessing the airline data at: // http://stat-computing.org/dataexpo/2009/the-data.html // prior to processing by bigmemory. // Bigmemory, and in particular big.matrix, requires that all of the data be numerical and of a uniform type. // In this case all big.matrix values are to be integers, so string // field...
#include "NeosegExecution.h" NeosegExecution::NeosegExecution(QString module) : Script(module) { } void NeosegExecution::setNewAtlas(bool newAtlas) { m_newAtlas = newAtlas; } void NeosegExecution::setExistingAtlas(QString atlas) { m_atlas = atlas; } void NeosegExecution::setAtlasFormat(QString atlasFormat) { ...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <rpc/rawtransaction_util.h> #include <block_proof.h> #include <coins.h> #include <core...
 #include "Color.h" Color::Color() : raw(0x00, 0x00, 0x00, 0xFF) { } Color::Color(const glm::u8vec4 &color) : raw(color) { } Color::Color(glm::u8 r, glm::u8 g, glm::u8 b, glm::u8 a) : raw(r, g, b, a) { } Color::Color(float r, float g, float b, float a) : raw(r*255, g*255, b*255, a*255) { } const Colo...
#include "model.h" double uniform() { /* Uniform random number in [0,1] */ double r; double rmax = RAND_MAX; r = rand()/rmax; return r; } double normal(double var) { /* Normal random number with mu = 0, var =var */ double x1,x2,R,w,y1,y2; double rmax = RAND_MAX; x1 = rand()/rmax; x2 ...
#include "capture.h" #include <stdio.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <linux/videodev2.h> static void log_stderr(camera_log_t type, const char* msg, void* pointer) { (void) pointer; switch (type) { case ...
/* MIT License Copyright (c) 2016-2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
#include "RTC_DS3231.h" // Variables externes // Variables locales propres au module char ConvAsciiToInt[5]; // tableau de '0' à "65535" char CdeAsciiArray[40]; uint8_t heures, minutes, secondes, DOW, jour, mois, short_annee; uint16_t ...
/* FCE Ultra - NES/Famicom Emulator * * Copyright notice for this file: * Copyright (C) 2002 Xodnizel * * This program 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 2 of the License, o...
// This file is designed as a kind of unit test for Glop. Run it and try the various tests to see // that Glop is working correctly. // TODO(darthur): // - Trap window-close events, and do not necessarily exit program when it happens // - Cease tab grab in some way on slider motion (due to ping?) // - Think more ab...
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT...
#include "Fuser.h" #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/foreach.hpp> #include "Found_NMS.h" #include <time.h> void Fuser::Load_Kernel(std::string input, const int in, const int out, float* &h_kernel, float* &d_kernel) { std::string input...
#include "lms7002_pnlCalibrations_view.h" #include "lms7002_gui_utilities.h" #include <wx/msgdlg.h> #include "numericSlider.h" #include "lms7suiteEvents.h" #include <wx/busyinfo.h> #include "lms7suiteAppFrame.h" using namespace lime; lms7002_pnlCalibrations_view::lms7002_pnlCalibrations_view(wxWindow* parent, wxWindow...
#include <pwd.h> // for getpwuid, passwd #include <stdio.h> // for NULL, remove, EOF #include <stdlib.h> // for abort #include <sys/stat.h> // for mkdir, stat #include <unistd.h> // for rmdir, getuid #include <algorit...
#include "OnlineDB/EcalCondDB/interface/LMFDat.h" #include <sstream> #include <cmath> using std::cout; using std::endl; LMFDat::LMFDat() : LMFUnique() { m_tableName = ""; m_max = -1; _where = ""; _wherePars.clear(); } LMFDat::LMFDat(EcalDBConnection *c) : LMFUnique(c) { m_tableName = ""; m_max = -1; ...
#include "utils.h" extern cv::Mat K, distCoeffs; extern SystemParameters sysPara; #define OPT_USE_MAHDIST namespace Line3D{ struct Data_optimizeRelmotion { vector<RandomLine3d>& a; vector<RandomLine3d>& b; Data_optimizeRelmotion(vector<RandomLine3d>&ina, vector<RandomLine3d>& inb):a(ina),b(inb){} }; void costFun_o...
#include "string.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_event.h" #include "esp_log.h" #include "nvs_flash.h" #include "lwip/err.h" #include "lwip/sys.h" // - - - - HTTP Client #include "esp_netif.h" #inc...
#include "include/GraphicsLibrary.h" Point4::Point4() : X(0), Y(0), Z(0), W(0) { } Point4::Point4(double x, double y, double z, double w) : X(x), Y(y), Z(z), W(w) { } Point4 Point4::Normalize() const { return Point4(this->X / this->W, this->Y / this->W, this->Z / this->W, 1); } Point4 Point4::Normalize_special() c...
//====================================================================================== /* Athena++ astrophysical MHD code * Copyright (C) 2014 <NAME> <<EMAIL>> * * This program is free software: you can redistribute and/or modify it under the terms * of the GNU General Public License (GPL) as published by the Fr...
//===- OverflowDetect.cpp - Example code from "Writing an LLVM Pass" ---===// // // This file implements the LLVM "Range Analysis Instrumentation" pass // //===----------------------------------------------------------------------===// #include "llvm/IR/Type.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Operator...
//===-- SIInstrInfo.cpp - SI Instruction Information ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// -------------------------------------------------------------------------- // Module Name: NineGrid2.cpp // // Copyright (c) 2000, 2001 Microsoft Corporation // // Implementation of the DrawNineGrid2 function // // History: 2000-12-20 justmann created // -------------------------------------------------...
// STL #include <iostream> #include <map> #include <string> #include <vector> // Windows #include <windows.h> // Framework #include <Application.h> #include <DebugHelper.h> #include <MeshOpenGL.h> #include <ShaderProgram.h> namespace fw = Framework; // GLM #include <glm/gtc/matrix_transfor...
#include <stdio.h> #include <stdint.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <cmath> #include <linux/i2c-dev.h> #include <linux/i2c.h> #include <sys/ioctl.h> #include <math.h> #include "aos/common/logging/queue_logging.h" #include "aos/common/util/phased_loop.h" #includ...
#include "VelocityControl.h" #include "SlalomParams.h" using namespace slalomparams; VelocityControl::VelocityControl() : DIST_GAP_FROM_L(0.010), DIST_GAP_FROM_R(0.010) { // mc = MotorControl::getInstance(); // sens = WallSensor::getInstance(); // gyro = Gyro::getInstance(); time = Timer::getTime(); end_fla...
#include <iostream> #include <cstdlib> #include <string> #include <cstring> #include <ctime> #include <vector> #include "Game.h" using namespace std; /****************************************************************************** * ** Constructor: Game() * ** Description: sets initial default values for Game class m...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include "chrome/browser/autocomplete/autocomplete.h" #include "base/string_util.h" #include "chrome/browser/autocomplete/...
#include <iostream> #include <unordered_map> #include <array> #include <random> #include "delfem2/mat3.h" #include "delfem2/msh_io_obj.h" #include "delfem2/mshprimitive.h" #include "delfem2/points.h" #include "delfem2/grid3hash.h" // --------------- struct GridNodeData { double mass; double velo[3]; double fo...
/* FILE: simpledemag.cc -*-Mode: c++-*- * * Average H demag field across rectangular cells. Simple * implementation that does not take advantage of any memory * saving or calculation speed improvements possible using * symmetries in interaction tensor or realness of data in * spatial domain. * */ #...
int T ,SzoNo,tx3, yaN , k7R/*k*/, /*HPp*/qpD, nx , rB , o , O,PWJ4w , oL1Ee , YD , ztwP //EpG0P ,//GjGikE k, Kt ,F4NWM , dK , KHD ,oStM , Zzi ,Trws ,Bqa ,O0//w2q , h ,jw8, L0aPr4 ,PLm ,I8u ,QyYdu , Wd ,fI /*h*/,// Fz7L , iB ,Y2T,P0,Mj9t, Iyf , chiYo ,rJn , pr5,//3Me NLX ,DYQiguy ,yl1 ...
/* -------------------------------------------------------------------------- * * Simbody(tm) Example: Contact Playground * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
#include <iostream> #include <list> #include <algorithm> #include <functional> #include <memory> #include <fstream> #include <set> #include <map> //my great structures #include <structures.h> using namespace std; void flip(string &s) { /*string res; for (int i = s.size()-1; i >= 0; --i) { res+=s.at(i); } retur...
#include "Mesh.h" #include <iostream> #include <fstream> #include <string.h> #include <stdint.h> #include <math.h> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "SDL2/SDL.h" #include "Sound.h" // base header typedef struct { int8_t version[4]; // "MDL3", "MDL4", or "MDL5" int32_t...
// Copyright © 1996-2018, Valve Corporation, All rights reserved. // // Purpose: Device Common Base Class. #include "audio_pch.h" #include "snd_dev_common.h" #define ISPEAKER_RIGHT_FRONT 0 #define ISPEAKER_LEFT_FRONT 1 #define ISPEAKER_RIGHT_REAR 2 #define ISPEAKER_LEFT_REAR 3 #define ISPEAKER_CENTER_FRONT 4 extern...
// // Simu5G // // Authors: <NAME>, <NAME>, <NAME> (University of Pisa) // // This file is part of a software released under the license included in file // "license.pdf". Please read LICENSE and README files before using it. // The above files and the present reference are part of the software itself,...
#include <stdio.h> #include <stdlib.h> #include <vector> #include <iostream> #include <algorithm> #include <bitset> #include <iomanip> #include <ctime> #include <cmath> #include <random> #include "trajectory/dubins_steer.h" #include "graph/graph.h" #include "trans_sys/buchi_automaton.h" #include "trans_sys/spot_hoa_i...
#include "cnn/nodes.h" #include "cnn/cnn.h" #include "cnn/training.h" #include "cnn/timing.h" #include "cnn/rnn.h" #include "cnn/gru.h" #include "cnn/lstm.h" #include "cnn/dict.h" #include "cnn/expr.h" #include <algorithm> #include <iostream> #include <fstream> #include <sstream> #include <cstdlib> #include <set> #in...
#include <stdio.h> #include <string.h> #include <stdlib.h> extern "C" { #include "tk_wordlist.h" } /* Usage: ./wordtool 2of12inf.txt gamedata/wordfile.dat */ // For debugging, output a graph. Not useful with a lot of words. // Use "graphviz" to draw the graph, like this: //$ dot dbgtrie.dot -Tpng -o dbgtrie.png #defi...
#include "HISSToolsFreeze.h" #include "IPlug_include_in_plug_src.h" #include <HISSTools_Controls.hpp> #include "IControls.h" enum Modes { kRegular, kRandomised, kManual }; // Visual Design class Design : public HISSTools_Design_Scheme { public: Design() : HISSTools_Design_Scheme(true) ...
/* * Main.cpp * * The main program of the PAPR product firmware. Here are some coding guidelines * that will help minimize coding errors... * * KEEP THE MAIN LOOP RUNNING AT ALL TIMES. DO NOT USE DELAY(). * Be careful - this firmware keeps running even when the user does "Power Off". * This code may need to ru...
#include "modules/bio_base/kmer.h" #include "modules/bio_mapred/kmer_set.h" #include "modules/mapred/resource_manager.h" #include "modules/io/msgpack_transfer.h" #include "modules/io/log.h" #include "modules/io/parallel.h" #include "modules/io/track_mem.h" class kmer_set::kmer_tail_reference : public boost::totall...
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2015, University of Pisa * Copyright (c) 2010, ISR University of Coimbra. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificatio...
/* * BoxFeature2.cpp * OpenCV * * Created by <NAME> on 10/22/10. * Copyright 2010 UC San Diego. All rights reserved. * */ #include "BoxFeature2.h" #include "DebugGlobals.h" #include <assert.h> #include <stdio.h> #include <math.h> #include <iostream> //#include <omp.h> #define max(x,y) (x>y?x:y) #define min...
#include <text/NumberText.h> #include <text/TextFunctions.h> #include <text/UTF.h> #include <bmp/BMP.h> #include <Array.h> #include <ArrayDef.h> #include <File.h> #include <Types.h> #include <Windows.h> #include <mfapi.h> #include <mfidl.h> #include <mfreadwrite.h> #include <mferror.h> #undef DeleteFile #include <ass...
// license:BSD-3-Clause // copyright-holders:<NAME>,<NAME> #include "emu.h" #include "igs036crypt.h" /**************************************************************************** IGS036 encryption emulation The encryption used by the IGS036 seems to be another iteration over previous IGS encryption schemes. Basically...
#include "../include/cte_bits/bunch.hpp" #include "../include/cte_bits/distributions.hpp" #include "../include/cte_bits/physics.hpp" #include "../include/cte_bits/radiation.hpp" #include "../include/cte_bits/random.hpp" #include "../include/cte_bits/synch.hpp" #include "../include/cte_bits/utils.hpp" #include <algorith...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <bits/stdc++.h> #include <QFile> #include <QTextStream> #include <QImage> #include <QPixmap> #include <QGraphicsPixmapItem> #include <math.h> using namespace std; MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui...
/* * DEBUG: section 13 High Level Memory Pool Management * AUTHOR: <NAME> * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals from * the Internet community; see the CONTRIBUTOR...
/* Copyright (c) 1999 by <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>. * * Version: 1.00 01 Jun 98 * Version: 1.01 03 Jun 98 * Removed unused variables and parameters * Improved formatted output * Version: 1.10 26 Jun 98 * Improved modularity * Removed deb...
//===-- Variable.cpp --------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
/* * This file is part of the Simutrans-Extended project under the Artistic License. * (see LICENSE.txt) */ #include "finance.h" #include "ai.h" #include "../simcity.h" #include "../simconvoi.h" #include "../simhalt.h" #include "../simintr.h" #include "../simmenu.h" #include "../simskin.h" #include "../simware.h" ...
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2022 Scipp contributors (https://github.com/scipp) #include <scipp/variable/math.h> #include <tuple> #include <gtest/gtest.h> #include "test_macros.h" #include "scipp/core/element/math.h" #include "scipp/variable/arithmetic.h" #include "scipp/variable/bins.h...
//----------------------------------*-C++-*----------------------------------// /*! * \file cdi_ipcress/test/ReadOdfIpcressFile.cc * \author <NAME> * \date Thu July 10 2008 * \note Copyright (C) 2008-2019 Triad National Security, LLC. * All rights reserved. */ //--------------------------------------...
#include <gtest/gtest.h> #include <cstdint> #include <fp16.h> #include <tables.h> TEST(FP16_ALT_TO_FP32_BITS, normalized_powers_of_2) { const uint16_t min_po2_f16 = UINT16_C(0x0400); const uint16_t eighths_f16 = UINT16_C(0x3000); const uint16_t quarter_f16 = UINT16_C(0x3400); const uint16_t half_f16 ...
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //=====================================================...
/** \class EcalClusterEnergyCorrectionObjectSpecific * Function that provides supercluster energy correction due to Bremsstrahlung loss * * $Id: EcalClusterEnergyCorrectionObjectSpecific.h * $Date: * $Revision: * \author <NAME>, October 2011 */ #include "DataFormats/EcalDetId/interface/EcalSubdetect...
/* * Copyright (c) 2016, <NAME> * Copyright (c) 2016, <NAME> * Copyright (c) 2019, <NAME> * * 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. * ...
//===- LiftMemRefSubview.cc - simplify access ------------------ C++-===// #include "PassDetail.h" #include "phism/mlir/Transforms/PhismTransforms.h" #include "phism/mlir/Transforms/Utils.h" #include "mlir/Analysis/AffineAnalysis.h" #include "mlir/Analysis/AffineStructures.h" #include "mlir/Analysis/SliceAnalysis.h" ...
/* * This file is part of https://github.com/martinruenz/maskfusion * * This program 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) any later versi...
/* * Matcherx.cpp * * Created on: Jan 12, 2019 * Author: sujiwo */ #include <algorithm> #include <Matcher.h> #include "KeyFrame.h" #include "utilities.h" #include "triangulation.h" #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/core/eigen.hpp> ...
/* =========================================================================== Doom 3 GPL Source Code Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?). Doom 3 Source Code is free software: you can redistribute it and/or modify...
#include <bits/stdc++.h> using namespace std; extern "C" { int yylex(void); void yyerror(const char *s); int yywrap(void); } map<string, string> ascii_to_var; map<string, string> printf_body; int print_body; int ascii_counter = 0; ofstream assembly_file; #define STR(VAR) (#VAR) #define release 1 #define M...
#include "decoder.h" #include "decoder_config.h" #include <atomic> #include <iostream> #include "ans_config.h" #include "ans_ocl.h" using gpu::GPUContext; static inline cl_mem_flags GetHostReadOnlyFlags() { #ifdef CL_VERSION_1_2 return CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR | CL_MEM_HOST_NO_ACCESS; #else retur...
/* This file is part of spixel. Spixel 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) any later version. Foobar is distributed in ...
/////////////////////////// Filters ///////////////////////////////// // // Before compression, data is encoded in blocks with the following format: // // <type> <size> <encoded-data> // // Type is 1 byte (type Filetype): DEFAULT=0, JPEG, EXE // Size is 4 bytes in big-endian format. // Encoded-data decodes to <size>...
//# include <dsn/dist/replication/replication_service_app.h> //# include <dsn/apps/pegasus/meta_service_app.h> //# include <dsn/apps/pegasus/client.h> //# include <dsn/apps/pegasus/client_error.h> //# include "pegasus.server.impl.h" //# include "pegasus.client.fake.h" //# include "pegasus.check.h" #include "rrdb_clien...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL license version 2 under * French law and abiding by the rules of distribution of f...
#include"Boss/Mod/PeerStatistician.hpp" #include"Boss/Msg/CommandFail.hpp" #include"Boss/Msg/CommandRequest.hpp" #include"Boss/Msg/CommandResponse.hpp" #include"Boss/Msg/DbResource.hpp" #include"Boss/Msg/ForwardFee.hpp" #include"Boss/Msg/InternetOnline.hpp" #include"Boss/Msg/ListpeersAnalyzedResult.hpp" #include"Boss/M...
#include "vtkConeSource.h" #include "vtkSphereSource.h" #include "vtkCylinderSource.h" #include "vtkPolyDataNormals.h" #include "vtkMantaPolyDataMapper.h" #include "vtkLookupTable.h" #include "vtkScalarsToColors.h" #include "vtkMantaProperty.h" #include "vtkMantaActor.h" #include "vtkMantaCamera.h" #include "vtkMantaRe...
/* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
/*************************************************************************************************************************** * landpad_det.cpp * Author: Jario * Update Time: 2020.1.12 * * 说明: 降落目标识别程序,降落板的尺寸为60cmX60cm * 1. 【订阅】图像话题 (默认来自web_cam) * /prometheus/camera/rgb/image_raw * 2. 【发布】目标位置...
#include <stdio.h> #include <cstdio> #include <string> #include <map> #include <vector> #include "Vector.h" #include "ProgressBar.h" #include <numpy/arrayobject.h> #include <math.h> #define MAX_FIB_LEN 10000 // CLASS to store the segments of one fiber class segKey { public: unsigned short x, y, z; unsign...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
#include "brook.h" using Brook::Graph; Graph::Graph() : brook_variable (2, 8) , brook_variable_1 (12, 8) , brook_variable_2 (8, 4) , brook_variable_3 (12, 4) , brook_variable_4 (4, 2) , brook_variable_5 (12, 2) , brook_variable_6 (2, 2) , brook_variable_7 (12, 2) { brook_variable(0, 0) = -0.609609; brook_vari...
#include "Sky.h" #include "WICTextureLoader.h" #include "DDSTextureLoader.h" #include <algorithm> using namespace DirectX; Sky::Sky( const wchar_t* cubemapDDSFile, Mesh* mesh, SimpleVertexShader* skyVS, SimplePixelShader* skyPS, SimpleVertexShader* fullscreenVS, SimplePixelShader* irradianceMapPS, SimplePi...
/* * An implementation file for a class that holds dot plot data and can write those images to files if necessary. * * (c) 2010 Mathews Lab, University of Rochester Medical Center. * Redone in 2012. * Written by <NAME>. */ #include "DotPlotHandler.h" /////////////////////////////////////////////////////////////...
#include <nobody/glut_app.hpp> #include <GL/glut.h> #include <Eigen/Dense> #include <algorithm> #include <chrono> #include <cmath> #include <fstream> #include <functional> #include <iostream> #include <list> #include <random> #include <vector> #include <nobody/camera.hpp> #include <nobody/energy.hpp> #include <nobody...
#include <stdio.h> #include <string.h> #include <jni.h> #include <android/log.h> #include "jpeglib.h" #include "jerror.h" #include "jinclude.h" #include "YuvToJpegEncoderMT.h" #undef ANDROID #include "jpegint.h" extern "C" { #include <setjmp.h> }; #ifdef LOG_ON #define LOG_TAG "CLRShot" #define LOGD(...) __android_lo...