text
stringlengths
5.71k
33.7k
#include "pch.h" const WCHAR cp1252[256] = { /*0x00*/ 0x0000, //Null /*0x01*/ 0x0001, //Start Of Heading /*0x02*/ 0x0002, //Start Of Text /*0x03*/ 0x0003, //End Of Text /*0x04*/ 0x0004, //End Of Transmission /*0x05*/ 0x0005, //Enquiry /*0x06*/ 0x0006, //Acknowledge /*0x07*/ 0x0007, //Be...
// Copyright (c) 2014, Sailing Lab // 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 conditions an...
#pragma once #include <vector> #include <string> #include <iomanip> #include <fstream> #include <math.h> class MFCC { private: /* data */ void fft(std::vector<double>& data, int nn, int isign); void setFilterBank(); void setDCTCoeff(); void setLiftCoeff(); void Analyse(std::vector<std::vector...
//-------------------------------------------------------------------------- // // Environment: // This software is part of the EvtGen package developed jointly // for the BaBar and CLEO collaborations. If you use all or part // of it, please give an appropriate acknowledgement. // // Copyright Informat...
/************************************************************\ sound.cpp Some general sound code \************************************************************/ #include <stdio.h> #include <stdint.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <SDL2/SDL_mixer.h> #include <GL/gl.h> #include <math.h> #...
#include <stdio.h> #include <stdlib.h> #include <vector> #include <string> #include <iostream> #include <cmath> #include <include/homerus/annri.hpp> #include <include/large_bin.hpp> template <uint32_t S> struct hist { double sum{0}; double cen{0}; double sig{0}; uint32_t cnt{0}; const size_t G0=3500000; const siz...
// Includes #include <vector> #include <cmath> #include <ctime> #include <exception> #include <iostream> #include "ros/ros.h" #include "geometry_msgs/Twist.h" #include "geometry_msgs/PoseArray.h" #include "nav_msgs/Odometry.h" #include "tf/transform_datatypes.h" #include "eigen3/Eigen/Dense" #include "/home/johan/cat...
/*############################################################################ # Copyright 2016-2019 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 # # ht...
/* (c) Copyright 2011, Hewlett-Packard Development Company, LP See the file named COPYING for license details */ #include <iostream> #include <boost/format.hpp> #include <Lintel/MersenneTwisterRandom.hpp> #include <DataSeries/Extent.hpp> #include <DataSeries/ExtentField.hpp> #include <DataSeries/GeneralField.h...
// // VideoEffects.cpp // video_effects // // Created by <NAME> on 4/20/20. // #include "VideoEffects.h" #include "Markers.h" #include "Labels.h" using namespace Uber; VideoEffects::VideoEffects(){ } VideoEffects::~VideoEffects(){ } void VideoEffects::setup(){ //! setup blurr shaderBlur...
#include "stdafx.h" #include "MandelJuliaPacSceneBuilder.h" MandelJuliaPacSceneBuilder::MandelJuliaPacSceneBuilder() : m_scene(make_shared<StaticScene>()), m_sceneCB(make_shared<ConstantBuffer<SceneConstantBuffer>>()), m_instanceBuffer(make_shared<StructuredBuffer<InstanceBuffer>>()) {} // Initialize scen...
/* This is the main implementation file for the the WhoaSense library. * * Copyright (C) 2017 <NAME> * This code is released under the Apache License */ #include "Arduino.h" #include "whoasense.h" #define hvDigitalIn 19 // pf6 -> A1 D19 #define hvClock 18 // pf7 -> A0 D18 #define elEnable 20 // ...
// <NAME> "Damdoshi" // Hanged Bunny Studio 2014-2018 // // Bibliothèque Lapin #include "lapin_private.h" #define RAD(x) (M_PI * x / 180.0) struct vertex_array { size_t length; t_bunny_vertex vertex[30]; // 5 branches, 2 triangles par branches, 3 coordonnées par triangle }; static struct vertex_...
//This widget exposes high-level command and control... things like starting a mission or pausing all drones //This widget also contains the watchdog thread for hazard monitoring //Author: <NAME> //Copyright (c) 2021 Sentek Systems, LLC. All rights reserved.
 #pragma once //System Includes #include <vector> #include <...
