text
stringlengths
3.08k
22k
#pragma once #include <list> #include <ostream> #include <variant> #include <vector> #include "generics.hpp" #include "object.hpp" #include "scope.hpp" #include "token.hpp" #include "types.hpp" #include "typespec.hpp" struct StringIndex { std::size_t i; }; struct VariantDummyType {}; struct Node { enum Kind { ...
// ************************************************************************ // Copyright (c) 2007 Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the PSUADE team. // All rights reserved. // // Please see the COPYRIGHT and LICENSE file for the copyri...
///////////////////////////////////////////////////////////////////////////// // NxWidgets/UnitTests/CKeypad/ckeypadtest.cxx // // Copyright (C) 2012 <NAME>. All rights reserved. // Author: <NAME> <<EMAIL>> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provi...
/* * * Copyright 2021 gRPC 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 agree...
#define _CRT_SECURE_NO_WARNINGS 1 #include "NimbleSound.h" #include "Host.h" #include "Game.h" #include "Clickable.h" #include "HorizontalBarMeter.h" #include <cmath> #include <stdlib.h> #include <algorithm> #include <vector> #include <cstring> #include <fstream> #include "FileSuffix.h" #include "Midi.h" #include "Orch...
#include "pch.h" #include "Test.h" #include "SmallFBX.h" using sfbx::as; using sfbx::span; using sfbx::make_span; using sfbx::float3; testCase(fbxWrite) { { sfbx::DocumentPtr doc = sfbx::MakeDocument(); sfbx::Model* root = doc->getRootModel(); sfbx::Mesh* node = root->createChild<sfbx::Me...
/* * madgwick.cpp * Copyright (c) 2018, Robot Mitya. * 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 * ...
// Copyright 1996-2021 Cyberbotics Ltd. // // 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 agr...
// $Id: CbcCompareDefault.cpp 1902 2013-04-10 16:58:16Z stefan $ // Copyright (C) 2002, International Business Machines // Corporation and others. All Rights Reserved. // This code is licensed under the terms of the Eclipse Public License (EPL). //Edwin 11/25/09 carved out of CbcCompareActual #if defined(_MSC_VER) /...
// 3D phantom with tilted axis for MEEP simulation # include <meep.hpp> # include <cstdlib> # include <iostream> # include <iomanip> # include <fstream> # include <cmath> # include <complex> // Do not set this TIMESTEPS too short. Wee need the system to equilibrate. // Very good agreement with "#define TIMESTEPS 100...
/* You can download a baseline ReID model and sample input from: https://github.com/ReID-Team/ReID_extra_testdata */ #include <iostream> #include <fstream> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <opencv2/dnn.hpp> using namespace cv; using namespace cv::dnn; const char* keys = "{help ...
#include <iostream> #include <Eigen/Sparse> #include <Eigen/Cholesky> #include <Eigen/LU> #include <cmath> #include <cassert> #include <chrono> #include "writer.hpp" using namespace std::chrono; using Real= double; using SparseMatrix= Eigen::SparseMatrix<Real>; using Triplet= Eigen::Triplet<Real>; using Vector= Eigen:...
/* ************************ Copyright Terrain Experts Inc. Terrain Experts Inc (TERREX) reserves all rights to this source code unless otherwise specified in writing by the President of TERREX. This copyright may be updated in the future, in which case that version supercedes this one. ---------------...
/*************************************************************************** # Copyright (c) 2018, 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 sourc...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
#include "H264AnalyserPch.h" #include <iostream> #include <memory> #include <sstream> #include <string> #include <boost/asio/io_service.hpp> #include <boost/exception/all.hpp> #include <boost/filesystem.hpp> #include <boost/program_options.hpp> #include <boost/shared_ptr.hpp> #include <cpputil/ConsoleApplicationUtil.h>...
#include <bits/stdc++.h> using namespace std; const int MOD = 30011; // 998244353; // 998244853; template <typename T> struct modular { constexpr modular() : val(0){} constexpr modular(const modular<T>& _m) : val(_m.val) {} template <typename U> constexpr modular(const U& _r = U()) { val = -MOD <...
//===- LoopUnrollAndJam.cpp - Code to perform loop unroll and jam ---------===// // // Copyright 2019 The MLIR 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....
// Copyright 2013 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 "ui/views/corewm/tooltip_aura.h" #include <algorithm> #include <utility> #include "base/macros.h" #include "base/strings/string_split.h" #inclu...
//===------------------- include/Reader/abisignature..cpp -------*- C++ -*-===// // // LLILC // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // See LICENSE file in the project root for full license information. // //===--------------------------------------------------------------...
/* L I B O S L R E N D . C P P * BRL-CAD * * Copyright (c) 2011-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version...
/* $NetBSD: main.cpp,v 1.1.1.1 2016/01/13 18:41:49 christos Exp $ */ // -*- C++ -*- /* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002 Free Software Foundation, Inc. Written by <NAME> (<EMAIL>) This file is part of groff. groff is free software; you can redistribute it and/or modify it under the terms...
// © 2013 the Search Authors under the MIT license. See AUTHORS for the list of authors. #include "profile.hpp" #include "../../utils/utils.hpp" #include <limits> AnytimeProfile::AnytimeProfile(unsigned int cb, unsigned int tb, const std::vector<SolutionStream> &stream) { initbins(cb, tb); seesolutions(stream); }...
/* Copyright (c) 2013, 2020 Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (including but n...
#pragma once #include <BlackBox/ScriptSystem/IScriptSystem.hpp> #include <BlackBox/ScriptSystem/LuaCommon.hpp> #include <BlackBox/ScriptSystem/ScriptBinding.hpp> #include <BlackBox/System/IConsole.hpp> #include <BlackBox/Core/Utils.hpp> #include <vector> #include <set> #include <string> #include <stack> #include <cass...
#include "Application.h" #include "ResourceScript.h" #include <mono/metadata/assembly.h> #include <mono/jit/jit.h> #include <mono/metadata/mono-config.h> #include <mono/metadata/debug-helpers.h> ResourceScript::~ResourceScript() { } void ResourceScript::SerializeToMeta(char*& cursor) const { uint bytes = sizeof(U...
// Lots of this is poached from Strum's Mental Chord and Bogaudio's Retone! #include "dsp/digital.hpp" #include <iostream> #include <cmath> #include <sstream> #include <iomanip> #include "RJModules.hpp" namespace rack_plugin_RJModules { // Displays struct StringDisplayWidget : TransparentWidget { std::string *va...
// // WulfGame/Map/Node.cpp // Copyright (C) 2012 <NAME> // This code is freely available under the MIT licence. // #include "Map/Node.h" #include "Map/Doors.h" #include <cassert> #define self (*this) using namespace Wulf; using Map::Node; using Map::Wall; namespace Sprites = Wulf::Map::Sprites; static Direction rev...
// SolidPoint.h // created by Kuangdai on 3-Apr-2016 // solid gll points #include "SolidPoint.h" #include "Mass.h" #include "MultilevelTimer.h" SolidPoint::SolidPoint(int nr, bool axial, const RDCol2 &crds, Mass *mass): Point(nr, axial, crds), mMass(mass) { mDispl = CMatX3::Zero(mNu + 1, 3); mVeloc = CMatX3...
/* * Copyright (C) 2018 ETH Zurich and University of Bologna * * 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...
/* * Copyright (C) 2014 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 agree...
/// /// \class l1t::L1TExtCondLegacyToStage2 /// /// Description: Fill uGT external condition (stage2) with legacy information from data /// /// /// \author: <NAME> /// \revised: <NAME> // system include files #include <boost/shared_ptr.hpp> // user include files #include "FWCore/Framework/interface/EventSetup.h" ...
/* main.cpp Author: <NAME> */ #include <iostream> #include <iomanip> #include <vector> #include <string> #include "boost/program_options.hpp" #include <sys/stat.h> // benchmarking #include <sys/resource.h> #include <chrono> #include "SNVIdentifier.h" #include "GenomeMapper.h" #include "gsa.h" using namespace std;...
// Copyright <NAME> 2007. // Use, modification and distribution are subject to 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 "required_defines.hpp" #include <map> #include <set> #include <iostream> #include <iomanip>...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
#include "../stroustrup/std_lib_facilities.h" //CAP 7 DRILL /* TESTING DATA * * ran inputs below input from file testing_C7DRILL.txt using ---> "CHAPTER 7/"C7DRILL < "CHAPTER 7/"testing_C7DRILL.txt * * * 1+2; * 5-4; 3+2; 6-10; * 1 / (3 + 8) * 10; * let x = 5; * let x2 = 16 / 4; * x * x2 * pi; * * 1**2;...
void respondToQuery(); // Receives the incoming data and issues the apropraite commands and responds void Connection::respondToQuery() { char buffer[BUFFER_SIZE]; int bytes; if (!isSSL){ bytes = recv(this->fd, buffer, sizeof(buffer), 0); std::cout << "#log conn: read...
#include "fast_float/fast_float.h" #include <iostream> #include <cstdint> #include <random> #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(sun) || defined(__sun) // Anything at all that is related to cygwin, msys and so forth will // always use this fallback because we cannot rely...
/* * AWSClient.cpp * * See AWSClient.h for description. * * Created on: Jul 8, 2014 * Author: hoffmaj */ #include "AWSClient.h" #include "Utils.h" #include "DeviceIndependentInterfaces.h" #include "AWSFoundationalTypes.h" #include "sha256.h" #include <string.h> #include <stdlib.h> #include <stdio.h> /* ...
#include "linux_parser.h" #include <dirent.h> #include <unistd.h> #include <exception> #include <filesystem> #include <fstream> #include <iostream> #include <string> #include <vector> using std::map; using std::stof; using std::string; using std::to_string; using std::vector; namespace fs = std::filesystem; string...
///////////////////////////////////////////////////////////////////////////// // ARGSS - Copyright (c) 2009 - 2010, <NAME> (vgvgf) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // ...
//------------------------------------------------------------------------------------- // // Copyright 2009 Intel Corporation // All Rights Reserved // // Permission is granted to use, copy, distribute and prepare derivative works of this // software for any purpose and without fee, provided, that the above copy...
/* * Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt. */ //-...
/* * (C) Copyright 2015 ETH Zurich Systems Group (http://www.systems.ethz.ch/) and others. * * 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/LICENS...
/********************************************************************************* * Author: <NAME> * Lang: C++ - CPP * School: I.T.I.S. G. Fauser - Novara Class: 4CIN * Exercise N°12: * Scrivere un codice che permetta di gestire i dati sul sistema solare. * Scrivere una struct "Pianeta" con i seguenti attri...
// License: MIT. Please Check the license file in root directory // Copyright (c) (2018) <NAME> //################################################### // // File I/O Function // //################################################### #include "pcl_labeller.h" #include "config.h" #include "../build/ui_pcl_labe...
/* * File: samples/gl-particles-hull.cpp * This sample shows a work-in-progress CPU-based particle system with emitters * and modifiers. Particles are rendered in screen-space using instanced billboards. * A point emitter is used as input to Polymer's quick_hull algorithm. The resulting * convex hull is rendered...
// Copyright 1996-2021 Cyberbotics Ltd. // // 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 agr...
#include "main.h" #include "timer.h" #include "ball.h" #include "floor.h" #include "objects.h" #include "magnet.h" #include "firebeam.h" #include "fireline.h" #include "ring.h" #include "wballoon.h" #include "display.h" using namespace std; GLMatrices Matrices; GLuint programID; GLFWwindow *window; /****************...
#include "LeapMotion/hands_listener.h" #include "KsGlobal.h" #define CDESCENDING_ZDELTA (0.5) using namespace Leap; using namespace std; VoidCallback HandsListener::_emitFingerPosUpdatedCallBack = nullptr; FingerGestureCallback HandsListener::_emitFingerGestureCallBack[HandsListener::FINGER_GESTURE_TOTAL]; HandsList...
extern "C" { #include "cec17.h" } #include <iostream> #include <vector> #include <random> #include <math.h> using namespace std; //int TOTAL_EVALS=0; // Parámetros float INIT_CELERITY = 1; float DECREASE_SUCCESS = 0.99; float DECREASE_FAIL = 0.9; float BASE_WEIGHT = 0.2; float MIN_DIF_SOLIS = 0.9; float PROB_SPLI...
/*************************************************************************** vidhrdw.c Functions to emulate the video hardware of the machine. TODO: - Get a dump of the PAL16L8 (IC38 - 4M). This controls transparency. It takes as input 4 bits of sprite color, and 6 bits of background tile color. It o...
/* Copyright (c) <2003-2019> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * includi...
/*///////////////////////////////////////////////////////////////////////////////// /// An /// ___ ____ ___ _____ ___ ____ /// / _ \ / ___|_ _|_ _/ _ \| _ \ /// | | | | | _ | | | || | | | |_) | /// | |_| | |_| || | | || |_| | _ < /// \___/ \____|___| |_| \___/|_| \_\ /// ...
#include "include/pdfx/pdfx_plugin.h" // This must be included before many other Windows headers. #include <windows.h> // Flutter imports #include <flutter/method_channel.h> #include <flutter/plugin_registrar_windows.h> #include <flutter/standard_method_codec.h> // std imports #include <iostream> #include <map> #inc...
#include <array> #include <fstream> #include <iostream> #include <sstream> #include <vector> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm.hpp> #include <gtc/matrix_transform.hpp> #include <gtc/type_ptr.hpp> #include <Mathematics/Hyperplane.h> #include <Mathematics/IntrLine3Plane3.h> #include <Mathem...
/* Assignment 2 - Image Blurring Author: <NAME> Student ID: A01364808 Compile line: g++ -o image_Blur_CPU imageBlur_CPU.cpp `pkg-config --cflags --libs opencv` -std=c++11 -fopenmp */ #include <iostream> #include <cstdio> #include <cmath> #include <string> #include <chrono> #include <opencv2/core/core.hpp> #in...
/** * All the routines that deals uniquely with the simulation of the world in * BORDER or CYCLE mode. */ #include "../world.h" void World::setInputCellsBorder() { /** * Set up the initial configuration in Border mode. */ assert(inputType == BORDER || inputType == CYCLE); alreadyTweaked = false; std...
/* Server class declaration */ #include "MultipleClients.h" #include <arpa/inet.h> #include <iostream> #include <netdb.h> #include <poll.h> #include <sstream> #include <string.h> #include <string> #include <sys/socket.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include "../utils/utility.h" Se...
// dear imgui: standalone example application for GLFW + OpenGL 3, using programmable pipeline // If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp. // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context crea...
// Copyright 2013 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 <errno.h> #include <fcntl.h> #include <set> #include <string> #include "gtest/gtest.h" #include "nacl_io/devfs/dev_fs.h" #include "nacl_io/dir...
// // Name: ItemGroup.cpp // // Copyright (c) 2003-2011 Virtual Terrain Project // Free for all uses, see license.txt for details. // // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "vtlib/vtlib.h" #include "vtlib/core/GeomU...
#include "PlanetarySystem.h" void olcPlanetarySystem::AddPlanet(float pos_x, float pos_y, float vel_x, float vel_y, float radius) { if (radius > 1.0) { sPlanet p; p.px = pos_x; p.py = pos_y; p.vx = vel_x; p.vy = vel_y; p.ax = 0.0; p.ay = 0.0; p.ra...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
/*========================================================================= Program: Visualization Toolkit Module: TestOverlappingCellsDetector.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is dis...
#include "ResultProcessor.h" ResultProcessor::ResultProcessor(std::string path , int pprocNum) { oneclickLogger << FileLogger::LOG_INFO << "started processing results\n\n"; initPProcessor(pprocNum); std::string algName; std::vector<std::string> configPaths; std::vector<std::string> logPaths; ...
#include "normalMapping/normalMapping.h" #include "GLFW/glfw3.h" NormalMapping::~NormalMapping() { delete shader; delete diffuseMap; delete normalMap; } void NormalMapping::Init() { quadVAO = 0; shader = new Shader( "../Cocos2dx/src/normalMapping/normal_mapping.vs", "../Cocos2dx/src/normalMapping/normal_mapp...
#include <sstream> #include <algorithm> #include <limits> #include <iterator> #include <deque> #include <map> #include <set> #include "FractionParser.h" #include "FetlangException.h" typedef std::deque<std::string> WordList; static const std::map<std::string, FractionInt> NUMBER_WORDS = { {"one", 1}, {"two", 2}, {"th...
// evmone: Fast Ethereum Virtual Machine implementation // Copyright 2019 The evmone Authors. // SPDX-License-Identifier: Apache-2.0 #include "evm_fixture.hpp" #include <evmone/instructions_traits.hpp> #include <intx/intx.hpp> #include <algorithm> using namespace evmone; using namespace evmc::literals; using namespac...
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <iostream> #include <vector> #include <google/protobuf/io/zero_copy_stream_impl.h> #include <google/protobuf/io/gzip_stream.h> #include <google/protobuf/io/coded_stream.h> #include <g...
// // ConstraintPenetration.cpp // #include "ConstraintPenetration.h" void ConstraintPenetration::PreSolve( const float dt_sec ) { // Get the world space position of the hinge from A's orientation const Vec3 worldAnchorA = m_bodyA->BodySpaceToWorldSpace( m_anchorA ); // Get the world space position of the hinge ...
/* Copyright 2014-2016 Intel Corporation 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, s...
/* USE THIS FILE ACCORDING TO THE COPYRIGHT RULES IN LICENSE.TXT WHICH IS PART OF THE SOURCE CODE PACKAGE */ #include "AllTests.h" using namespace byps; using namespace com::wilutions::test; using namespace byps::test::api; using namespace byps::test::api::inl; using namespace byps::test::api::remote; cl...
//===-- MipsMachineFunctionInfo.cpp - Private data used for Mips ----------===// // // 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 "sm-oid-alloc-impl.h" #include "dynarray.h" #include <cstdio> void sparse_bitset::print(char const *name) { printf("%s = {%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d}\n", name, entries[0][0], entries[0][1], entries[0][2], entries[0][3], entries[0][4], entries[0][5],...
#include <gl/glut.h> #include <math.h> float RotationSpeed = 0.0; float RotationSpeed01 = 0.0; float RotationSpeed02 = 0.0; float RotationSpeed03 = 0.0; float Self_Angle = 0.0f; void CreateCircle(float radius) { float _angle = 0.0f; glLineWidth(3.0); // Circle ar line k mota korar jonno glC...
/** MIT License Copyright (c) 2020 bbqz007 <cnblogs.com/bbqzsl, github.com/bbqz007> 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 u...
#include "ukf.h" #include "tools.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; double const EPS = 0.001; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, lase...
#include <glad/glad.h> #include <glfw3.h> #include <iostream> #include <Shader.h> #include <stb_image.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #define SRC_WIDTH 800 #define SRC_HEIGHT 600 void SetFrameBufferSizeCallBack(GLFWwindow*window, int width, int height); void EventHandle(GLFWwindow...
#if INCLUDE_PCH_H == 1 #include "pch.h" #endif #include "UriCodec.h" // Uri encode and decode. // RFC1630, RFC1738, RFC2396 const char UriCodec::HEX2DEC[256] = { /* 0 1 2 3 4 5 6 7 8 9 A B C D E F */ /* 0 */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 1 */ -1, -1, -1,...
// Creating a node graph editor for ImGui // Quick demo, not production code! This is more of a demo of how to use ImGui to create custom stuff. // Better version by @daniel_collin here https://gist.github.com/emoon/b8ff4b4ce4f1b43e79f2 // See https://github.com/ocornut/imgui/issues/306 // v0.03: fixed grid offset issu...
/* * Software License Agreement (BSD License) * * Copyright (c) 2013-, Open Perception, Inc. * * 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 mus...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /** * \brief The entry point for the OpenVINIO multichannel_face_detection demo application * \file multichannel_face_detection/main.cpp * \example multichannel_face_detection/main.cpp */ #include <iostream> #include <vector> #includ...
#include <memory> #include <string> #include <iostream> #include <sstream> #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSet...
/* * LevelSquare.cc * * Created on: Jul 6, 2021 * Author: shawn */ #include <scenes/LevelSquare.h> #include "core/Logging.h" #include "glad/glad.h" #include "graphics/Image.h" #include "graphics/ImageLoader.h" const char *vertexShaderSource = "#version 330 core\n" "layout (location = 0) in vec3 aPos;\n...
/* Copyright (c) 2014-2015 <NAME> Distributed under the MIT/X11 software license, see the accompanying file LICENSE or http://www.opensource.org/licenses/mit-license.php. */ #include "main.hpp" #include "util.hpp" #include "sendutil.hpp" using std::placeholders::_1; using std::placeholders::_2; using std::placehold...
// Copyright (c) 2019 <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, d...
#define NOMINMAX #include "ntypelogger.hpp" #include "bind/bindedfunc.hpp" #include "errlogger.hpp" #include "inputgate.hpp" #include "keycode.hpp" #include "keylgrbase.hpp" #include "lgrparser.hpp" #include "mode.hpp" #include "util/keystroke_repeater.hpp" #include <limits> #include <stack> namespace { using ...
/* Copyright (c) 2005-2017 Intel Corporation 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 la...
/************************************************************************** Air Buster (C) 1990 Kaneko driver by <NAME> (<EMAIL>) [Screen] Size: 256 x 256 Colors: 256 x 3 Color Space: 32R x 32G x 32B [Scrolling layers] Number: 2 Size: 512 x 512 Scrolling...
/* Entry point of the Platform Checker application. The Platform Checker lists the features of all platforms available on the user's system. The list of available platforms depends on the operating system and, in the case of Windows Hypervisor Platform, the presence of Windows 10 SDK 10.0.17134.0 or later when buildin...
/* * Copyright 2008 <NAME>, <EMAIL>. * Copyright 2010 <NAME> <<EMAIL>> * Copyright 2014 Haiku, Inc. All rights reserved. * * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> * <NAME>, <EMAIL> * <NAME>, <EMAIL> */ #include "PairsWindow.h" #include <Application.h> #include <...
// Copyright (c) 2011, <NAME> <<EMAIL>> // // Permission to use, copy, modify, and 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 DISCLAI...
#include "mpeg4ip.h" #include "h264.h" #include "vlc_bits.h" void h264_decode_hrd_parameters(bs_t& s, h264_sps_t* p_sps) { int cpb_count, i; cpb_count = bs_read_ue(&s) + 1; bs_read(&s, 4); /* bit_rate_scale */ bs_read(&s, 4); /* cpb_size_scale */ for(i=0; i<cpb_count; i++){ bs_read_ue(&s); /* bit_rat...
//----------------------------------------------------------------------------- // File: Render.cpp // // Desc: Simple tutorial code to draw a 3D scene. // // Copyright (c) 1998-1999 Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #define STRI...
#include "ft.h" #include <stdlib.h> #include <algorithm> #include <fstream> #include <iostream> #include <memory> #include <string> #include <utility> #include <vector> #include "opencv2/core.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/features2d.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/highg...
// // Wrapper functions for shell interfaces // // Many ISVs screw up various IShellFolder methods, so we centralize the // workarounds so everybody wins. // // Someday, IExtractIcon and IShellLink wrappers may also be added, should // the need arise. // #include "priv.h" #include <shlobj.h> //------...
// // Mesh.cpp // Dissert // // Created by <NAME> on 07/05/12. // Copyright (c) 2012 ss42. All rights reserved. // #include "Mesh.h" #include "vertexTexcoords.h" #include <Generator/MazeMesh/MazeMesh.h> #include <Engine/Graphics/Texture/Texture.h> #include <Engine/Graphics/Material/Material.h> #include <Engine/Gra...
#include <cstdio> #include <cstdlib> #include <cstring> #include <csignal> #include <cmath> #include <unistd.h> #include <list> #include <vector> #include "util.h" #include "token.h" #include "node.h" #include "variable.h" #include "constraint.h" #include "solver.h" #include "graph.h" #include "solveralgorithm.h" #incl...
/*Copyright(c) 2019 The Paradox Game Converters Project 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, pub...