repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
Lyuu17/plugin_sdk | plugin_III/game_III/cDMAudio.h | <gh_stars>0
/*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
class PLUGIN_API cDMAudio
{
public:
SUPPORTED_10EN_11EN_STEAM void ... |
Lyuu17/plugin_sdk | plugin_III/game_III/CFont.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CRGBA.h"
#include "CRect.h"
#include "CFontDetails.h"
#include "CSprite2d.... |
Lyuu17/plugin_sdk | plugin_III/game_III/meta/meta.CCoronas.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
META_BEGIN(CCoronas::DoSunAndMoon)
static int address;
static int glo... |
Lyuu17/plugin_sdk | plugin_III/game_III/meta/meta.CParticle.h | <filename>plugin_III/game_III/meta/meta.CParticle.h<gh_stars>0
/*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
CTOR_META_BEGI... |
Lyuu17/plugin_sdk | plugin_III/game_III/cAudioManager.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "cPoliceRadio.h"
#include "CVector.h"
#define NUM_SOUNDS_SAMPLES_BANKS 2
#... |
Lyuu17/plugin_sdk | plugin_III/game_III/CColPoint.h | <gh_stars>0
/*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CVector.h"
class PLUGIN_API CColPoint {
public:
CVector m... |
Lyuu17/plugin_sdk | plugin_III/game_III/CVehicleModelInfo.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CClumpModelInfo.h"
#include "CVector.h"
#include "CRGBA.h"
#include "eHand... |
Lyuu17/plugin_sdk | plugin_III/game_III/meta/meta.CPed.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
CTOR_META_BEGIN(CPed)
static int address;
static int global_address;
... |
Lyuu17/plugin_sdk | plugin_III/game_III/cPoliceRadio.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CVector.h"
struct cAMCrime
{
int m_CrimeType;
CVector m_vecPos;
short ... |
Lyuu17/plugin_sdk | plugin_III/game_III/meta/meta.CSprite.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
META_BEGIN(CSprite::CalcScreenCoors)
static int address;
static int g... |
Lyuu17/plugin_sdk | plugin_III/game_III/meta/meta.CWorld.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
META_BEGIN(CWorld::CameraToIgnoreThisObject)
static int address;
stat... |
naughtyboypsp/RTLbsLocationSDK | RTLbsLocationSDK/RTLbsLocPoiInfo.h | //
// RTLbsLocPoiInfo.h
// BeaconLocation
//
// Created by zhaoyubin on 15/12/24.
// Copyright © 2015年 zhaoyubin. All rights reserved.
//
#import <Foundation/Foundation.h>
///Poi信息类
@interface RTLbsLocPoiInfo : NSObject
@property(nonatomic,copy)NSString *build_name;
@property(nonatomic,copy)NSString *floor;
@prope... |
naughtyboypsp/RTLbsLocationSDK | RTLbsLocationSDK/RTLbsLocationVersion.h | <reponame>naughtyboypsp/RTLbsLocationSDK<gh_stars>0
//
// RTLbsLocationVersion.h
// BeaconLocation
//
// Created by zhaoyubin on 15/8/12.
// Copyright (c) 2015年 zhaoyubin. All rights reserved.
//
#import <UIKit/UIKit.h>
/*****更新日志:*****
SDK V2.0.1 so库 V6.4.1
在线定位数据包添加licenseKey
SDK V2.1 so库 V6.4.1
优化定位... |
clayne/c-blosc2 | examples/simple.c | /*
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
Example program demonstrating the use of a Blosc from C code.
To compile this program:
$ gcc -O simple.c -o simple -lblosc2
To run:
$ ./simple
Blosc version info: 2.0.0a2 ($Date:: 2016-... |
clayne/c-blosc2 | plugins/codecs/zfp/blosc2-zfp.h | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyright and rights to use.
***************... |
clayne/c-blosc2 | plugins/codecs/ndlz/ndlz4x4.c | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Author: <NAME> <<EMAIL>>
Author: <NAME> <<EMAIL>>
Author: <NAME> <<EMAIL>>
Creation date: 2020-06-12
See LICENSE.txt for details about copyright and rights to use.
*********************... |
clayne/c-blosc2 | plugins/filters/ndcell/ndcell.c | <filename>plugins/filters/ndcell/ndcell.c
/*
Copyright (C) 2021 The Blosc Developers
http://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
*/
#include <blosc2.h>
#include "ndcell.h"
#include <math.h>
#include <stdio.h>
#include "../plugins/plugin_utils.h"
static void index_unidim_to_multidim(int ndim, const... |
clayne/c-blosc2 | examples/find_roots.c | /*
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
Example program demonstrating how the different compression params affects
the performance of root finding.
To compile this program:
$ gcc -O3 find_roots.c -o find_roots -lblosc2
To run:
... |
clayne/c-blosc2 | plugins/codecs/zfp/zfp-private.h | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyright and rights to use.
***************... |
clayne/c-blosc2 | bench/b2bench.c | /*********************************************************************
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
Small benchmark for testing basic capabilities of Blosc.
You can select different degrees of 'randomness' in input buffer, as
... |
clayne/c-blosc2 | tests/fuzz/fuzz_compress_frame.c | <gh_stars>0
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <blosc2.h>
#ifdef __cplusplus
extern "C" {
#endif
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
const char *compressors[] = { "blosclz", "lz4", "lz4hc", "zlib", "zstd" };
int32_t i = 0, dsize = ... |
clayne/c-blosc2 | plugins/codecs/ndlz/ndlz.h | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyright and rights to use.
***************... |
clayne/c-blosc2 | plugins/codecs/zfp/blosc2-zfp.c | #include "blosc2.h"
#include "frame.h"
#include "blosc2/codecs-registry.h"
#include "zfp.h"
#include "blosc2-zfp.h"
#include <math.h>
#include "context.h"
#include "assert.h"
#include "../plugins/plugin_utils.h"
int zfp_acc_compress(const uint8_t *input, int32_t input_len, uint8_t *output,
int32_t... |
clayne/c-blosc2 | contrib/shuffle_neon/shuffle8_neon/shuffle8_neon_vtbx_bucle.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <arm_neon.h>
#include <string.h>
static void printmem8(uint8x8_t buf)
{
printf("%x,%x,%x,%x,%x,%x,%x,%x\n",
buf[7], buf[6], buf[5], buf[4],
buf[3], buf[2], buf[1], buf[0]);
}
static void printmem16(uint8x16_t r0)
{
uint8_t buf... |
clayne/c-blosc2 | internal-complibs/zlib-ng-2.0.6/trees_emit.h | <gh_stars>0
#ifndef TREES_EMIT_H_
#define TREES_EMIT_H_
#include "zbuild.h"
#include "trees.h"
#ifdef ZLIB_DEBUG
# include <ctype.h>
# include <inttypes.h>
# include <stdint.h>
#endif
/* trees.h */
extern Z_INTERNAL const ct_data static_ltree[L_CODES+2];
extern Z_INTERNAL const ct_data static_dtree[D_CODES];
ex... |
clayne/c-blosc2 | tests/test_small_chunks.c | <filename>tests/test_small_chunks.c
/*
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
*/
#include "test_common.h"
#include "cutest.h"
CUTEST_TEST_DATA(small_chunks) {
bool fix_windows_compilation;
};
CUTEST_TEST_SETUP(small_chunks) {
blosc_ini... |
clayne/c-blosc2 | internal-complibs/zlib-ng-2.0.6/test/switchlevels.c | <gh_stars>100-1000
/* Compresses a user-specified number of chunks from stdin into stdout as a single gzip stream.
* Each chunk is compressed with a user-specified level.
*/
#define _POSIX_SOURCE 1 /* This file needs POSIX for fileno(). */
#include "zbuild.h"
#ifdef ZLIB_COMPAT
# include "zlib.h"
#else
# include... |
clayne/c-blosc2 | plugins/codecs/zfp/test_zfp_rate_float.c | <filename>plugins/codecs/zfp/test_zfp_rate_float.c
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt f... |
clayne/c-blosc2 | tests/fuzz/fuzz_compress_chunk.c | <gh_stars>0
#include <stdint.h>
#include <stdlib.h>
#include <blosc2.h>
#ifdef __cplusplus
extern "C" {
#endif
int LLVMFuzzerTestOneInput(const uint8_t *data, int32_t size) {
const char *compressors[] = { "blosclz", "lz4", "lz4hc", "zlib", "zstd" };
int num_comp = sizeof(compressors) / sizeof(char*);
int level... |
clayne/c-blosc2 | blosc/blosc2-stdio.c | <filename>blosc/blosc2-stdio.c
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyright and... |
clayne/c-blosc2 | contrib/shuffle_neon/shuffle8_neon/shuffle8_neon_opt.c | /* Routine for shuffling a buffer for a type size of 8 bytes. First version (non-optimized) */
void shuffle8_neon(uint8_t* const dest, const uint8_t* const src,
const size_t vectorizable_elements, const size_t total_elements)
{
size_t i, j, k, l;
static const size_t bytesoftype = 8;
uint8x8x4_t r0[2... |
clayne/c-blosc2 | blosc/frame.h | <gh_stars>0
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyright and rights to use.
***... |
clayne/c-blosc2 | blosc/delta.c | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyright and rights to use.
***************... |
clayne/c-blosc2 | tests/test_prefilter.c | <filename>tests/test_prefilter.c
/*
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
*/
#include "test_common.h"
int tests_run = 0;
#define SIZE (500 * 1000)
#define NTHREADS 2
typedef struct {
int ninputs;
uint8_t *inputs[2];
int32_t inp... |
clayne/c-blosc2 | contrib/shuffle_neon/shuffle8_neon/shuffle8_neon_vtbx.c | /* Routine for shuffling a buffer for a type size of 8 bytes. Second version (non-optimized) */
void shuffle8_neon(uint8_t* const dest, const uint8_t* const src,
const size_t vectorizable_elements, const size_t total_elements)
{
size_t i, j, k, l;
static const size_t bytesoftype = 8;
uint8x8x4_t r0[... |
clayne/c-blosc2 | contrib/shuffle_neon/shuffle8_neon/shuffle8_neon_bucle.c | <filename>contrib/shuffle_neon/shuffle8_neon/shuffle8_neon_bucle.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <arm_neon.h>
#include <string.h>
static void printmem8(uint8x8_t buf)
{
printf("%x,%x,%x,%x,%x,%x,%x,%x\n",
buf[7], buf[6], buf[5], buf[4],
buf[3], buf[2], buf[1]... |
clayne/c-blosc2 | tests/test_getitem_delta.c | <gh_stars>0
/*
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyright and rights to use.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "test_common.h"
int tests_run... |
clayne/c-blosc2 | examples/frame_metalayers.c | <gh_stars>0
/*
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
Example program demonstrating the use of the metalayers.
To compile this program:
$ gcc -O frame_metalayers.c -o frame_metalayers -lblosc2
To run:
$ ./frame_metalayers
Blosc... |
clayne/c-blosc2 | plugins/codecs/ndlz/ndlz-private.h | <filename>plugins/codecs/ndlz/ndlz-private.h
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about... |
clayne/c-blosc2 | plugins/plugin_utils.h | /*
Copyright (C) 2021 The Blosc Developers
http://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
*/
void swap_store(void *dest, const void *pa, int size);
int32_t deserialize_meta(uint8_t *smeta, int32_t smeta_len, int8_t *ndim, int64_t *shape,
int32_t *chunkshape, int32_t *blockshap... |
clayne/c-blosc2 | blosc/bitshuffle-avx2.c | <reponame>clayne/c-blosc2<gh_stars>0
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyrig... |
clayne/c-blosc2 | contrib/shuffle_neon/unshuffle16_neon/unshuffle16_neon_vtbx_bucle.c | <reponame>clayne/c-blosc2<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <arm_neon.h>
#include <string.h>
static void printmem8(uint8x8_t buf)
{
printf("%x,%x,%x,%x,%x,%x,%x,%x\n",
buf[7], buf[6], buf[5], buf[4],
buf[3], buf[2], buf[1], buf[0]);
}
static void prin... |
clayne/c-blosc2 | bench/zero_runlen.c | /*
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
Benchmark showing Blosc zero detection capabilities via run-length.
*/
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include <math.h>
#include <inttypes.h>
#include "blosc2.h"
#def... |
clayne/c-blosc2 | examples/urfilters.c | /*
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
Example program demonstrating use of the Blosc filter from C code.
To compile this program:
$ gcc urfilters.c -o urfilters -lblosc2
To run:
$ ./urfilters
*/
#include "stdio.h"
#inclu... |
clayne/c-blosc2 | tests/test_bitshuffle_leftovers.c | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Unit test for the bitshuffle with blocks that are not aligned.
See https://github.com/Blosc/python-blosc/issues/220
Probably related: https://github.com/Blosc/c-blosc/issues/240
Copyright... |
clayne/c-blosc2 | contrib/bitshuffle_neon/bitshuffle8_neon/bitshuffle8_neon_bucle.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <arm_neon.h>
#include <string.h>
#define CHECK_MULT_EIGHT(n) if (n % 8) exit(0);
static void printmem8_l(uint8x8_t buf)
{
printf("%x,%x,%x,%x,%x,%x,%x,%x\n",
buf[0], buf[1], buf[2], buf[3],
buf[4], buf[5], buf[6], bu... |
clayne/c-blosc2 | contrib/shuffle_neon/unshuffle8_neon/unshuffle8_neon_vtbx_bucle.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <arm_neon.h>
#include <string.h>
static void printmem8(uint8x8_t buf)
{
printf("%x,%x,%x,%x,%x,%x,%x,%x\n",
buf[7], buf[6], buf[5], buf[4],
buf[3], buf[2], buf[1], buf[0]);
}
static void printmem16(uint8x16_t r0)
{
uint8_t buf... |
clayne/c-blosc2 | plugins/plugin_utils.c | <reponame>clayne/c-blosc2
/*
Copyright (C) 2021 The Blosc Developers
http://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
*/
#include <stdio.h>
#include "blosc2.h"
#define BLOSC_PLUGINS_MAX_DIM 8
void swap_store(void *dest, const void *pa, int size) {
uint8_t *pa_ = (uint8_t *) pa;
uint8_t *pa2_ = mall... |
clayne/c-blosc2 | contrib/shuffle_neon/shuffle8_neon/shuffle8_neon.c | <reponame>clayne/c-blosc2
/* Routine optimized for shuffling a buffer for a type size of 8 bytes. */
void shuffle8_neon(uint8_t* const dest, const uint8_t* const src,
const size_t vectorizable_elements, const size_t total_elements)
{
size_t i, j, k;
static const size_t bytesoftype = 8;
uint8x8x2_t r... |
clayne/c-blosc2 | plugins/codecs/zfp/test_zfp_rate_getitem.c | <reponame>clayne/c-blosc2
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyrigh... |
clayne/c-blosc2 | contrib/shuffle_neon/unshuffle16_neon/unshuffle16_neon_vtbx.c | /* Routine for unshuffling a buffer for a type size of 16 bytes. Non-optimized version*/
void unshuffle16_neon(uint8_t* const dest, const uint8_t* const src,
const size_t vectorizable_elements, const size_t total_elements)
{
size_t i, j, k, l;
static const size_t bytesoftype = 16;
uint8x8x4_t r0[... |
clayne/c-blosc2 | contrib/shuffle_neon/shuffle2_neon/shuffle2_neon_bucle.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <arm_neon.h>
#include <string.h>
static void printmem16(uint8x16_t r0)
{
uint8_t buf[16];
((uint8x16_t *)buf)[0] = r0;
printf("%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x\n",
buf[15], buf[14], buf[13], buf[12],
... |
clayne/c-blosc2 | contrib/bitshuffle_neon/Test/bitshuffle_bitunshuffle_test4.c | <filename>contrib/bitshuffle_neon/Test/bitshuffle_bitunshuffle_test4.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <arm_neon.h>
#include <assert.h>
#define CHECK_MULT_EIGHT(n) if (n % 8) exit(0);
static void printmem8(uint8x8_t buf)
{
printf("%x,%x,%x,%x,%x,%x,%x,%x\n",
buf[7], buf... |
clayne/c-blosc2 | plugins/filters/ndmean/ndmean.c | <filename>plugins/filters/ndmean/ndmean.c<gh_stars>0
/*
Copyright (C) 2021 The Blosc Developers
http://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
*/
#include "ndmean.h"
#include <stdio.h>
#include <blosc2/blosc2-common.h>
#include "../plugins/plugin_utils.h"
static void index_unidim_to_multidim(int8_t ... |
npisanti/np-miscela | miscela/src/Layer.h | <gh_stars>1-10
#pragma once
#include "ofMain.h"
#include "DotFrag.h"
#include "np-pixelscript.h"
namespace np{ namespace miscela {
class Layer{
public:
Layer();
void load( std::string path );
void render( ofFbo & fbo );
void setControlX( float value );
void setControlY( float value );
... |
npisanti/np-miscela | miscela/src/Combination.h |
#pragma once
#include "ofMain.h"
#include "Layer.h"
namespace np{ namespace miscela {
class Combination {
public:
void setup( int w, int h, int downsample=1, int multisampling=0 );
void clear();
void add( std::string path );
void update();
void resize( int w, int h );
void setCon... |
npisanti/np-miscela | miscela/src/ofApp.h | <gh_stars>1-10
#pragma once
#include "ofMain.h"
#include "ofxGui.h"
#include "Combination.h"
#include "np-analyzer.h"
#define OVERSAMPLING 0
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void exit();
void keyPressed(int key);
void keyReleased(int... |
npisanti/np-miscela | miscela/src/SandBox.h | <reponame>npisanti/np-miscela
#pragma once
#include "ofMain.h"
namespace np{ namespace miscela {
class SandBox{
public:
SandBox();
ofParameter<float> controlX;
ofParameter<float> controlY;
ofParameter<bool> buttonA;
ofParameter<bool> buttonB;
ofParameter<ofColor> colorA;
ofParamet... |
npisanti/np-miscela | miscela/src/DotFrag.h |
#pragma once
#include "ofMain.h"
#include "dotfrag/Live.h"
#include "SandBox.h"
namespace np { namespace miscela {
class DotFrag : public SandBox, public ofx::dotfrag::Live {
public:
DotFrag(){
timewarp();
pingpong();
uniform( controlX, "u_control_x" );
uniform( controlY, "u_co... |
keshavgupta21/pynq_api_cpp | src/pynq_api.c | /*
* BSD 3-Clause License
*
* Copyright (c) 2019, <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 retain the above copyright notice, this
* lis... |
keshavgupta21/pynq_api_cpp | src/pynq_api.h | <filename>src/pynq_api.h
/*
* BSD 3-Clause License
*
* Copyright (c) 2019, <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 retain the above copyri... |
keshavgupta21/pynq_api_cpp | src/pynq_axi_gpio.c | <reponame>keshavgupta21/pynq_api_cpp
#include "pynq_api.h"
int PYNQ_openAXIGPIOCH(PYNQ_AXI_GPIO_CH* gpio_ch, size_t base_address, size_t chnum) {
PYNQ_createMMIOWindow(&(gpio_ch->mmio_window), base_address, 0x10);
if (chnum == 1) {
gpio_ch->dataOffset = PYNQ_AXI_GPIO_CH1DATA_OFFSET;
gpio_ch->da... |
SunHaiMeng/SHMMapBDMethod | SHMMapMethod/SHMMapMethod/SHMMapTools.h | //
// SHMMapTools.h
// SHMMapMethod
//
// Created by apple on 2018/11/29.
// Copyright © 2018年 GXT. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SHMMapTools : NSObject
@end
NS_ASSUME_NONNULL_END
|
SunHaiMeng/SHMMapBDMethod | SHMMapMethod/SHMMapMethod/SHMLocationMap.h | //
// SHMLocationMap.h
// MinSu
//
// Created by apple on 2018/8/21.
// Copyright © 2018年 GXT. All rights reserved.
//
#import <Foundation/Foundation.h>
//#import <BaiduMapAPI_Map/BMKMapComponent.h>//引入地图功能所有的头文件
//#import <BaiduMapAPI_Base/BMKBaseComponent.h>//引入base相关所有的头文件
//#import <BaiduMapAPI_Search/BMKSearc... |
avahidi/bmlib | src/div10.c | <gh_stars>1-10
#include "bmlib.h"
#ifdef BMLIB_HAS_DIV10
/* divide by ten 10, from Hacker's Delight chapter 10 */
uint32_t divu10(uint32_t n)
{
uint32_t q, r;
q = (n >> 1) + (n >> 2);
q = q + (q >> 4);
q = q + (q >> 8);
q = q + (q >> 16);
q = q >> 3;
r = n - q*10;
return q + ((r + 6) ... |
avahidi/bmlib | test/src/main.c |
#include "bmlib.h"
#include "testing.h"
extern void test_div();
extern void test_string();
extern void test_string_strtok();
extern void test_string_mem();
extern void test_stdio();
int main(int argc, char **argv)
{
test_start();
test_div();
test_string();
test_string_strtok();
test_string_mem... |
avahidi/bmlib | test/src/testing.h | /*
* minimal testing framework
*/
#ifndef __TESTING_H__
#define __TESTING_H__
#include <stdbool.h>
#define test(msg, v) \
test_record0(msg, v, "")
#define test_eq(msg, a, b) \
test_record2(msg, (a) == (b), "%d == %d", (int) a, (int) b)
#defi... |
avahidi/bmlib | test/src/stdio.c | <gh_stars>1-10
#include "bmlib.h"
#include "testing.h"
void test_stdio()
{
char buffer[100];
int n;
test_group_start("stdio");
/* snprintf */
n = snprintf(buffer, 100, "AB%d%c%s%x", 23, 'c', "xyz", 0x123);
test_eq("snprintf A", 0, strcmp(buffer, "AB23cxyz00000123"));
test_eq("snprintf A2... |
avahidi/bmlib | test/src/string.c |
#include "bmlib.h"
#include "testing.h"
void test_string()
{
char buffer[10];
char *tmp;
test_group_start("string");
/* strlen */
test_eq("strlen test A", 4, strlen("ABCD"));
test_eq("strlen test B", 0, strlen(""));
/* strchr */
tmp = "ABC";
test_eq("strchr test A", tmp + 2, st... |
avahidi/bmlib | test/src/string_mem.c |
#include "bmlib.h"
#include "testing.h"
void test_string_mem()
{
char buffer1[10], buffer2[10];
char *tmp;
int i;
test_group_start("string_mem");
/* memset */
for(i = 0; i < 10; i++)
buffer1[i] = 0x33;
memset((void *)buffer1, 0x44, 9);
for(i = 0; i < 9; i++)
test_eq... |
avahidi/bmlib | src/string.c | <filename>src/string.c<gh_stars>1-10
#include <bmlib.h>
#ifdef BMLIB_HAS_STRING
/*
* string functions.
* some are optimised for size not efficiency or libc conforming!
*/
int strlen(const char *s)
{
int ret = 0;
while(*s++ != '\0')
ret++;
return ret;
}
void strcpy(char *dst, const char *src)... |
avahidi/bmlib | test/src/div.c | <filename>test/src/div.c
#include "bmlib.h"
#include "testing.h"
void test_div()
{
test_group_start("div");
test_eq("div A", 5, divu10(55));
test_group_end();
}
|
avahidi/bmlib | src/config/bmconfig.h | #ifndef __BMCONFIG_H__
#define __BMCONFIG_H__
/*
* This is the library configuration file, which defines what parts are included.
* Comment definitions to disable specific parts.
*
* Note that you can provide a different bmconfig.h file by setting the CONFIG make variable.
*/
#define BMLIB_HAS_PRINTF_X64 /* %X p... |
avahidi/bmlib | test/src/string_strtok.c |
#include "bmlib.h"
#include "testing.h"
static void test_one(const char *str, const char *delim,
const char **expected, int _r)
{
int i;
char buffer[1024];
char *save, *token;
strcpy(buffer, str);
for(i = 0; expected[i]; i++) {
if(_r)
token = strtok_r( i == 0 ? buffer : 0, deli... |
avahidi/bmlib | src/bmlib.h | <gh_stars>1-10
#ifndef __BMLIB_H__
#define __BMLIB_H__
#include "bmconfig.h"
#ifdef __ASSEMBLER__
#else /* __ASSEMBLER__ */
#include <stdint.h>
#include <stdarg.h>
/* often used attributes */
#define __packed __attribute__((packed))
#define __naked __attribute__((naked))
#define __weak __attribute__((weak))
#i... |
avahidi/bmlib | test/src/testing.c | /*
* minimal testing framework
*/
#include <stdbool.h>
#include "bmlib.h"
#include "testing.h"
/* instead of the whole <stdlib.h>: */
extern void exit(int);
static bool inside_group = false;
static int total_cnt = 0;
static int total_fail = 0;
static int group_cnt = 0;
static int group_fail = 0;
static int groups... |
avahidi/bmlib | src/stdio.c | <filename>src/stdio.c<gh_stars>1-10
#include "bmlib.h"
#include <stdarg.h>
#ifdef BMLIB_HAS_PRINTF
/* write targets for *printf() */
struct write_context {
void (*write)(struct write_context *, int data);
char *buffer;
int curr, max;
};
static void sprintf_write(struct write_context *c, int data)
{
... |
pengdao/simcc | simcc/json/json_object.h | // Created: 2009/08/07
// Author: weizili
#pragma once
#include "simcc/inner_pre.h"
#include "json_common.h"
#include "json_value.h"
#include "json_parser.h"
namespace simcc {
namespace json {
class JSONArray;
class JSONTokener;
class SIMCC_EXPORT JSONObject : public Object, public JSONParser {
public:
typedef st... |
pengdao/simcc | simcc/inner_pre.h | #pragma once
#include "platform_config.h"
#ifndef H_CASE_STRING_BIGIN
#define H_CASE_STRING_BIGIN(state) switch(state) {
#define H_CASE_STRING(state) case state: return #state; break;
#define H_CASE_STRING_END() default: return "Unknown"; break; }
#endif
#include <string>
namespace simcc {
using std::string;
usin... |
pengdao/simcc | simcc/handler_guard.h | #pragma once
#include <functional>
namespace simcc {
class HandlerGuard {
public:
typedef std::function<void()> Handler;
public:
HandlerGuard(Handler h)
: cb_(h), execute_(true) {}
~HandlerGuard() {
if (execute_) {
cb_();
}
}
void set_execute(bool v) { execu... |
pengdao/simcc | simcc/misc/crc32.h | <gh_stars>100-1000
#pragma once
#include "simcc/inner_pre.h"
#include <stdint.h>
#include <string>
namespace simcc {
class SIMCC_EXPORT CRC32 {
public:
// @brief
// @param d Source data buffer, If length is length than dwLength, result is unknown.
// @param len The size of d.
// @return crc value.
... |
pengdao/simcc | simcc/type_traits.h | #pragma once
#include "platform_config.h"
#include <type_traits>
#define H_IS_POD_TYPE( type , booltype ) namespace std { \
template<> \
struct is_pod<type> : public booltype##_type {}; \
}
|
pengdao/simcc | simcc/platform_config.h | #pragma once
#ifdef _DEBUG
#ifndef H_DEBUG_MODE
#define H_DEBUG_MODE
#endif
#endif
#include <assert.h>
#include <stdint.h>
#ifdef __cplusplus
#include <iostream>
#include "gettimeofday.h"
#include <memory>
#include <functional>
#endif // end of define __cplusplus
// from google3/base/basictypes.h
// The H_ARRAYSIZE... |
pengdao/simcc | simcc/timestamp.inl.h | #pragma once
#include "gettimeofday.h"
namespace simcc {
inline Timestamp::Timestamp()
: ns_(0) {}
inline Timestamp::Timestamp(int64_t nanoseconds)
: ns_(nanoseconds) {}
inline bool Timestamp::IsEpoch() const {
return ns_ == 0;
}
inline Timestamp::Timestamp(const struct timeval& t)
: ns_(int64_t(t.... |
pengdao/simcc | simcc/misc/crc16.h | #pragma once
#include "simcc/inner_pre.h"
#include <stdint.h>
#include <string>
namespace simcc {
// CRC-16/CCITT
class SIMCC_EXPORT CRC16 {
public:
static uint16_t Sum(const void* data, size_t len);
static uint16_t Sum(const string& s) {
return Sum(s.data(), s.size());
}
};
}
|
pengdao/simcc | simcc/misc/md5.h | <reponame>pengdao/simcc<gh_stars>100-1000
#pragma once
#include "simcc/inner_pre.h"
#include "php_md5.h"
#include <fstream>
#include <iostream>
namespace simcc {
// A wrapper of PHP md5 implementation
class SIMCC_EXPORT MD5 {
public:
enum {
kBinDigestLength = 16, // the length of digest as a 16-byte b... |
pengdao/simcc | simcc/json/json.h | <reponame>pengdao/simcc
// Created: 2009/08/07
// Author: weizili
#pragma once
#include "json_common.h"
#include "json_parser.h"
#include "json_cast.h"
#include "json_value.h"
#include "json_array.h"
#include "json_object.h"
#include "inherited_conf_json.h"
|
pengdao/simcc | simcc/json/json_array.h | <gh_stars>100-1000
// Created: 2009/08/07
// Author: weizili
#pragma once
#include "simcc/inner_pre.h"
#include "simcc/gcc_list.h"
#include "json_common.h"
#include "json_value.h"
#include "json_parser.h"
namespace simcc {
namespace json {
// A JSONArray is an ordered sequence of values. Its external text form is ... |
pengdao/simcc | simcc/json/json_common.h | // Created: 2009/08/07
// Author: weizili
#pragma once
#include "simcc/inner_pre.h"
#include "simcc/ref_object.h"
#include "simcc/string_util.h"
#include "simcc/data_stream.h"
namespace simcc {
namespace json {
enum JSONType {
kUnknownType = 0,
kJSONObject, // JSONObject
kJSONArray, // JSONArray
k... |
pengdao/simcc | simcc/http_data_parser.h | <gh_stars>100-1000
#pragma once
#include "memmem.h"
#include "slice.h"
#include "ini_parser.h"
namespace simcc {
class URIParser {
public:
typedef std::map<std::string, std::string> ssmap;
template<class _TMAP>
static bool Parse(const char* d, size_t dlen, _TMAP& kv) {
#ifdef H_OS_WINDOWS
const c... |
pengdao/simcc | simcc/tokener.h | #pragma once
#include "simcc/inner_pre.h"
#include "simcc/slice.h"
namespace simcc {
// A Tokener takes a source string and extracts characters and tokens from it.
// It is used to help to parse strings.
class Tokener {
public:
Tokener() {
Reset("", 0);
}
Tokener(const string& s);
Tokener(... |
pengdao/simcc | simcc/ref_object.h | <reponame>pengdao/simcc<filename>simcc/ref_object.h
#pragma once
#include "simcc/inner_pre.h"
#include <atomic>
#include <algorithm>
namespace simcc {
// Interface provides referencing counted function.
class SIMCC_EXPORT RefCountable {
public:
// Constructor & Destructor.
RefCountable() {};
virtual ~R... |
pengdao/simcc | simcc/json/json_value.h | <reponame>pengdao/simcc
// Created: 2009/08/07
// Author: weizili
#pragma once
#include "simcc/inner_pre.h"
#include "json_common.h"
namespace simcc {
namespace json {
template<class ValueType>
class JSONValue : public Object {
public:
JSONValue()
: Object(static_cast<JSONType>(ToJSONType<ValueType>::Ty... |
pengdao/simcc | simcc/json/json_parser.h | // Created: 2009/08/07
// Author: weizili
#pragma once
#include "simcc/inner_pre.h"
#include "json_common.h"
namespace simcc {
namespace json {
class SIMCC_EXPORT JSONParser {
public:
enum ErrorCode {
kNoError = 0,
kParameterWrong,
kCommentFormatError,
kJSONArrayNotBeginWithBracke... |
pengdao/simcc | simcc/file_util.h | #pragma once
#include "simcc/inner_pre.h"
#include <list>
#include <string>
#ifdef H_OS_WINDOWS
#include <direct.h>
#endif
namespace simcc {
// File access utility class which provides many help methods
// to make it easy to do operations against file.
class SIMCC_EXPORT FileUtil {
public:
// Query whethe... |
pengdao/simcc | simcc/qh_palloc.h | <gh_stars>100-1000
/*
* Copyright (C) <NAME>
*
* Modified from ngx_palloc.{h,c} of Nginx-0.6.39
* By weizili <<EMAIL>>
* Date : 2011.5.10
*/
#pragma once
#ifndef QIHOO_MEMORY_POOL
#define QIHOO_MEMORY_POOL
#endif
#include <stdio.h>
#define qh_align(size, boundary) (((size) + ((boundary) - 1)) & ~((bound... |
pengdao/simcc | simcc/windows_port.h | <reponame>pengdao/simcc
#pragma once
// Define Operation System.
#if ( defined(_WIN32) || defined(WIN64) )
# ifndef H_OS_WINDOWS
# define H_OS_WINDOWS
# endif
# ifndef H_WINDOWS_API
# define H_WINDOWS_API
# endif
#endif
//
//// Module symbol export
//#ifdef H_WINDOWS_API
//# ifndef H_STATIC_LIB_... |
pengdao/simcc | simcc/json/json_cast.h | // Created: 2009/08/07
// Author: weizili
#pragma once
#include "simcc/inner_pre.h"
#include "json_common.h"
namespace simcc {
namespace json {
template<typename T >
T* cast(json::Object* obj) {
if (obj) {
if (static_cast<JSONType>(T::Type) == obj->type()) {
return static_cast<T*>(obj);
... |
pengdao/simcc | simcc/gcc_list.h | <reponame>pengdao/simcc
#pragma once
#include "simcc/platform_config.h"
#include <list>
namespace simcc {
// A list with the same interface with std::list.
// For gcc compiler, it has higher performance for list::size()
#ifdef H_OS_WINDOWS
template < typename T >
class list : public std::list<T> {};
#else
... |
pengdao/simcc | simcc/json/json_tokener.h | <reponame>pengdao/simcc
// Created: 2009/08/07
// Author: weizili
#pragma once
#include "simcc/tokener.h"
#include "json.h"
namespace simcc {
namespace json {
class Object;
// A JSONTokener takes a source string and extracts characters and tokens from
// it. It is used by the JSONObject and JSONArray constructors t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.