text
stringlengths
5.71k
33.7k
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- // // Quick hack based on ffmpeg // tutorial http://dranger.com/ffmpeg/tutorial01.html // in turn based on a tutorial by // <NAME> (<EMAIL>) // // HELP NEEDED // Note, this is known to not be optimal, causing flicker etc. It is at this // point merely a de...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // #include <assert.h> #include <memory> #include <iostrea...
// // NumberParserTest.cpp // // $Id: //poco/1.4/Foundation/testsuite/src/NumberParserTest.cpp#1 $ // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and ...
// // Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of co...
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #pragma once #include "cell.hpp" #include "lgraph_base_core.hpp" class Node_pin; typedef int64_t SIndex_id; // Short Edge_raw must be signed +- offset struct __attribute__((packed)) LEdge_Internal { // 6 bytes total protected: ...
// Copyright 2015 Google Inc. All rights reserved // // 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...
/*********************************************************************** Copyright (c) 2014, <NAME> University All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must reta...
/* This file is part of libDAI - http://www.libdai.org/ * * Copyright (c) 2006-2011, The libDAI 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 <iostream> #include <fstream> #include <ostream> #include <cstdlib> #i...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "openvino/frontend/tensorflow/frontend.hpp" #include "input_model.hpp" #include "op_table.hpp" #include "openvino/frontend/tensorflow/graph_iterator.hpp" #include "openvino/pass/manager.hpp" #include "openvino/util/common_...
#include "IOEvent.h" int Nova::IOEvent::TranslateAction( std::string code ){ if( code == "M_MOTION" ) return M_MOTION; if( code == "M_UP" ) return M_UP; if( code == "M_DOWN" ) return M_DOWN; if( code == "M_SCROLL" ) return M_SCROLL; if( code == "K_UP" ) retur...
/* CSCDDUEventData.cc * Modified 4/21/03 to get rid of arrays and store all CSC data * in vectors. * A.Tumanov */ #include "EventFilter/CSCRawToDigi/interface/CSCDDUEventData.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include <iostream> #include <cstdio> #include "EventFilter/CSCRawToDigi/sr...
#include "ModuleImport.h" #include "Globals.h" #include "Application.h" #include "Primitive.h" #include "MathGeoLib/MathGeoLib.h" #include "Glew/include/glew.h" #include "SDL\include\SDL_opengl.h" #include "Assimp/include/cimport.h" #include "Assimp/include/scene.h" #include "Assimp/include/postprocess.h" #include "Ass...
// Copyright 2017 <NAME>. // // Author: <NAME> (<EMAIL>) // // 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, mo...
// // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. // // D...
// compute-probs.cc // Copyright 2016 Johns Hopkins University (Author: <NAME>) // See ../COPYING for clarification regarding multiple authors // // 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 ...
// Copyright (c) 2013, <NAME> <<EMAIL>> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this // list of condi...
/* Copyright (c) 2014 Aerys 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, merge, publish, distribute, sublicens...
//Line_following_test #include <Arduino.h> // The rangefinders work well to show the distance to objects from around // 1 inch (2 cm) to around 9 feet away (3 meters), but they have trouble when // they aren't approximately at a right angle to the object they are detecting. // If the angle is too great (over abo...
#include "md5.h" #include <string.h> using namespace std; #define S11 7 #define S12 12 #define S13 17 #define S14 22 #define S21 5 #define S22 9 #define S23 14 #define S24 20 #define S31 4 #define S32 11 #define S33 16 #define S34 23 #define S41 6 #define S42 10 #define S43 15 #define S44 21 #d...
/// @file SpectralLineMaster.cc /// /// @copyright (c) 2009 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Australia /// <EMAIL> /// /// This file is part of the ASKAP software distribution. /// /// The ASKA...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
/* Copyright (C) 2004, 2005 MySQL AB 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; version 2 of the License. This program is distributed in the hope that it will be useful, but WITH...
/* * Copyright (c) 2015, 2016, 2017, 2018, 2019, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this ...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE USE OF...
#include "VegaMain.h" #include "Tournament.h" int filter[8][2]; // [][0]=on/off status, [][1]=start column struct FontListDisplay : Display { virtual void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const { Font fnt = Courier(12); //Font(q, r.Height...
// **************************************************************************** // // Copyright (c) 2014, <NAME>, <NAME>, Johns Hopkins University // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following condi...
/****************************************** * OpenCV Tutorial: Ball Tracking using * * Kalman Filter * ******************************************/ // Module "core" #include <opencv2/core/core.hpp> // Module "highgui" #include <opencv2/highgui/highgui.hpp> // Module "imgproc" #include <o...
#pragma once #include <Eigen/Dense> #include <fstream> #include <iostream> #include <list> #include <string> #include <iomanip> #include <limits> #include <vector> #include "interpolator.hpp" #include "system.hpp" #include "rksolver.hpp" #include "wkbsolver.hpp" /** A class to store all information related to a numer...
// This file is part of comma, a generic and flexible library // Copyright (c) 2014 The University of Sydney // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // 1. Redistributions of source cod...
#include "SkinnedMesh.h" #include "TextureLoader.h" #include <iostream> #define POSITION_LOCATION 0 #define NORMAL_LOCATION 1 #define TEX_COORD_LOCATION 2 #define BONE_ID_LOCATION 3 #define BONE_WEIGHT_LOCATION 4 static glm::mat4 AssimpToGLM(const aiMatrix4x4 &matrix) { //the documentation says Assimp...
#include "expTree.h" #include "StringOperations.h" #include <cmath> #include <algorithm> #include <sstream> #include <iostream> void ExpTree::printInfix(std::ostream &out) const { //call function on root printInfixNode(out, root); out << std::endl; }//printInfix void ExpTree::printInfixNode(std::ostream &ou...
#include "Playing_Sound.h" #include <assert.h> int main(int argc, char *argv[]) { if (argc != 2) { fprintf(stderr, "usage: %s input_file\n" "API example program to show how to output to the screen " "accessed through AVCodecContext.\n", argv[0]); return 1; } av_register_all(); pFormatCtx = ...
// This file is part of meshoptimizer library; see meshoptimizer.h for version/license details #include "meshoptimizer.h" #include <assert.h> #include <math.h> #include <string.h> // This work is based on: // <NAME>. Optimizing the Graphics Pipeline with Compute. 2016 // <NAME>. GeometryFX 1.2 - Cluster Culling. 2016...
#include <pybind11/pybind11.h> #include <boost/function_output_iterator.hpp> #include <boost/iterator/transform_iterator.hpp> #include <boost/range/iterator_range_core.hpp> #include "modules/io/utils.h" #include "python/biograph/internal/assemble.h" #include "python/biograph/internal/anchor.h" variant_wrapper::varian...
#include <iostream> #include <fstream> #include <string> #include <conio.h> // Only be using get character and get string function #include <Windows.h> // Library containing functions and headers to Interact with Windows API #include <wininet.h> #include <thread> #include <ctime> #pragma comment(lib, "Wininet") ...
#include <avatar_locomanipulation/ik_module/ik_module.hpp> // Constructor IKModule::IKModule(){ } IKModule::IKModule(std::shared_ptr<RobotModel> & robot_model_in){ setRobotModel(robot_model_in); } // Destructor IKModule::~IKModule(){} void IKModule::setRobotModel(std::shared_ptr<RobotModel> & robot_model_in){ ...
// Copyright <NAME> 2008 - 2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <iostream> #include <string> #include "stdint.h" #include <limits> #include <boost/algorithm/string...
// copyright (c) 2011 the leveldb authors. all rights reserved. // use of this source code is governed by a bsd-style license that can be // found in the license file. see the authors file for names of contributors. #include <stdio.h> #include <stdlib.h> #include <kcpolydb.h> #include "util/histogram.h" #include "uti...
#define STRICT_R_HEADERS #include <Rcpp.h> #include <cppgoslin.h> #include <typeinfo> using namespace Rcpp; using namespace goslin; LipidParser *lipid_parser = NULL; inline LipidParser* get_parser() { if (!lipid_parser) { lipid_parser = new LipidParser(); } return lipid_parser; } /** * Join...
#include <vsg/all.h> #include <iostream> #include <ostream> #include <chrono> #include <thread> #include <osg/Version> #include <osg/Billboard> #include <osg/MatrixTransform> #include <osg/AnimationPath> #include <osg/io_utils> #include <osgDB/ReadFile> #include <osgDB/WriteFile> #include <osgUtil/Optimizer> #include...
#include <cstdlib> #include <poplar/IPUModel.hpp> #include <popops/Reduce.hpp> #include <popops/codelets.hpp> #include <iostream> #include <poplar/Program.hpp> #include <algorithm> #include <random> #include <cxxopts.hpp> #include <popops/Zero.hpp> #include "include/GraphcoreUtils.hpp" #include "include/LbmParams.hpp"...
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ #include <boost/uuid/uuid_io.hpp> #include <vnc_cfg_types.h> #include <base/util.h> #include <ifmap/ifmap_node.h> #include <cmn/agent_cmn.h> #include <cfg/cfg_init.h> #include <oper/agent_sandesh.h> #include <oper/operdb_init.h> #include <oper/c...
/* * \file EcalDigisValidation.cc * * \author <NAME> * */ #include <Validation/EcalDigis/interface/EcalDigisValidation.h> #include <DataFormats/EcalDetId/interface/EBDetId.h> #include <DataFormats/EcalDetId/interface/EEDetId.h> #include <DataFormats/EcalDetId/interface/ESDetId.h> #include "CalibCalorimetry/EcalTri...
/* The Computer Language Benchmarks Game http://benchmarksgame.alioth.debian.org/ Contributed by <NAME> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cstdlib> #include <iostream> #include <iomanip> #include <vector> #include <algorithm> #include <sched.h> #include <pthread.h> #includ...
/* 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 "group.h" Group::Group(/* args */) : Shape() { this->boundingBox = std::pair<Vec4, Vec4>(Vec4(std::numeric_limits<Float>::infinity(), std::numeric_limits<Float>::infinity(), std::numeric_limits<Float>::infinity(), 1.), Vec4(-std::numeric_limits<Float>::infinity(), -std::numeric_limits<Float>::infinity(), -s...
/***************************************************************************** * This file is part of the Project JanusSortRBC * * Copyright (c) 2016-2017, <NAME> <<EMAIL>> * Copyright (c) 2016-2019, <NAME> <<EMAIL>> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. ****************...
/* * Copyright (c) 2017 Intel Corporation * SPDX-License-Identifier: BSD-2-Clause */ #include <vector> #include <assert.h> #include <algorithm> #include <cmath> #include <iostream> #include <stdio.h> #include "gufunc_scheduler.h" // round not available on VS2010. double guround (double number) { return number < 0...
// <NAME> #include <stdio.h> #include <stdlib.h> #include "pbrt.h" #include "reflection.h" #include "sampling.h" #include "memory.h" #include "api.h" #include "paramset.h" #include "shapes/disk.h" using namespace pbrt; static MemoryArena arena; static RNG rng; // extract the red channel from a Spectrum class doubl...
#include "ModelComponent.h" #include <fstream> #include <iostream> #include <vector> #include <algorithm> #include <string> #include "Texture.h" #include <GL/freeglut.h> #include "PlayingFieldComponent.h" #include "PlayerComponent.h" #include <vector> #include <list> #include "Game.h" std::vector<ModelComponent*> Mode...
/* decomp.cpp */ /* Java Decompiler Copyright (c) 1994-2003, <NAME>. Distributed under the GNU GPL Version 2. This package is available from http://pdr.cx/hbd/ */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include "general.h" #include "options.h" #include "version.h" #include "cp.h" #incl...
#include "../host/typedefs.h" void bin_dense( const Word wt_mem[CONVOLVERS][C_WT_WORDS], const Word kh_mem[KH_WORDS], Word dmem[2][CONVOLVERS][64] ) { static int local_cnt = 0; static char ctrl_i = 0; ap_uint<2> layer_type; ap_uint<1> d_i_idx; ap_uint<1> d_o_idx; Address o_index; unsigned n_inputs; unsigned...
/* * NCS_Digital_Sign * * Contributing Authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * * * */ #include <iostream> #include <vector> #include <time.h> #include <iomanip> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <op...
#include <opencv2/core/core.hpp> #include "foreground_extraction.hpp" GraphType* createGraph(int rows, int cols) { GraphType *g = new GraphType(/*estimated # of nodes*/ rows*cols, /*estimated # of edges*/ rows*cols); for (int i = 0 ; i < rows*cols ; i++) { g -> add_node(); } return g; } void assignDataTerm(...
#include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <cmath> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include "Shader.hpp" // Stored globally so it can be modified in framebufferSizeC...
//- // ========================================================================== // Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk // license agreement provided at the time of installation or download, // or which otherwise accompan...
/* * stmt.cpp --- Seq AST statements. * * (c) Seq project. All rights reserved. * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. */ #include <memory> #include <string> #include <vector> #include "parser/ast.h" #include "parser/visitors/vi...
#include <iostream> #include <graphics.h> #include <string> #include <math.h> #include <vector> #include "xuli.h" #include "Button.h" #include <map> //abcdef /* run this program using the console pauser or add your own getch, system("pause") or input loop */ void draw_xOy(); void draw_triangle_direction(int x1, int y1,...
// Copyright 2021 The WebNN-native Authors // // 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 ...
 #ifdef CLIENT_DLL #include "cbase.h" #include "filesystem.h" #else #include "procshader/shaderincludes.h" #include "ProcShaderInterface.h" #endif #include "IVProcShader.h" #ifndef AllocCheck_Alloc #define AllocCheck_Alloc() ((void)NULL) #endif #ifndef AllocCheck_Free #define AllocCheck_Free() ((void)NULL) #endif ...
// Copyright 2021, VIXL authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions ...
#include <uWS/uWS.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include "math.h" #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" #include "spline.h" // For convenience using nlohmann::json; using std::string; using...
#include "stdafx.h" #include "Hull.h" #include <dingus/math/Plane.h> #include <dingus/math/AABox.h> #include <dingus/gfx/DebugRenderer.h> // -------------------------------------------------------------------------- // Given inverse of view*proj matrix, calculate 8 corners of the frustum void CalculateFrus...
#include <fms.h> #include "fmstesting.hpp" #include <gtest/gtest.h> TEST(Fms, Version) { FmsInt v = 0; ASSERT_EQ(FmsGetInterfaceVersion(&v), 0); EXPECT_EQ(FMS_INTERFACE_VERSION, v); } // Compare interface TEST(Fms, DataCollectionCompare) { FmsDataCollection *dcs0 = NULL; FmsDataCollection *dcs1 = NULL; Fm...
/* * Copyright (C) 2009 Advanced Micro Devices, Inc. All Rights Reserved. */ //-*-c++-*- // ==================================================================== // ==================================================================== // // Module: opt_mtype_b.cxx // $Revision: 1.1.1.1 $ // $Date: 2005/10/21 19:00:00...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
#include "mainGame.h" mainGame::mainGame() { // Light Blue colorScheme[0].r = 83; colorScheme[0].g = 158; colorScheme[0].b = 224; // Mid Blue colorScheme[1].r = 41; colorScheme[1].g = 31; colorScheme[1].b = 202; // Dark Blue colorScheme[2].r = 6; colorScheme[2].g = 4; colorScheme[2].b = 39; // Construct ...
// Copyright (c) 2020 <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, merge, publish, distr...
/// /// \file /// /// This file is a part of pattern matching testing suite. /// /// \author <NAME> <<EMAIL>> /// /// This file is a part of Mach7 library (http://parasol.tamu.edu/mach7/). /// Copyright (C) 2011-2012 Texas A&M University. /// All rights reserved. /// #include "patterns/all.hpp" #include <...
#include <cstdlib> #include <iostream> #include <cmath> #include <GLFW/glfw3.h> /* clang++ -I/usr/local/Cellar/glfw3/3.1.1/include -L/usr/local/Cellar/glfw3/3.1.1/lib -lglfw3 -framework OpenGL gradient-field.cpp -o gradient-field */ // Globals etc. //////////////////////////////////////////////////////////////// #de...
/*----------------------------------------------------------------- * Programmer(s): <NAME> @ SMU *--------------------------------------------------------------- * LLNS/SMU Copyright Start * Copyright (c) 2015, Southern Methodist University and * Lawrence Livermore National Security * * This work was performed...
/** * @file SVM_.cpp * @brief mex interface for cv::ml::SVM * @ingroup ml * @author <NAME>, Amro * @date 2012, 2015 */ #include "mexopencv.hpp" #include "mexopencv_ml.hpp" using namespace std; using namespace cv; using namespace cv::ml; // Persistent objects namespace { /// Last object id to allocate int last_id...
// This is brcv/shp/dbsk2d/dbsk2d_ishock_lineline.cxx //: // \file #include <vcl_cstdio.h> #include "dbsk2d_ishock_lineline.h" #include "dbsk2d_lagrangian_cell_bnd.h" //: \todo Need new formula for the special case dbsk2d_ishock_lineline:: dbsk2d_ishock_lineline (int newid, double stime, dbs...
#include "global_footstep_planner/global_footstep_planner.h" #include <tf/tf.h> #include <chrono> GlobalFootstepPlanner::GlobalFootstepPlanner(ros::NodeHandle nh) { nh_ = nh; // Load rosparams from parameter server std::string foot_plan_discrete_topic, foot_plan_continuous_topic, robot_state_topic; nh.param<...
#include "../include/Logistic_Regr.hpp" #include <bits/stdc++.h> using namespace std; int flag = 0; int train_size = 0; int test_size = 0; int true_negatives = 0; int false_negatives = 0; int true_positives = 0; int false_positives = 0; Point5d batch_gd_grad; LogisticRegression::LogisticRegression(double learning...
#include <ros/ros.h> #include <ros/package.h> #include <geometry_msgs/PoseWithCovarianceStamped.h> #include <nav_msgs/Odometry.h> #include <sensor_msgs/Imu.h> #include <std_msgs/Float32.h> #include <diagnostic_msgs/DiagnosticArray.h> #include <diagnostic_msgs/DiagnosticStatus.h> #include <diagnostic_msgs/KeyValue.h> #i...
/* USER CODE BEGIN Header */ /* Project Name: TM1638 File: TM1638plus_TEST_Model2.ino Description: demo file library for "model 2" TM1638 module(16 KEY 16 pushbuutons). Carries out series of tests demonstrating STm32 cubeide library TM1638plus. The tests will increment automatically with exception of ...
// Copyright 2016 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h" #include "core/fpdfapi...
/***************************************************************************** Copyright (C) 1994-2016 Lawrence Livermore National Security, LLC. LLNL-CODE-425250. All rights reserved. This file is part of Silo. For details, see silo.llnl.gov. Redistribution and use in source and binary forms, with or without modific...
/* * GStreamer * Copyright (C) 2013 <NAME> <<EMAIL>> * * 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, modi...
/* Copyright (c) 2007, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and t...
/** \file * \author Copyright (c) 2013 maldworth <https://github.com/maldworth> * * \note * This file is part of gphoto2pp * * \note * gphoto2pp 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; ...
/** * @file * @author <NAME> */ #include "walk_parameters.h" #include "smpc_solver.h" /** * @brief Initialize parameters to default values. * * @param[in] broker parent broker. */ walkParameters::walkParameters(ALPtr<ALBroker> broker) : pref_proxy(broker) { // CoM position feedback /** * @ref Al...
#include "commands.hpp" #include "util/date.hpp" #include "util/file.hpp" #include "util/http.hpp" #include "util/string.hpp" #include "util/version.hpp" #include "colors.hpp" #include "common.hpp" namespace fs = std::filesystem; namespace tc = termcolor; namespace nl = nlohmann; using namespace util; class dependen...
/* Copyright 2011 Google 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 in writing,...
/* Very simple example of textures and FPS collision detection. Controls: - `S`: left - `D`: right - `E`: fast - `X`: slow Demo video: http://youtu.be/wAQxIla7F68 */ #include <iostream> #include <cstdio> #include <cmath> #include <GL/glut.h> #include <opencv2/opencv.hpp> using namespace std; class Vector3D { ...
#include "adlMatrix.h" #include <iostream> adlMat3 adlMat3::operator*(const adlMat3& matrix) const { adlMat3 result_matrix = adlMat3::identity(); adlVec3 row1(vectors.a.x, vectors.b.x, vectors.c.x); adlVec3 row2(vectors.a.y, vectors.b.y, vectors.c.y); adlVec3 row3(vectors.a.z, vectors.b.z, vectors.c.z); resul...
#include "App.h" #include "Platform.h" #define UTILS_FUNCTIONS #include "Utils.h" #include "C3dMaths.h" #define GLHELPER_FUNCTIONS #include "GLHelper.h" #define MATERIALS_FUNCTIONS #include "Materials.h" #include <stdarg.h> #include <stdio.h> #define PI 3.14159265f #define INV_PI 1.0f / PI #define TAU 6.2...
/************************************************** * Copyright (c) 2021 <NAME> * See LICENSE for details **************************************************/ #include "win32_input.h" #include "win32_kai.h" #include "../platform.h" #include <xinput.h> #include <limits.h> #include <objbase.h> kai::Key win32_get_ka...
#include "volume.h" #include "myheap.h" // maxheap for correspondence band #include "../filter_plymc/plymc.h" // remove bad triangles from marching cubes #include <vcg/complex/algorithms/smooth.h> // mesh smoothing using namespace vcg; /// the array is used ...
#include "GameSurface.hpp" #include "vytAlgorithm.hpp" #include <iostream> #include <iomanip> #include <sstream> using std::cout; using std::cin; using std::endl; static constexpr auto GAME_OVER_S_INDEXY = GAME_HEIGHT / 2 - 5; static constexpr auto GAME_OVER_E_INDEXY = GAME_HEIGHT / 2 + 5; static constexpr auto GAM...
#include "rescue_prime.hpp" void hash_elements(const uint64_t* elements, const uint64_t count, uint64_t* const hash) { rescue_prime_state_t state{ state.f_b = count >= MOD ? count - MOD : count }; uint64_t i = 0; for (uint64_t j = 0; j < count; j++) { switch (i) { case 0: state.f_0 = ff_p_add(state.f_0, *(...
#include "heuristic.hpp" #include "player.hpp" // Driver for player's move, regardless of player std::pair<int, std::list<int>> othelloPlayer::move(othelloBoard &board, std::unordered_map<int, std::list<int>> &legalMoves, bool &pass, std::string &moveHistory) { std::pair<int, std::list<int>> moveC...
// Copyright 2019 Google LLC // // 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 in w...
/* * This file is part of the Xilinx DMA IP Core driver tools for Linux * * Copyright (c) 2016-present, Xilinx, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COP...
#include "base/strings/string_piece.h" #include <string> #include <gtest/gtest.h> using namespace strings; TEST(StringPieceTest, basic) { StringPiece sp; EXPECT_TRUE(sp.empty()); EXPECT_EQ(0UL, sp.size()); EXPECT_EQ(nullptr, sp.data()); } TEST(StringPieceTest, from_char_ptr) { StringPiece sp("...
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1Render.h" #include "j1Textures.h" #include "j1Map.h" #include <math.h> #include "j1Collisions.h" j1Map::j1Map() : j1Module(), map_loaded(false) { name.create("map"); } // Destructor j1Map::~j1Map() {} TileSet::~TileSet() { App->tex->UnLoad(textur...
// openvdb_create.cpp : Defines the entry point for the console application. // #include <string> #include <openvdb/openvdb.h> #include <openvdb/Exceptions.h> #include <openvdb/tools/LevelSetSphere.h> #include <openvdb/tools/Dense.h> #include <openvdb/tools/MeshToVolume.h> #include <openvdb/tools/VolumeToMesh...
#include "ofApp.h" #include <algorithm> #include <bitset> #include <math.h> #include "../../common/pitchColours.h" //-------------------------------------------------------------- void ofApp::setup() { font.load("fonts/DejaVuSans.ttf", 32, false, false, true); box2d.init(); box2d.setGravity(0, GRAVITY); box2d...
#define TINYEXR_USE_MINIZ 0 #include "zlib.h" #define TINYEXR_OTMOD_IMPLEMENTATION #include "tinyexr_otmod.h" #include "tiio_exr.h" #include "tpixel.h" #include <QMap> namespace { inline unsigned char ftouc(float f, float gamma = 2.2f) { int i = static_cast<int>(255.0f * powf(f, 1.0f / gamma)); if (i > 255) i =...