text stringlengths 5.71k 33.7k |
|---|
#include "InputSample.h"
#include "SamplesGame.h"
#if defined(ADD_SAMPLE)
ADD_SAMPLE("Input", "Basic Input", InputSample, 1);
#endif
/**
* Returns the string representation of the given key.
*/
static const char* keyString(int key);
InputSample::InputSample()
: _mouseString("No Mouse"), _font(NULL), _inpu... |
#include "ModelOBJ.h"
#include "OBJLoader.h"
namespace cs557_OBJModel
{
static const string vs_string_410 =
"#version 410 core \n"
" \n"
"uniform mat4 projectionMatrix; ... |
/// \file piped_process.cpp
/// Subprocess communication with pipes.
/// \author Diffblue Ltd.
// NOTES ON WINDOWS PIPES IMPLEMENTATION
//
// This is a note to explain the choices related to the Windows pipes
// implementation and to serve as information for future work on the
// Windows parts of this class.
//
// Win... |
#include "PointCloud.h"
#include "LoadingSaving.h"
#include <algorithm> // std::remove_if
using namespace Eigen;
using namespace std;
PointCloud::PointCloud(){
cout<<" PointCloud default constructor"<<endl;
}
//PointCloud::PointCloud(const PointCloud &other){
// cout<<" PointCloud copy constructor"<<end... |
/*
SDS, a bridge single-suit double-dummy quick-trick solver.
Copyright (C) 2015 by <NAME>.
See LICENSE and README.
*/
#include <stdio.h>
#include <assert.h>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
using namespace std;
#include "portab.h"
#include "cst.h"
#include "... |
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 <NAME>
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY... |
/*
Cafu Engine, http://www.cafu.de/
Copyright (c) <NAME> and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "CompPlayerPhysics.hpp"
#include "AllComponents.hpp"
#include "CompCollisionModel.hpp"
#include "Entity.hpp"
#include "World.hpp"
#include "ClipSys/ClipModel.hpp"
#... |
/*
* Copyright 2016-2019 NXP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions and th... |
/*
Copyright (c) 2012, <NAME>, UGO VARETTO, SWISS NATIONAL SUPERCOMPUTING CENTRE (CSCS)
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 copyrig... |
/*---------------------------------------------------------------------------*\
Copyright (C) 2011-2018 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... |
#include "sprite.h"
#include "fileUtils.h"
#include "stb_image.h"
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtx/quaternion.hpp>
#include <glad/glad.h>
#include <iostream>
#include <fstream>
#include <array>
void makeMeshFromThicknessMap(std::vector<Vertex>& vertices, std:... |
#define _USE_MATH_DEFINES
#include <cmath>
#include "LevelManager.h"
#include "IHero.h"
#include "../LuaWrapper/LUAWrapper.h"
#include "GameDefs.h"
LevelManager::LevelManager()
{
m_hero = 0;
}
LevelManager::~LevelManager()
{
Clear();
}
void LevelManager::LoadLevel(const std::string& level)
{
if (m_hero)
{
de... |
// viewer - shows the current results of the ray tracer..
#include <GL/glut.h>
#include <cstdio>
#include <cstdlib>
#ifdef _WIN32
# include <windows.h>
#else
# include <sys/time.h>
#endif
#include "RayTracer.h"
#define VIEWING_DISTANCE_MIN 0.1
#define TEXTURE_ID_SQUARE 1
enum {
MENU_LIGHTING = 1,
MENU_POLYMODE,... |
// Copyright (c) 2015-2016, <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, ... |
/* -------------------------------------------------------------------------- *
* OpenSim: Body.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <stdint.h>
#ifdef _MSC_VER
#include <compat/msvc.h>
#else
#include <ctime>
#endif
#include "gdelta.h"
#include "gear_matrix.h"
#define INIT_BUFFER_SIZE 128 * 1024
#define FPTYPE uint64_t
#define STRLOOK 16
#define STRLSTEP 2
#defin... |
/**************************************
* *
* <NAME>'s Basecode Example *
* nehe.gamedev.net *
* 2001 *
* *
* All Code / Tutorial Commenting *
* by <NAME> ( NeHe ) *
* ... |
// keplers_goat_herd.cpp -- <NAME>, 2021.
// Solve Kepler's equation with a variety of numerical techniques for an array of mean anomalies
//
// Methods implemented are:
// - Newton-Raphson: The quadratic Newton-Raphson root finder.
// - Danby: The quartic root finder described in Danby (1988).
// - Series: An el... |
/*
* dma.cpp
*
* <NAME>
* 1/23/2021
*
* Handles the DMA channels on the PSX.
*/
#include "dma.hh"
#include <vector>
#include <queue>
#include "imgui/imgui.h"
#include "mem/ram.hh"
#include "gpu/gpu.hh"
#define DMA_INFO(...) PSXLOG_INFO("Dma", __VA_ARGS__)
#define DMA_WARN(...) PSXLOG_WARN("Dma", __VA_ARGS__... |
#include "precomp.h"
BOOL CNesEditor::MakeObjectsList(DWORD & lpdwCount, std::vector<NES_LEVEL_ITEM> & pItemsList, DWORD & lpdwHeader)
{
DWORD cPages = CountPages(), cItems = SizeOfItemsList();
CNesLayerArray Layers;
Layers.SetLayersCount(CountLayers(), m_levelFields.fDirection);
CNesObjectsListsArray ... |
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <math.h>
//#include "Halide.h"
#include "pipeline_hls.h"
#include "pipeline_native.h"
#include "halide_image.h"
#include "halide_image_io.h"
#include "coreir.h"
#include "coreir/passes/transform/rungenerators.h"
#include "coreir/simulator/interpreter.h... |
/*
The purpose of this file was to help me implement SVM functions in Cg
fragment shaders by coding based on how data will be passed around in the
render textures. Proof of concept only, will optimize in the future.
https://www.learnopencv.com/histogram-of-oriented-gradients/
*/
#include <opencv2/core.hpp>
#incl... |
///////////////////////////////////////////////////////////////////////////////////////////////////
// Assignment: CG-03-A.01_3DHouse (Ver 2.1) //
///////////////////////////////////////////////////////////////////////////////////////////////////
// system includ... |
#include <algorithm>
#include <any>
#include <cassert>
#include <cctype>
#include <chrono>
#include <memory>
#include <thread>
#include <unordered_map>
#include <utility>
#include <variant>
#include <vector>
#include "barelymusician/common/id.h"
#include "barelymusician/common/random.h"
#include "barelymusician/common... |
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would... |
/**
* @file ArduinoAlarmDecoder.cpp
* @author <NAME> <<EMAIL>>
* @date 01/15/2020
* @version 1.0
*
* @brief AlarmDecoder embedded state machine and parser
*
* @copyright Copyright (C) 2020 Nu Tech Software Solutions, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* yo... |
#include <iostream>
// #include <vector>
// Include header file
#include "msWinsWci.h"
// Include GLEW for mordern open-gl extentions
// #include <GL/glew.h>
#include <GL/gl3w.h>
// Include GLFW for creating window and context
#include <GLFW/glfw3.h>
// #include <common/matrices.hpp>
GLFWwindow *window;
... |
/* Copyright 2015, ARM Limited or its affiliates. All rights reserved. */
//Implementation of generic pktbuf utilities
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <arpa/inet.h>
#include "ppp_packet.h"
#include "ppp_pktpool.h"
#include "compiler.h"
#inclu... |
#include "xla.h"
#include "lib/line_detect_topview.h"
#include "lib/object_detect_topview.h"
//#define SHOW_OUTPUT
#define WRITE_VIDEO
//#define MODE_COLOR
RNG rng(12345);
void XLA::run_hough_transform(const Mat &binary_frame, vector<Vec4i> &lines) {
int houghThreshold = 60;
HoughLinesP(binary_frame, lines, ... |
/*! @file test_spatial.cpp
* @brief Test spatial vector/transform maniuplation functions
*
* Test the spatial utilities
* Doesn't test the algorithms.
*/
#include "Dynamics/SpatialInertia.h"
#include "Dynamics/spatial.h"
#include "Math/orientation_tools.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
using... |
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <sstream>
#pragma warning(disable:4996)
//#pragma warning ( disable : 4789 )
#define SOUND_LEVEL 10
using namespace sf;
void moveSprite(int min,int width, int n, bool &beeActive, float &beeSpeed, int minSpeed, sf::Sprite &beeSprite, s... |
/* TASK SEQUENCER - Contains all recepies for grasping, and other tasks
Authors: <NAME> - <NAME>
Email: <EMAIL>, <EMAIL> */
#include "sensor_msgs/JointState.h"
#include "utils/parsing_utilities.h"
#include "panda_softhand_control/TaskSequencer.h"
TaskSequencer::TaskSequencer(ros::NodeHandle& nh_){
// Initi... |
#include <common.h>
#include <game.h>
#include <profile.h>
const char* SuperBubbleFileList[] = { "frogM", "PoisonMushroom", 0 };
class daSuperBubble_c : public dEn_c {
public:
int onCreate();
int onExecute();
int onDelete();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
nw4r::g3d::Re... |
//
// Copyright (c) 2010-2011 <NAME> and <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,
// includin... |
int mKmk ,/*rFc*/
XBM ,qOdBYN, cs,L7Ne ,NF2
, xfVd ,h4,
N ,y ,o,//L9
oZ ,ye ,AxO ,l2w ,j14,wsYyd
, zi ,tMX,/*Xx*/
eh, cPe
,
i4 ,
f1
, RXA
, K2
//
,
q28VlP , wQ//a
,S0nB/**/ ,qEE
, Jcjum
,EHW1,
M ,
n,ipdgZl,O7Zyuo ,
O5
;void
f_f0() {
int PJa6
;/*ux*//**//*T*/ volatile int SkG,/*I*/ AFBtL... |
//Read/write a file
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h> /* printf, scanf, puts, NULL */
#include <stdlib.h>
#include <time.h>
#include <dirent.h> //mkdir
#include <sys/types.h>
#include <sys/stat.h>
#include <numeric> // std::accumulate
#include <functional> // std::... |
/*
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
*
* 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... |
#include "cli.h"
#include <vector>
cli::cli(int s, int m)
{
seed = s;
mis = m;
result_for_permutation = new refer[MAX_VERTICES];
histogram = new refer[MAX_VERTICES];
sizes = new refer[MAX_VERTICES];
//// degree_distrib = new long[MAX_VERTICES... |
/*=====================
Program: Visualization Toolkit
Module: vtkSQVortexDetect.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied wa... |
#include <stdio.h>
#include <omp.h>
#include <string.h>
#include <sys/time.h>
#include "arch.hpp"
#include "../../global.hpp"
#include "sandy_bridge.hpp"
#include "ivy_bridge.hpp"
#include "haswell.hpp"
#include "skylake_256.hpp"
#include "skylake_512.hpp"
#include "broadwell.hpp"
#include "cannon_lake_256.hpp"
#incl... |
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <<EMAIL>> wrote this file. As long as you retain this notice
* you can do whatever you want with this stuff. If we meet some day, and you
* think this stuff is worth it, you can buy me a b... |
/*
* syngen.cc - forward traveltime calculation
*
* <NAME>, MIT/WHOI
* January 1999
*/
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <ctime>
#include "syngen.h"
#include "betaspline.h"
#include "traveltime.h"
SyntheticTraveltimeGenerator2d::SyntheticTraveltimeGenerator2d(
... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <time.h>
#include <iostream>
#include <sstream> //this header file is needed when using stringstream
#include <fstream>
#include <string>
#include <pthread.h>
#include <string.h>
#include <semaphore.h>
#define MNIS... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include <string>
//#include "Eigen-3.3/Eigen/Core"
//#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
using namespace std;
// for convenience
using js... |
#include "ilo-sitelen.h"
#include <fcitx/event.h>
#include <fcitx/inputpanel.h>
#include <fcitx/instance.h>
#include <unordered_map>
#include <unordered_set>
// todo: pi underline
// todo: replace with a map
// todo: allow customization
std::vector<std::pair<std::string, std::string>> words{
{"kijetesantakalu", ... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
/*
* MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* Copyright (c) 2021, <NAME> (aka restorer)
*
* Permission is hereby grante... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include "midilinux.h"
#include <QDebug>
#include <alsa/seq_midi_event.h>
#include <poll.h>
/**
aseqdump
0:1 Client start client 136
0:1 Port start 136:0
0:1 Port subscribed 0:1 -> 136:0
*/
using namespace Midi;
DriverAlsa *DriverAlsa::m_instance=nullptr;
static bool init... |
/*This source code copyrighted by <NAME> (2004-2015)
and may not be redistributed without written permission.*/
#include <SDL.h>
#include <SDL_image.h>
#include <stdio.h>
#include <string>
#include <fstream>
//Screen dimension constants
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
//The dimensions of... |
// Copyright 2010 <NAME> <<EMAIL>>
#include <errno.h>
#include <error.h>
#include <getopt.h>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <nwc-toolkit/cetr-cluster.h>
#include <nwc-toolkit/cetr-document.h>
#include <nwc-toolkit/character-reference.h>
#define ... |
// Copyright (c) 2015 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpx/hpx_main.hpp>
#include <hpx/iostream.hpp>
#include <hpx/version.hpp>
#include <hpxcl/cuda.hpp>
using namespace h... |
#include "MidiFileResource.h"
#include <cmath>
#include <sstream>
#include "stream-helpers.h"
constexpr int TICKS_PER_QN = 480;
MidiFileResource MidiFileResource::FromMidi(MidiFile& mf) {
MidiFileResource mfr;
if (mf.ticks_per_qn() != TICKS_PER_QN) {
throw std::exception("Midi must use 480 ticks per quarter ... |
/*
Copyright 2020. <NAME>.
Unit and performance tests for Trie.
*/
#include <chrono>
#include <fstream>
#include <functional>
#include <iostream>
#include <set>
#include <type_traits>
#include <vector>
#include "trie.h"
using std::cout;
using std::endl;
using std::function;
using std::ifstream;
using std::is_same;
us... |
#include <cuda_runtime.h>
#include "CondFormats/SiPixelTransient/interface/SiPixelTemplate.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h"
#include "Geometry/TrackerGeometryBuilder/interface/Recta... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/effects/GrSkSLFP.h"
#include "include/effects/SkRuntimeEffect.h"
#include "include/private/GrContext_Base.h"
#include "include/private/SkSLString.h"
#includ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2018 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
// SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
// SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
//
// SPDX-License-Identifier: MIT
//! IMU ORIENTATION ESTIMATION
//! Developed at Control Systems Group, TU Berlin
//! (http://www.control.tu-berlin.de)
//! Algorithm design: <NAME>
//! Code design: <NAME>
//! Further re... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOMessage.h>
#include <IOKit/IOCFPlugIn.h>
#include <IOKit/usb/IOUSBLib.h>
#include <curl/curl.h>
#include<set>
std::set<UInt16> prodIds = {
0x1290,0x1292,0x1294,0x1297,0x129a,0x129c,
0x129f,0x12a0,0x12a2,0x12a3,0x12a4,0x12a... |
// Copyright © 2021 <NAME>
// SPDX-License-Identifier: MIT
/*
This is a simple sample round-robin load balancer. It accepts registrations
from RFC 7425 "servers" (endpoints indicating they accept ancillary data in
their certificates) speaking the http://zenomt.com/ns/rtmfp#redirector protocol.
This implementation cou... |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License vers... |
/*
* Copyright 2005-2008, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
//! kernel-side implementation of the messaging service
#include <new>
#include <AutoDeleter.h>
#include <KernelExport.h>
#include <KMessage.h>
#include <messaging.h>
#include <MessagingServiceDefs.h>
#include "Mess... |
// Copyright 2018-2021 <NAME>
/// @file
/// @brief Support for Electra A/C protocols.
/// @see https://github.com/ToniA/arduino-heatpumpir/blob/master/AUXHeatpumpIR.cpp
/// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/527
/// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/642
/// @see https:... |
/*************************************************************************/
/* */
/* Centre for Speech Technology Research */
/* University of Edinburgh, UK */
/* ... |
#include <ivp_physics.hxx>
#if defined(LINUX)||defined(SUN)||(__MWERKS__ && __POWERPC__)
# include <alloca.h>
#endif
#ifndef WIN32
# pragma implementation "ivp_multidimensional_interp.hxx"
#endif
#include "ivp_multidimensional_interp.hxx"
//#define WITH_DEBUG_OUTPUT 1
#define LOWER_LIMIT -0.2f
#defi... |
/*
* Copyright 2011-2014 <NAME>. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include "common.h"
#include "bgfx_utils.h"
#include <bx/uint32_t.h>
#include "packrect.h"
#include <list>
struct PosTexcoordVertex
{
float m_x;
float m_y;
float m_z;
float m_u;
float m_v;
fl... |
//
// AudioMixerSlave.cpp
// assignment-client/src/audio
//
// Created by <NAME> on 11/22/16.
// Copyright 2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <algorithm>
#include <g... |
// Scintilla source code edit control
/** @file LexErrorList.cxx
** Lexer for error lists. Used for the output pane in SciTE.
**/
// Copyright 1998-2001 by <NAME> <<EMAIL>>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
... |
/*
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/ArgsParser.h>
#include <LibCore/File.h>
#include <LibCore/FileStream.h>
#include <LibLine/Editor.h>
#include <LibWasm/AbstractMachine/AbstractMachine.h>
#include <LibWasm/AbstractMachine/BytecodeInterpreter.h>
... |
#include "ttc.h"
#include "../tasks/timekeeper.h"
#include "../fonts/tahoma_9.h"
#include "../fonts/lcdpixel_6.h"
#include "../srv.h"
#include "../common/slots.h"
#include "../rng.h"
#include "../draw.h"
#include "../tasks/screen.h"
#include <bit>
namespace bitmap {
const uint8_t bus[] = { // really shitty bus
0b1... |
#include "precompiled_stl.hpp"
#include <cassert>
#include <functional>
#include <vector>
#include <iostream>
#include <map>
#include <cmath>
using namespace std;
#include "utils.hpp"
#include "core_functions.hpp"
#include "image_functions.hpp"
#include "visu.hpp"
#include "read.hpp"
#include "normalize.hpp"
vector<d... |
#include <algorithm>
#include "graph/temporal_network.h"
#include "util/parameters_helper.h"
using namespace std;
/**
*void Print( const set < shared_ptr < string >, cmp_str_ptr >& seed )
*
* Simple helper function. Prints the members of a set on the same line (with following newline).
*
*@param seed Vertices t... |
#include "MediaSync.h"
MediaSync::MediaSync() = default;
MediaSync::~MediaSync() = default;
void MediaSync::start(VideoDecoder *pVideoDecoder, AudioDecoder *pAudioDecoder) {
if (ENGINE_DEBUG) {
ALOGD(TAG, "[%s] pVideoDecoder = %p pAudioDecoder = %p", __func__, pVideoDecoder,
pAudioDecoder);... |
#ifdef MAIN
#include "mat.h"
#include "mat_variables.h"
#include <stdio.h>
#else
#include "mex.h"
#endif
//#include <math.h>
#include "msams_converge_core.cpp"
/* msams_converge_mex: move point(s) by adaptive meanshift, using landmarking
*
* Syntax:
* outdata = msams_converge_mex(x,lminfo,y,options)
* where (sy... |
/*
Q Light Controller
qlcchannel.cpp
Copyright (C) <NAME>
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.txt
Unless required by app... |
//
// AudioMixerClientData.cpp
// assignment-client/src/audio
//
// Created by <NAME> on 10/18/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <random>
#include ... |
// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... |
// Boost.Polygon library polygon_segment_test.cpp file
// Copyright <NAME> 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org for updates, documentation, and ... |
#include <algorithm>
#include <iostream>
#include <numeric>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/log/trivial.hpp>
#include <boost/serialization/vector.hpp>
#include <graphtyper/graph/absolute_position.hpp>
#include <graphtyper/graph/haplotype.hpp> /... |
// Copyright 2021 The WebNN-native Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
/*
BulletFluids
Copyright (c) 2012 <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 applicati... |
#include <iostream>
#include <vector>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>
#include <boost/ref.hpp>
#include <boost/program_options.hpp>
#include <boost/thread/thread.hpp>
#include <log4cxx/logger.h>
#include "ocean.h"
#include "ros/ros.h... |
#include "MainGame.h"
#include <Mirage/Mirage.h>
#include <SDL/SDL.h>
#include <iostream>
#include <ctime>
#include <algorithm>
#include <random>
#include <Mirage/vertex.h>
#include <Mirage/Timing.h>
#include <Mirage/errors.h>
#include <Mirage/ResourceManager.h>
#include <glm/gtx/rotate_vector.hpp>
#include <random>
... |
/*
* main.cxx
*
* Jester - a tester of the Opal jitter buffer
*
* Copyright (c) 2006 <NAME>
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.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.mozil... |
/*
* \brief TFTP client, ROM server
* \author <NAME>
* \date 2016-02-24
*/
/*
* Copyright (C) 2016 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* Genode includes */
#include <nic/packet_allocator.... |
#include <Arduino.h>
#include <Print.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <WString.h>
#define debug
#define BUTTON_6
//#define EXPRESSION_2
#include <debug.h>
#include <makros.h>
#include <avdweb_Switch.h>
#include "midi.h"
#include "constants.h"
#include "prgstorage... |
//
// Created by kellerberrin on 30/6/21.
//
#include "kgl_analysis_mutation_data.h"
namespace kgl = kellerberrin::genome;
const std::vector<std::string> kgl::MutationAnalysisData::OMIMGeneSymbol() {
std::vector<std::string> gene_vector;
for (auto const&[ensembl, symbol] : omim_ensembl_symbol_) {
gene_vec... |
//
// F.Ratnikov (UMd), Oct 28, 2005
// $Id: HcalDbXml.cc,v 1.9 2008/11/10 10:13:28 rofierzy Exp $
//
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include "CalibFormats/HcalObjects/interface/HcalText2DetIdConverter.h"
#include "CondFormats/HcalObjects/interface/AllObjects.h"
// Xerces... |
// $Id: CbcBranchFollow2.cpp 2469 2019-01-06 23:17:46Z unxusr $
// Copyright (C) 2004, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include <cassert>
#include <cmath>
#include <cfloat>
//#define CBC_DEBUG... |
#include "TrackingTools/AnalyticalJacobians/interface/AnalyticalCurvilinearJacobian.h"
#include "TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h"
#include <vdt/vdtMath.h>
AnalyticalCurvilinearJacobian::AnalyticalCurvilinearJacobian
(const GlobalTrajectoryParameters& globalParameters,
... |
// Copyright 2015 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.
// Provides a minimal wrapping of the Blink image decoders. Used to perform
// a non-threaded, memory-to-memory image decode using micro second accuracy
/... |
// yolox
// 2021-08-16
#include <fstream>
#include <iostream>
#include <sstream>
#include <numeric>
#include <chrono>
#include <vector>
#include <opencv2/opencv.hpp>
#include "dirent.h"
#include "NvInfer.h"
#include "cuda_runtime_api.h"
#include "../include/logging.h"
#define CHECK(status) \
do\
... |
/*****************************************************************************
* This file is provided under the Creative Commons Attribution 3.0 license.
*
* You are free to share, copy, distribute, transmit, or adapt this work
* PROVIDED THAT you attribute the work to the authors listed below.
* For more information,... |
/*
* Copyright 2002-2014 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> (<EMAIL>)
*/
/* A MediaKit producer node which mixes sound from the GameKit
and sends them to the audio mixer
*/
#include "GameProducer.h"
#include <string.h>
#include <stdio.h>... |
#include "OSinteraction.h"
#include <stdio.h>
#include "typeShortcuts.h"
#include "fileTGA.h"
/* TODO:
*/
// TGA file header
struct TGAH {
uchar idlen; // 1B imgDesc size
uchar cmapFlag; // 1B tga has a cmap (true/false)
uchar imgType; // 1B RGB/GREY/INDEX/ compressed(for all prev types)
short cmap... |
#include <vector>
#include <deque>
#include <string>
#include <algorithm>
#include <iostream>
#include <fstream>
using namespace std;
#include <unistd.h>
#include <sys/wait.h>
#include <boost/program_options.hpp>
using namespace boost;
namespace po = boost::program_options;
#include "opencv2/core/core.hpp"
#include ... |
// GOALS.CPP
// main classes used in the Goals application
// Copyright 2018 <NAME>
//
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
#include <set>
#include <algorithm>
#include "goals.h"
std::ostream& operator <<( std::ostre... |
/*
* ForageManagerImplementation.cpp
*
* Created on: Feb 20, 2011
* Author: Anakis
*/
#include "server/zone/managers/minigames/ForageManager.h"
#include "server/zone/managers/loot/LootManager.h"
#include "server/zone/managers/resource/ResourceManager.h"
#include "server/zone/managers/player/PlayerManager.h"... |
#include "include/ArmorFind/armorpredict.h"
ArmorPredict::ArmorPredict()
{
}
ArmorPredict::ArmorPredict(const string &File640,const string &File1280,const string &File1920,InitParams param){
memset(&Result,0,sizeof(AbsPosition));
Stereo640.Init(File640);
Stereo1280.Init(File1280);
Stereo1920.Init(Fil... |
#include "pch.h"
#include "../tinySTL/string.h"
#include <string>
using stdstring = std::string;
using szstring = sz::string;
TEST(string, constructor) {
const char* ptr = "hello world";
stdstring st1;
szstring sz1;
CONTAINER_ITER_EQ(st1, sz1);
stdstring st2(ptr);
szstring sz2(ptr);
CONT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.