#include "SDL.h" #include "SDL_syswm.h" #include "SDL_ttf.h" #include <sstream> #include <iostream> #include <fstream> #include <string> #include <ShellScalingApi.h> /* const char HELP_MSG[] = "Iteratively generates the Dragon's Curve and displays it on screen.\n\ Press Alt-F4 to quit when in fullscreen mode.\n\ Note:...
/* Copyright 1995 by Abacus Research and * Development, Inc. All rights reserved. */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include "opfind.h" #include "asmsamples.h" typedef struct { unsigned short start; unsigned char size; unsigned char done; const char ...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
/* * Tarp.cpp * * Created on: Jan 2, 2018 * Author: jwapman */ #include "Tarp.h" #include <unistd.h> #include <algorithm> #include <iostream> #include <opencv2/opencv.hpp> #include <string> #include <tuple> #include <vector> #include "colors.h" #include "math.h" #include "tarpSort.h" #include "timing.h" us...
/* * Copyright (C) 2012 The Android Open Source Project * * 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 ap...
// #include <signal.h> // #include <stdio.h> // #include <stdlib.h> // // #include <iostream> // #include <limits> // #include <boost/ptr_container/ptr_vector.hpp> // #include <vector> // #include <cmath> // #include <lcm/lcm.h> // #include <lcmtypes/bot_core.h> #include "visualization/collections.hpp" #include <lcmt...
/** * Copyright (C) 2019 <NAME> * * 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, including commercial * ...
/***************************************************************************** spngwriteimage.cpp PNG image writing support. Basic code to write a bitmap image (to IDAT chunks). *****************************************************************************/ #define SPNG_INTERNAL 1 #include "spngwrite.h" ...
/* * Copyright (c) 2014-2022 The Voxie Authors * * 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, mer...
// // "$Id: unittests.cxx 5845 2007-05-20 00:01:06Z mike $" // // Unit tests for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2005 by <NAME> and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // License as published by t...
/* -*- indent-tabs-mode: nil -*- */ #include <chrono> #include <csignal> #include <cstring> #include <event2/buffer.h> #include <event2/thread.h> #include <functional> #include <gflags/gflags.h> #include <iostream> #include <memory> #include <mutex> #include <openssl/crypto.h> #include <openssl/err.h> #include <signal...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ #include"ffsnorm.h" #include"ffstools.h" #define MAX_PREC_N 32 #define SCALE 0 void mul_high(GF2X& r,GF2X& p,GF2X& q,unsigned int...
// // Created by shiqing on 19-4-21. // #include <random> #include "../common/CommonHeaders.h" /* * Exercise 5.1: * What is a null statement? When might you use a null statement? * Answer: * A null statement is the empty statement. like this: * ; // null statement */ /* * Exercise 5.2: * What is a block? Wh...
#include "ImGuiFileDialog.h" #include <iostream> #ifndef WIN32 #include <limits.h> #include <sys/stat.h> #include <sys/types.h> #endif #include <dirent.h> #define IMGUI_DEFINE_MATH_OPERATORS #include <algorithm> #include "imgui.h" #include "imgui_internal.h" #ifdef WIN32 std::string utf8_encode(const std::wstring...
// // NativeGen.cpp // vm // // Created by yangjiandong on 15/9/26. // Copyright (c) 2015, yangjiandong. All rights reserved. // #include "NativeGen.h" #include "util/escape.h" NativeGen::NativeGen() : genStub(false) { } static void getValueTypeName(fr_ValueType vtype, std::string &name, std::string &tagNam...
/** @file @brief Produces a distortion mesh and partial display description from a table of display locations to angle inputs. @date 2015 @author <NAME> working through ReliaSolve.com for Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, Inc. // // Licensed under th...
// AXControl.cpp : // $Id$ // Interfaces that support the ActiveX Control interfaces. // First interfaces (and inspiration to actually create this module) // by <NAME> /*** Note that this source file contains embedded documentation. This documentation consists of marked up text inside the C comments, and is prefixed ...
/************************************************************************************* * * spat.cpp : SPAT Message Procedures * * purpose : Provide procedures for Initialization, Encoding, and Decoding * SPAT message structure * **********************************************************************...
#include <pcap.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <arpa/inet.h> #include "../library/linux_compat.h" #include <unordered_map> #include <iostream> #include <sstream> #include <netinet/in.h> #include <sys/socket.h> #include <unistd.h> //#include <regex> //#include <ss...
/* +---------------------------------------+ | BETH YW? WELSH GOVERNMENT DATA PARSER | +---------------------------------------+ AUTHOR: 979248 This file contains all the helper functions for initialising and running Beth Yw? In languages such as Java, this would be a class, but we really ...
namespace { inline std::filesystem::path make_fname(const cfg::xml_project &prj, const project_cfg &cfg, const std::string &ext) { return std::filesystem::path(prj.target_dir()) / (cfg.xml._file_out+ext); } template <typename project_cfg, typename raster_out_t> class VoxelByte { private: ...
// // BigInt.cpp // BigInt Calculator // // Created by 王宗祥 on 2020/12/3. // #include "BigInt.hpp" BigInt::BigInt(): sign(1) {}; BigInt::BigInt(string str) { // 輸入為字串 sign = str[0] != '-' ? 1 : -1; // 判斷正負號 if (sign == -1) // 負號時,將字串中的負號刪除 ...
//**************************** // Main functions left, parser for execute and undo Command, and eval function. //**************************** ////////////////////////////// // Major things left alpha beta pruning(including ordering of moves) and depth differentiation based on move likability. /////////////////////...
#include "yoloNet.hpp" #include <windows.h> #include <WinBase.h> using namespace cv; using namespace std; #define HEIGHT_RATE 3 #define WIDTH_RATE 4 #define MAX_ENABLE_ANGLE 65 #define MIN_ENABLE_ANGLE 20 Rect global_roi; const int General_Left_Lane_Angle = 40; const int General_Right_Lane_Angle = 40; ...
/* The MIT License (MIT) Copyright (c) [2016] [BTC.COM] 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, me...
#include "Game.h" #include "ObjectList.h" #include "Constants.h" #include "FileUtils.h" #include "StringUtils.h" #include "TWCallbackFunctions.h" #include "SimpleMath.h" #include <windows.h> #include <time.h> Game::Game(ID3D11Device* _d3d_device, HWND _hWnd, HINSTANCE _hInstance) : hWnd_(_hWnd) { // Set up audi...
#include "DrivingAssists.h" #include "ScriptSettings.hpp" #include "VehicleData.hpp" #include "Memory/Offsets.hpp" #include "Memory/VehicleExtensions.hpp" #include "Util/MathExt.h" #include <inc/natives.h> #include <fmt/format.h> #include "Util/UIUtils.h" using VExt = VehicleExtensions; extern ScriptSettings g_se...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> #include <fstream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; int counter = 0; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { ///* initially set to false, set to true in first cal...
#include <Arduino.h> #include "GY80.h" GY80::GY80() { m_scale = 1; //a_scale = 0; g_scale = 1; m_scale_values[0] = 0; m_scale_values[1] = 100. / 1100; m_scale_values[2] = 100. / 855; m_scale_values[3] = 100. / 670; m_scale_values[4] = 100. / 450; m_scale_values[5] = 100. / 400; m_scale_values[6] = ...
//////////////////////////////////////////////////////////////////////////////// // // Package: Laelaps // // Library: liblaelaps // // File: laeTune.cxx // /*! \file * * $LastChangedDate: 2016-03-01 16:54:32 -0700 (Tue, 01 Mar 2016) $ * $Rev: 4333 $ * * \brief Laelaps tuning implementation. * * \author...
/* * SSL server demonstration program using pthread for handling multiple * clients. * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with...
#include "logger.h" #include "dcshm.h" #include "dcshmobj.hpp" ////////////////////////////////////////////////////////////////// const char * dcshmobj_user_t::name() const { return "shmobj_user"; } int dcshmobj_user_t::on_alloced(void * data, size_t udsize, bool attached) { UNUSED(data); UNUSED(attached); ...
// Build me: // g++ -std=c++14 -Wall -Wextra -Wpedantic -I../source/ ./b3dpreview.cpp ../source/common/ByteBuffer.cpp ../source/common/FileSystem.cpp -o b3dpreview -lsfml-system -lsfml-graphics -lsfml-window #include <cassert> #include <iostream> #include <SFML/Graphics.hpp> #include <SFML/OpenGL.hpp> #include "comm...
#include <iostream> #include <signal.h> #include "ros/ros.h" #include "geometry_msgs/Twist.h" #include "sensor_msgs/Joy.h" #include "trajectory_msgs/JointTrajectory.h" #include "trajectory_msgs/JointTrajectoryPoint.h" #include "std_msgs/Float64.h" #include <ros/console.h> #include <cmath> #include <iomanip> /* @author...
#include "RayTracer.hpp" #include "Tree.hpp" #include "Scene.hpp" #include "Threading.hpp" #include <ctime> #include <algorithm> #include <cmath> using namespace std; //temporary variables extern unsigned int textures[2]; extern Scene MyScene; int alternateX, alternateY; ThreadPool pool(getNumberOfCores()); Image p...
/* * main.cpp - for player node * * Note: Elvin stuff is kept modularised & well separated from the rest of the code for two reasons * Firtly, This makes replacing elvin for some other middleware easier and allows for comparisons to * be made. Secondly, elvins implementation screws up VS2003 ability to locate er...
/* * Copyright 2017 WebAssembly Community Group participants * * 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) 1998-2005 The OpenSSL Project. 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. Redistr...
#include <iostream> #include <vector> #include <string> #include <random> #include <thread> #include <string.h> #include <glad/glad.h> #include <GLFW/glfw3.h> #include "stb_image.h" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include "opengl-debug.hpp" #include "shader-class.hpp" #include "came...
/************************************************************************************* This file is a part of CrashRpt library. Copyright (c) 2003-2013 The CrashRpt project authors. All Rights Reserved. Use of this source code is governed by a BSD-style license that can be found in the License.txt file in the ro...
/****************************************************************************** * $Id$ * * Project: GDAL * Purpose: Vector polygon rasterization code. * Author: <NAME>, <EMAIL> * ****************************************************************************** * Copyright (c) 2000, <NAME> <<EMAIL>> * * Permi...
// // 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 the following disclaimer. // * Redistributions in bin...
/** * DeepDetect * Copyright (c) 2014-2015 <NAME> * Author: <NAME> <<EMAIL>> * * This file is part of deepdetect. * * deepdetect 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...
/** * Copyright (c) Glow Contributors. See CONTRIBUTORS file. * * 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 b...
/* * Software License Agreement (BSD License) * * Copyright (c) 2017, Poznan University of Technology * 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 ...
/////////////////////////////////////////////////////////////////////////////// // Copyright <NAME> 2020. // 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) // // This example exercises Boost.Multi...
/* Copyright 2013-present Barefoot Networks, 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 la...
#include <stdio.h> #include "platform/agg_platform_support.h" #include "agg2d.h" #define pix_format agg::pix_format_bgra32 enum { flip_y = true }; class the_application : public agg::platform_support { Agg2D m_graphics; public: the_application(agg::pix_format_e format, bool flip_y) : agg::platform...
#include <cassert> #include <fstream> #ifdef DEBUG #include <cstdio> #include <iostream> #endif #include "iers2010.hpp" #ifdef USE_EXTERNAL_CONSTS #include "iersc.hpp" #endif /// Define the path to the gpt2_5.grd file (including the filename) #define PATH_TO_GRD25_GRD "/usr/local/share/iers10/gpt2_5.grd" /// @brief s...
#include <torchaudio/csrc/sox.h> #include <algorithm> #include <cstdint> #include <stdexcept> #include <vector> namespace torch { namespace audio { namespace { /// Helper struct to safely close the sox_format_t descriptor. struct SoxDescriptor { explicit SoxDescriptor(sox_format_t* fd) noexcept : fd_(fd) {} SoxDe...
/* Copyright 2017-present <NAME> (AI-TOOLKIT), All Rights Reserved You may use this file only if you agree to the software license: AI-TOOLKIT Open Source Software License - Version 2.1 - February 22, 2018: https://ai-toolkit.blogspot.com/p/ai-toolkit-open-source-software-license.html. Also included with the source...
/* * Copyright 2018 The Polycube 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...
//------------------------------------------------------------------------------ // Copyright(c) 2020 WarZhan <EMAIL> // All rights reserved. // Use, modificationand distribution are subject to the "MIT License" //------------------------------------------------------------------------------ //--------------...
//===- CodeCoverage.cpp - Coverage tool based on profiling instrumentation-===// // // The LLVM37 Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------------------...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
/* * Copyright (c) 2016 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2024-11-26 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
// // Created by <NAME> on 26.03.18. // #include <cmath> #include "IntersectableObject.hpp" #include "Scene.hpp" #include "PointLight.hpp" #include "Sphere.hpp" #include "Plane.hpp" #include "SphereLight.hpp" #include <algorithm> #include <experimental/optional> #include "config.hpp" void Scene::addSphere(Sphere *obj...
/* * 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 ...
#include "coefficients.hpp" #include "basis.hpp" #include "fast_math.hpp" #include "matlab_utilities.hpp" #include "pde.hpp" #include "quadrature.hpp" #include "tensors.hpp" #include "transformations.hpp" #include <numeric> // generate coefficient matrices for each 1D term in each dimension and // underlying partial ...
/*------------------------------------------------------------------------------* * (c)2016, All Rights Reserved. * * ___ ___ ___ * * /__/\ / /\ / /\ * * \ \:\ / /:/ / /::\ * * ...
/* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <ev...
//**********************************************************************; // Copyright (c) 2015, Intel 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: // // 1. Redistributions of s...
#include "MMA8452.h" #define BIT_0 0x01 #define BIT_1 0x02 #define BIT_2 0x04 #define BIT_3 0x08 #define BIT_4 0x10 #define BIT_5 0x20 #define BIT_6 0x40 #define BIT_7 0x80 bool MMA8452::init() { // Check who-am-i register uint8_t reg = read(WHO_AM_I); if (reg != 0x2A) { // this will always return 0x2A, connect...
// // CGen // https://cgen.sophisticatedways.net // Copyright © 2018 <NAME>. All rights reserved. // Published under terms of MIT license. // #include <fstream> #include <cstring> #include "commands.hpp" #include "sha1.hpp" #include "sha256.hpp" #include "cnf.hpp" #include "cnfencoderbit.hpp" #include "cnfword.hpp...
//===--- CGVTT.cpp - Emit LLVM Code for C++ VTTs --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
#define STB_IMAGE_IMPLEMENTATION #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<stb_image.h> #include<GLShader.h> #include<GLCamera.h> #include <iostream> void ProcessInput(GLFWwindow* window); void Fr...
/******************************************************************************\ Copyright (c) 2005-2018, Intel 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: 1. Redistributions of source c...
#include "ofxProCamToolkit.h" using namespace ofxCv; using namespace cv; void getRemapPoints(string filename, int width, int height, vector<Point2f>& camImagePoints, vector<Point2f>& proImagePoints, vector<unsigned char>& colors, GrayCodeMode mode) { Mat codex, codey, camMask; Mat cam; grayDecode(filename + "verti...
/* * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must * be be distributed together with this source. All other rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ...
/* * Copyright (c) 2016 Dell 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 * * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARR...
/* * ServConn.cpp - part of the jEdit Launcher package * Copyright (C) 2001, 2002 <NAME> * <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 Software Foundation; either version 2 * of the License, or...
/* * $Id: sample.cpp,v 1.23 2006/11/01 23:33:56 nathanst Exp $ * * sample.cpp * hog * * Created by <NAME> on 5/31/05. * Copyright 2005 <NAME>, University of Alberta. All rights reserved. * * This file is part of HOG. * * HOG is free software; you can redistribute it and/or modify * it under the terms of...
/** * Copyright (c) 2019 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...
// Copyright 2018 The Fuchsia 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 <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <zircon/device/display-contr...
#include <matrix4.h> #include <iostream> using namespace math; Matrix4::Matrix4() noexcept { setDiagonal(1.0f); } Matrix4::Matrix4(float value) noexcept { setDiagonal(value); } Matrix4::Matrix4(float v1, float v2, float v3, float v4) noexcept { entries[0] = v1; entries[1] = 0.0f; entries[2] = 0....
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2014, <NAME>. * Copyright (c) 2015-2016, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted...
/* handlers_keymap.cpp This file is part of the SunDog engine. Copyright (C) 2014 - 2016 <NAME> <<EMAIL>> www.warmplace.ru */ //Modularity: 100% #include "core/core.h" #define SHORTCUT_NAME_SIZE 128 struct keymap_data { WINDOWPTR win; WINDOWPTR list_actions; WINDOWPTR shortcuts[ KEYMAP_A...
// Copyright 2020 The Crashpad Authors. 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 ...
/*****************************************************************\ * * cell.cpp - the basic Prolog cell * * Copyright (c) 1992-2009 by Amzi! inc. All Rights Reserved. * * $Log: cell.cpp,v $ * Revision 1.2 2003/12/10 22:29:04 dennis * built dll with copy all feature for the dynamic db for now * * Revision ...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ // // sandesh_session_test.cc // // Sandesh Session Test // #include "testing/gunit.h" #include <vector> #include <boost/bind.hpp> #include <io/event_manager.h> #include <base/logging.h> #include "base/test/task_test_util.h" #include <sandesh...
#include "arena_traj_planner/uniform_bspline.h" #include <ros/ros.h> // control points for B-spline with different dimensions. // Each row represents one single control point // The dimension of a control point is determined by column number // e.g. B-spline with N points in 3D space -> Nx3 matrix using namespace std...
#include <ex/ex_platform.h> #include <ex/ex_util.h> #include <ex/ex_str.h> #include <ex/ex_log.h> EX_BOOL ex_initialize(const char *lc_ctype) { #ifdef EX_OS_UNIX const char *_lc_default = "en_US.UTF-8"; const char *_lc_ctype = NULL; char *_loc = NULL; if (NULL == lc_ctype) _lc_ctype = _lc_defau...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) DreamWorks Animation LLC // // All rights reserved. This software is distributed under the // Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ ) // // Redistributions of source code must retain the above copyrigh...
int Lcc ,sxs , zoy, XVNm ,/**/v7, YbE , PN , d40I8 , ZL,d,MYnS3,eU7 //r ,Md2hV , Nmwn ,/*f*/po1d , Wr , Q , EHtv, pRx , nfaK,//ig ecVfK ,GCu; void/*3*/ f_f0() { { { {for (int i=1 ;i< 1/**/;++i) {; } } for (int i=1 ; i<//SG 2 ;++i ) ;;for (int i=1 ; i< 3 ;++i) if(true ) { { } } else {{if (tru...
/// Filename: MFWebCamRtp.cpp /// /// Description: /// This file contains a C++ console application that captures the realtime video stream from a webcam using /// Windows Media Foundation, encodes it as H264 and then transmits it to an RTP end point using the real-time /// communications API from Live555 (http://live...