text
stringlengths
3.08k
12.5k
/* * created by xehoth on 29-04-2017 */ #include <bits/stdc++.h> // #define DBG namespace IO { inline char read() { static const int IN_LEN = 1000000; static char buf[IN_LEN], *s, *t; s == t ? t = (s = buf) + fread(buf, 1, IN_LEN, stdin) : 0; return s == t ? -1 : *s++; } template <class T> inline v...
// canvaswin.cpp: 实现图形显示接口类 GiCanvasWin // Copyright (c) 2004-2012, <NAME> // License: LGPL, https://github.com/rhcad/touchvg #include "canvaswin.h" #include <gigraph_.h> GiCanvasWin::GiCanvasWin(GiGraphics* gs) : m_attribDC(NULL) { gs->_setCanvas(this); } const GiTransform& GiCanvasWin::xf() const { return ...
/** * MIT License * Copyright (c) <NAME> * See accompanying LICENSE file */ #include "keyboardwindowpositioner.h" #include <QGuiApplication> #include <QQuickWindow> #include <QPropertyAnimation> #include <QTimer> #include <QQuickItem> #include <QScreen> #include <QDebug> #include "loggingcategory.h" #include "k...
//---------------------------------------------------------------------------// // Copyright (c) 2018-2021 <NAME> <<EMAIL>> // // MIT License // // 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 Soft...
#include <assert.h> #include <math.h> #include <algorithm> #include <bitset> #include <cctype> #include <complex> #include <deque> #include <iomanip> #include <iostream> #include<functional> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #include <...
//misaka and rin will carry me to cm #include <iostream> #include <cstdio> #include <cstring> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <array> #include <tuple> #include <random> #include <chrono> #include <unordered_map> #define ll long long #define lb long double #define ...
/* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al * Affiliation: Food and Drug Administration (1), George Washington University (2) * * All rights Reserved. * * The MIT License (MIT) * * Permission is hereby granted, free...
/* * C++ sfinae 特性相关记录 */ #include <iostream> #include <type_traits> #include <string> // ReSharper disable CppNonExplicitConvertingConstructor // Substitution Failure Is Not An Error ==> SFINAE, 匹配失败不是错误. 典型的使用std::enable_if<bool, T> // 函数重载可根据参数不同直接声明和定义即可,如果是模板函数,则需要使用std::enable_if来实现不同参数调用不同模板,匹配失败的则忽略 n...
#include "common.h" #include "bglobal.h" #include "ipc_config.h" #include "ipc_controller.h" #include "net_tcp.h" #include <pthread.h> #include <jsoncpp/json/json.h> void * bcenter_message_loop(void* para); void * blcd_message_loop(void* para); void * get_ipc_config(void* para); int main() { //初始化全局变量 g_bipc_conf...
/**************************************************************************** // Usagi Engine, Copyright © Vitei, Inc. 2013 ****************************************************************************/ #include "Engine/Common/Common.h" #include "Engine/Maths/MathUtil.h" #include "WaveFileReader.h" struct WaveRiff { u...
#pragma GCC optimize ("O2") #include<bits/stdc++.h> #include<unistd.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define F first #define S second #define PB push_back #define ALL(x) begin(x),end(x) #define SZ(x) ((int)(x).size()) #define IOS ios_base::sync_with_s...
// g2o - General Graph Optimization // Copyright (C) 2011 <NAME>, <NAME>, <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...
/*! example.cpp Demo app for the leaf and stem detection package. @author <NAME> @author <NAME> */ #include <boost/filesystem.hpp> #if defined(DEBUG_MODE) || defined(TIMER) #include <chrono> #endif #include "InputParser.h" #include "algorithm.h" #include "stem.h" using namespace gstemdet; std::vector<std::s...
#include "mystic_algebra.h" #include "algebra.h" #include "epsilon.h" #include "polylog_li.h" #include "quasi_shuffle.h" #include "zip.h" constexpr int kForeweight = 0; static EpsilonExpr to_expression(const EpsilonPack& pack) { return std::visit(overloaded{ [](const std::vector<Epsilon>& product) { ret...
#include <cmath> #include <chrono> #include <lcm/lcm-cpp.hpp> #define PI 3.1415926 #define JOYSTICK_CHANNEL "/joystick" class GPS { public: double latitude; double longitude; GPS() : latitude(0), longitude(0) {} }; // function to calculate bearing from location 1 to location 2 // GPS latitude and longitude in deg...
//============================================================== // Copyright © 2020 Intel Corporation // // SPDX-License-Identifier: MIT // ============================================================= #include <iostream> #include <limits> #include <float.h> #include <math.h> #include <omp.h> using namespace std; /...
using namespace std; extern std::map<std::string, drawCall> drawCalls; extern GLint uniform_tex; PyObject* drawImageCircle_hliGLutils(PyObject* self, PyObject* args) { PyObject* imageName; // relative path + filename for image PyObject* imageBuffer; // buffer containing pixel data PyObject* c...
#pragma once #include <algorithm> #include <condition_variable> #include <map> #include <mutex> #include <queue> #include <vector> /***** Thread safe vector *****/ template <typename T> class SharedVector { private: std::mutex _m; std::vector<T> _vec; public: SharedVector(); ~SharedVector(); void push_back...
/* This file is a part of QVGE - Qt Visual Graph Editor (c) 2016-2018 <NAME> (<EMAIL>) It can be used freely, maintaining the information above. */ #include <QDebug> #include "CDirectConnection.h" #include "CNode.h" CDirectConnection::CDirectConnection(QGraphicsItem *parent): Super(parent) { m_bendFactor = 0; } ...
/* Copyright (c) 2001-2006, <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 the followi...
#include <iostream> #include <conio.h> #include <fstream> #include <string> #include <windows.h> using namespace std; string savestring; char board[3][3]={{'1', '2', '3'},{'4', '5', '6'},{'7', '8', '9'}}, last_move, player='X'; bool game=true, wrong_input=false, saveCheck=true, win=false; int numerat...
#include <iostream> #include <random> #include <vector> #include <string> #include <algorithm> std::random_device rd; std::mt19937 generator(rd()); std::uniform_real_distribution<> distribution(0.0, 1.0); auto random_ = []() { return distribution(generator); }; using candidate_solution = struct candidate_solution_t...
/* * Copyright (c) 2021 Huawei Device Co., 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 ...
// Popup class // Copyright (C) 1996 <NAME> All Rights Reserved #include <string.h> #include <ctype.h> #include "console/screen.h" void Popup::init () { COORD bufSize; COORD bufCoord; SMALL_RECT rect; // Check values for being "reasonable" if (mX < 0 || mY < 0 || mWidth <= 0 ...
#include "pch.h" #include "Instruction.h" #include <regex> std::wstring opcode_to_string(const Opcode c) { switch (c) { case ADDR: return L"ADDR"; case ADDI: return L"ADDI"; case MULR: return L"MULR"; case MULI: return L"MULI"; case BANR: return L"BANR"; case BANI: return L"BANI"...
/* * utils-cpuinfo.cpp - Processor capability information * * Kheperix (C) 2003-2005 <NAME> * * 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 * ...
#include <arpa/inet.h> #include <netdb.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include <iostream> #define number_of_clients 5 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t cond =...
#define _CRT_SECURE_NO_WARNINGS #include "Cashier.h" #include <iostream> #include <iomanip> // Constructor Cashier::Cashier(InventoryDatabase* pD) { pInventoryDatabase = pD; cart = std::make_unique<InventoryBook[]>(100); // Change this? cartSize = 0; inv = pInventoryDatabase->getInventoryArray(); } ...
/* * ===================================================================================== * * Filename: Clustering.cpp * * Description: * Version: 1.0 * Created: 12/12/2013 04:38:27 PM * Revision: none * Compiler: gcc * * Author: <NAME> (), <EMAIL> * Org...
/* ** EPITECH PROJECT, 2020 ** B-OOP-400-LYN-4-1-tekspice- ** File description: ** Commands.cpp */ #include "Commands.hpp" #include "Nanotekspice.hpp" #include "Logs.hpp" #include "Tools.hpp" #include "Factory.hpp" #include "Edit.hpp" #include "Contains.hpp" Commands::Commands() { return; } Commands::~Commands(...
// // Created by cjreid on 3/19/18. // #include <PackageXmlParser.h> #include <QtXml> #include <PackageXml2Components.h> #include <PackageXml2Data.h> PackageXmlParser::PackageXmlParser() {} void PackageXmlParser::parse(QFile& packageXml, PackageXml2Data *packageXml2Data) { QDomDocument doc("PackageXMLParser"); ...
/** There is a sequence of packets "packet". There can be several packets with the same PID. Each packet of the sequence with the same PID has continuity_counter property which indicate continued number of the packet. Continued number of the packet is a sequence like 0, 1, 2, ..., 15, 0,1,2, ..., etc. The t...
// Copyright Contributors to the OpenVDB Project // SPDX-License-Identifier: MPL-2.0 #include <cppunit/extensions/HelperMacros.h> #include <openvdb/Exceptions.h> #include <openvdb/Metadata.h> class TestMat4Metadata : public CppUnit::TestCase { public: CPPUNIT_TEST_SUITE(TestMat4Metadata); CPPUNIT_TEST(testMat...
#include <climits> #include <cstdint> #include <cstddef> #include <cfloat> #include <cstring> #include "charFunctions.hpp" #include "string.hpp" #ifndef Z_STR_INT_BUFSIZE #define Z_STR_INT_BUFSIZE 64 #endif #ifndef Z_STR_FLOAT_BUFSIZE #define Z_STR_FLOAT_BUFSIZE 64 #endif #ifndef Z_STR_EXP_BUFSIZE #define Z_STR_...
// Shift Register LED Matrix Project - Glyph // Copyright (C) 2017 <NAME> // // This file is part of Shift Register LED Matrix Project. // // Shift Register LED Matrix Project is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as publishe...
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "state.h" bool State::_outFeatures = false; // true if we want a feature for the frontier. boo...
// Copyright 2021 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "experimental/ngatoy/Cmds.h" #include "experimental/ngatoy/Fake.h" #include "include/core/SkBitmap.h" #include "include/core/SkCanvas.h" #include "include/core/SkColor.h" #includ...
/*---------------------------------------------------------------------------*\ Copyright (C) 2011-2015 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it ...
/** * @file * * @brief tests for the configformat model * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <regex> #include <gtest/gtest.h> #include <crypto.hpp> #include <user_application.hpp> /** * TESTS for kdbrest::models::ConfigFormat */ TEST (kdbrestRegex, UserPassw...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; vector<int> G; int me, N; int sol; vector< vector<int> > change; void go(int mask, int night) { if ((mask & me) == 0) { sol =...
#include <cstdio> #include <algorithm> #include <stack> #include <limits> #define MAXN 1000 #define INF numeric_limits<double>::infinity() using namespace std; struct Point { int x, y; bool operator < (const Point& that) const { return x < that.x; } } points[MAXN + 1]; // Used for computing E[i][j] which is the ...
#include <primitives.h> #include <cassert> void zero(bitvec_t src) { for (int i = 0; i < src.size(); i++) src[i] = 0; } bit_t equals(bitvec_t a, bitvec_t b) { assert(a.size() == b.size()); bit_t ret = make_bit(); _xnor(ret, a[0], b[0]); bit_t tmp = make_bit(); for (int i = 1; i < a.size(); i++) { _xnor(tmp,...
// This program is a phonebook application which can display names and phone numbers, // allows new names and phone numbers to be added, and allows phone numbers to be modified. #include <iostream> #include <fstream> #include <string> #include<cctype> using namespace std; // Maximum number of names in inpu...
#include <QDebug> #include <QtQuick/qquickwindow.h> #include <QFile> #include <QThread> #include <QFileInfo> #include <QStandardPaths> #include <QTextStream> #include <QIODevice> #include <QTime> #include <algorithm> #include "NESEmulator.h" #include "common.hpp" #include "Sound_Queue.h" #include "apu.hpp" #include "...
#include "RecoLocalCalo/EcalRecAlgos/interface/EcalUncalibRecHitTimingCCAlgo.h" EcalUncalibRecHitTimingCCAlgo::EcalUncalibRecHitTimingCCAlgo(const float startTime, const float stopTime, const float...
#include "Car.hpp" #include "spline.h" #include "Map.h" Car::Car(string mapFile) { map = new Map(mapFile); current_lane = 1; num_path_points = 25; time_per_step = .02; max_acceleration = 8.5; max_vel_change = max_acceleration * time_per_step; } Car::Car() {}; Car::~Car() { //clean up the map } void Car...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "AtomSampleViewerApplication.h" #include <AzGameFramework/Application/GameApplication.h>...
/* OpenVR-Tracking-Example Example on how to access tracking data from OpenVR Copyright 2016, 2017, 2018, 2019, 2020, 2021, Omnifinity OpenVR Copyright (c) 2015, Valve Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fol...
/* * Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. */ #include <sandesh/common/flow_types.h> bool SessionIpPortProtocol::operator < (const SessionIpPortProtocol &rhs) const { if (service_port < rhs.service_port) { return true; } else if (service_port == rhs.service_port && protocol ...
#include "../../include/drawers/CameraDrawer.h" #include "../../include/imgui/imgui_extensions.h" #include "components/Camera.h" #include "imgui.h" using namespace PhysicsEditor; CameraDrawer::CameraDrawer() { } CameraDrawer::~CameraDrawer() { } void CameraDrawer::render(Clipboard &clipboard, Guid id) { Inspe...
#include "attendance.h" //developer:GitHub_CSTHenry(<EMAIL>) char *simpleTime(); char *nowTime() { static char nowTime[50]; time_t now = time(nullptr); strftime(nowTime, 50, "%Y年%m月%d日 %H:%M:%S", localtime(&now)); return nowTime; } char *simpleTime() { static char simpleTime[25];...
/****************************************************************************//* * Copyright (C) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, includ...
#include <vector> #include <algorithm> #include <string> #define OLC_PGE_APPLICATION #include "../olcPixelGameEngine.h" using namespace std; const float PI = 3.1415926f; struct GameObject { float x, y; float dx, dy; int size; float angle; bool active; }; class AsteroidsGame : public olc::PixelGa...
#include "engine.h" #include "logger.h" #include "logger/log_sink.h" #include "../util/algorithm.h" #include "../util/threads.h" #include "../renderer/renderer.h" #include "../os/os.h" #include "../input/input.h" #include "../dependencies.h" #include <stdexcept> #include <iostream> #include <fstream> namespace { boo...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <assert.h> #include <exception> #include <stdexcept> #include <stdlib.h> #include <string> #include <type_traits> #include <typeinfo> using namespace std; #define STATIC_ASSERT(...) static_assert(...
template<u32 Size> inline auto Bus::read(u32 address) -> u64 { static constexpr u64 unmapped = 0; address &= 0x1fff'ffff - (Size - 1); if(address <= 0x007f'ffff) return rdram.ram.read<Size>(address); if(address <= 0x03ef'ffff) return unmapped; if(address <= 0x03ff'ffff) return rdram.read<Size>(address); if...
#include "buddy_heap.h" #include "math.h" #include "debugger.h" buddy_heap::block_pointer buddy_heap::block_pointers[1 << (order_count - 2)]; buddy_heap::block_pointer* buddy_heap::available_block_pointers[1 << (order_count - 2)]; buddy_heap::block_pointer** buddy_heap::last_available_block_pointer; buddy_hea...
/* Copyright (c) 2015 <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, ...
// // Bachelor of Software Engineering // Media Design School // Auckland // New Zealand // // (c) 2005 - 2015 Media Design School // // File Name : SAHepler.h // Description : CSAHepler declaration file. // Author : <NAME>. // Mail : <EMAIL> // // PCH #include "RobotronStd.h" // Library Includes // This Include...
/* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. 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 certai...
#include <iostream> #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <ctime> #include <vector> #include <map> #include <queue> #include <stack> #define F first #define S second #define MP make_pair using namespace std; typedef long long ll; typedef long double ld; ...
/* Author: <NAME> E-mail: <EMAIL> Date: 2020/05/30 Modifier: <NAME> Date: 2020/08/30 */ #include <gtest/gtest.h> #include <time.h> #include "../../src/common/benchmarkoptionsparser.h" #include "../../src/common/utility.h" #include "../common/basetest.h" #include <iostream> #include <algorithm> usi...
// // Created by root on 11/14/19. // #include <sys/epoll.h> #include "lib/common.h" #include<iostream> #include <fcntl.h> #include <poll.h> #include <sys/un.h> #include <sys/socket.h> #include <netinet/in.h> #include <string.h> #include <arpa/inet.h> #include <errno.h> #include <error.h> #include <unistd.h> #inclu...
#include <zlib.h> #include "hts.h" #include "png.h" HTS::HTS(const std::string& Filename) { HTSfile.open(Filename, std::ifstream::binary); if (HTSfile) readHeader(); } bool HTS::readHeader() { read(m_Config); read(m_storagePos); if (m_storagePos < 0) return false; HTSfile.seekg(m_storagePos, std::ifs...
#include <Arduino.h> #include <SPI.h> #include <avr/power.h> #include <hal/hal_io.h> #include <hal/print_debug.h> #include <keyhandler.h> #include <lmic.h> #include <algorithm> #include <sleepandwatchdog.h> #define DEVICE_TEMP1 #include "lorakeys.h" #include "powersave.h" void do_send(); void reset_and_do_send(); ...
#include <Arduino.h> #include <Wire.h> #include "Sensors.h" //! MPU6050 센서관련 설정 void MPU6050_Init() { GYRO_MODEL.address = 0x68; // 6050 자이로센서의 통신주소 GYRO_MODEL.whoAmIREG = 0x75; // 6050 자이로센서의 Who am I register 위치 GYRO_MODEL.whoAmIValue = 0x68; // 6050 자이로센서의 Who am I value GYRO_MODEL.accScale0 = 16384.0f; ...
#include "BaconPlugs.hpp" #include "ChipSym.hpp" struct ChipNoise : virtual Module { enum ParamIds { NOISE_LENGTH, LONG_MODE, SHORT_LEN, PERIOD_93, NUM_PARAMS }; enum InputIds { NOISE_LENGTH_INPUT, NUM_INPUTS }; enum OutputIds { NOISE_OUTPUT, NUM_OUTPUTS }; enum Lig...
/** Example 018 Splitscreen A tutorial by <NAME>. In this tutorial we'll learn how to use splitscreen (e.g. for racing-games) with Irrlicht. We'll create a viewport divided into 4 parts, with 3 fixed cameras and one user-controlled. Ok, let's start with the headers (I think there's nothing to say about it) */...
/** BSD-3-Clause Copyright 2019 Alliance for Sustainable Energy, LLC 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 and the...
/* * libre.cpp * RHCS * * Created by <NAME> on 05/06/14. * Copyright 2005 __MyCompanyName__. All rights reserved. * */ #include "params.h" // ****************************************************************************************************************** // FUNCION calcogauss: excita un sistema de npart...
/* * This file is a part of * * ============================================ * ### Pteros molecular modeling library ### * ============================================ * * (C) 2009-2018, <NAME> * * All works, which use Pteros, should cite the following papers: * * 1. <NAME>, "Pteros 2.0: Evolution of ...
/* * $Id$ * * Copyright (c) 2011 Surfnet * Copyright (c) 2011 .SE (The Internet Infrastructure Foundation). * Copyright (c) 2011 OpenDNSSEC AB (svb) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
#include "Percentiles.h" Percentiles::Percentiles(): raw_data_sorted(false) { } Percentiles::Percentiles(const string& name, const string& description): raw_data_sorted(false), name(name), description(description) { } Percentiles::Percentiles(const string& name, const string& description, vector<Percentiles>& many_p...
// Copyright 2013, <NAME>, All rights reserved. #pragma once #define UTIL_DEFAULT_DELIM ',' #define UTIL_DEFAULT_NEST '(' #define UTIL_DEFAULT_UNNEST ')' #include <map> #include <vector> #include <string> #include <fstream> #include <sstream> #include <iostream> #include <algorithm> #include <type_traits> #inclu...
/********************* */ /*! \file cvc5-printinh.cpp ** \verbatim ** Top contributors (to current version): ** <NAME> ** This file is part of the smt-switch project. ** Copyright (c) 2020 by the authors listed in the file AUTHORS ** in the top-level source direc...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 5 End-User Lic...
#include <iostream> #include <cmath> #include <random> #include <ctime> #include <chrono> #include <functional> const int NUM = 100; const long NUM1 = 40000; const double MAX = 50; struct Point { double x, y, z; double dist() { return sqrt((x * x) + (y * y) + (z * z)); } }; double rand_num(doubl...
//===- WorkList.cpp - Analyzer work-list implementation--------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() using namespace std; const int MM = 105; template <class _FlowUnit> struct FlowEdge { using FlowUnit = _FlowUnit; int to, rev; FlowUnit cap, resCap; FlowEdge(int to, int rev, FlowUnit cap) : to(to), rev(rev), cap(cap), resCap(cap) {} }; te...
#include "aac.h" #include "bitStream.h" #include "vod_common.h" // convert AAC prifle to mpeg 4 object type. /* const int AACCodec::object_type[9] = {1, // 'AAC_MAIN' -> AAC Main 2, // 'AAC_LC' -> AAC Low complexity 3, // 'AAC_SSR' -> AAC SSR 4, // 'AAC_LTP' -> AAC Lon...
/* * AMGlib Template * Powered by Andresmargar * from SCENEBETA */ // Includes AMG #include <AMG/AMGLib.h> // Module info AMG_MODULE_INFO("AMG_Template", AMG_USERMODE, 1, 1); // Límites del mundo 3D // World limits ScePspFVector3 world[2] = { {-1000.0f, -1000.0f, -1000.0f}, {1000.0f, 1000.0f, 1000.0f} }; //...
// Namco 106 mapper // Nes_Emu 0.7.0. http://www.slack.net/~ant/ #include "Nes_Mapper.h" #include "Nes_Namco_Apu.h" /* Copyright (C) 2004-2006 <NAME>. This module 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 ...
#include"hDraw.h" GameDrawWord::GameDrawWord(unsigned int fps, GameFge *gameFge): GameDrawSet(fps, gameFge) { SDL_Surface* font = IMG_Load("./Img/font.png"); charaWidth = font->w/16; charaHeight = font->h/6; ///\brief 开始符号: '!' char charaNum = '!'; /** * \brief 字符charaNum在Font图片中的位置 * * 第一行第一个为Space(...
/* * Copyright (c) 2011-2021, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
/* $Id: silvia_asn1.cpp 50 2013-06-30 11:28:35Z rijswijk $ */ /* * Copyright (c) 2013 <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: * 1. Redistributions of source code must ret...
#include "SoundProgramming.h" #include "gl_core_4_4.h" #include "GLFW/glfw3.h" #include "Gizmos.h" #include <iostream> #include <fmod_errors.h> bool SoundProgramming::startup() { if (Application::startup() == false) { return false; } glClearColor(0.3f, 0.3f, 0.3f, 1.0f); glEnable(GL_DEP...
/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * EPICS BASE is distributed...
// Filename: config_tinydisplay.cxx // Created by: drose (24Apr08) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. Yo...
#include "mkv-reader.h" #include "mov-format.h" #include "mov-writer.h" #include "webm-vpx.h" #include "rtsp-payloads.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> static uint8_t s_buffer[4 * 1024 * 1024]; static int s_audio_track; static int s_video_track; static int s_subtitle_tra...
/* --------------------------------------------------------------------------- ** This software is in the public domain, furnished "as is", without technical ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** ** V4l2RTSPServer.cpp ** ** V4L2 RTSP server ** ** ------------...
// Changes in this file // - Shaders are read from file // - Use uniform in fragment shader #include <iostream> #include <fstream> #include <cmath> #include <glad/glad.h> #include <GLFW/glfw3.h> GLfloat vertices[] = { 0.5f, 0.5f, 0.0f, 0.5f, -0.5f, 0.0f, -0.5f, -0.5f, 0.0f, -0.5f, 0.5f, 0.0f, }; G...
/* * GoogletestVlEngineBase.cpp * * Created on: Dec 2, 2018 * Author: ballance */ #include "GoogletestVlEngineBase.h" #include "GvmTimeoutException.h" #include <stdio.h> #undef DEBUG_EN #ifdef DEBUG_EN #define debug(...) fprintf(stdout, __VA_ARGS__) ; fflush(stdout) #else #define debug(...) #endif Google...
#include "PirateMap.h" #include "mc/MinecraftWorld.h" #include "mc/nbt/NBTCompound.h" #include "mc/nbt/NBTInt.h" #include "Canvas.h" #include <chrono> #include <fstream> #include <unordered_map> #include <exception> #include <iostream> PirateMap::PirateMap(const std::string& worldDirectory, const std::string& outp...
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2007-2010 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT license. * * Authors: * <NAME> */ #include "accelerant.h" #include <errno.h> #include <string.h> #include <unistd.h> AccelerantInfo gInfo; // global data used by various source files of // accelerant...
#include <stdio.h> #include <plog/Log.h> #include <plog/Appenders/ColorConsoleAppender.h> #include <argparse.h> #include "i2c.h" #include "flash.h" #include "devices/rtd2660.h" void downloadFirmware(devices::device *device, std::string filename) { PLOG_INFO << "Download firmware from device, enter ISP mode first"; d...
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
#define GPK_CONSOLE_LOG_ENABLED #define GPK_ERROR_PRINTF_ENABLED #define GPK_WARNING_PRINTF_ENABLED #define GPK_INFO_PRINTF_ENABLED #include "gpk_array.h" #include "gpk_png.h" #include "gpk_storage.h" #include "gpk_base64.h" #include "gpk_parse.h" #include "gpk_stdstring.h" ::gpk::error_t pngToFont ( ::gpk...
/*************************************************************************/ /* scene_diff.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2017 <NAME> - imazing.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 * i...