repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
lee-emqx/nanomq | nanolib/zmalloc.c | //
// Copyright 2020 NanoMQ Team, Inc. <<EMAIL>>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt). A copy of the license may also be
// found online at https://opensource.org/licenses/MIT.
//
#inc... |
lee-emqx/nanomq | nanolib/test.c | <reponame>lee-emqx/nanomq
#include <string.h>
#include "include/nanolib.h"
typedef enum{
TEST_TOPIC_PARSE = 0,
TEST_SEARCH_NODE,
TEST_ADD_NODE,
TEST_DEL_NODE,
TEST_ADD_CLIENT,
TEST_DEL_CLIENT,
TEST_SEARCH_CLIENT,
TEST_RETAIN_MSG,
TEST_HASH_ALIAS,
TEST_TOPIC_HASH,
TEST_PIPE_HASH,
TEST_MSG_QUEUE_HASH
} TES... |
lee-emqx/nanomq | nanomq/include/nanomq.h | <filename>nanomq/include/nanomq.h<gh_stars>1-10
#define _GNU_SOURCE
#define DEBUG_FILE_PATH "/tmp/debug_nanomq.log"
// later expose on makefile
/**/
#if defined(NOLOG)
#undef DEBUG_CONSOLE
#undef DEBUG_FILE
#undef DEBUG_SYSLOG
#undef DEBUG_TRACE
#else
#define DEBUG_CONSOLE
#define DEBUG_FILE
#define DEBUG_SYSLOG
#de... |
lee-emqx/nanomq | nanolib/packet_parser/packet_parser.h | #ifndef PACKET_PAESER
#define PACKET_PARSER
#include <string.h>
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
typedef signed char int8_t;
struct mqtt_packet {
uint8_t *binary;
uint32_t pos;
uint32_t remaining_length;
};
uint8_t packet_parse_uint8... |
yongqianvip/RRC | RRC/Classes/RRCLoginViewController.h | //
// RRCLoginViewController.h
// RRC_Example
//
// Created by YYQ on 2018/2/25.
// Copyright © 2018年 yongqianvip. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface RRCLoginViewController : UIViewController
@end
|
yongqianvip/RRC | Example/RRC/RRCViewController.h | //
// RRCViewController.h
// RRC
//
// Created by yongqianvip on 02/25/2018.
// Copyright (c) 2018 yongqianvip. All rights reserved.
//
@import UIKit;
@interface RRCViewController : UIViewController
@end
|
yongqianvip/RRC | Example/RRC/RRCAppDelegate.h | <filename>Example/RRC/RRCAppDelegate.h
//
// RRCAppDelegate.h
// RRC
//
// Created by yongqianvip on 02/25/2018.
// Copyright (c) 2018 yongqianvip. All rights reserved.
//
@import UIKit;
@interface RRCAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
RaStarTools/RaStarLog | RaStarLog.framework/Versions/A/Headers/RSLog.h | //
// RSLog.h
// RSLog
//
// Created by 沈达 on 2018/12/25.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface RSLog : NSObject
/**
显示log
*/
+ (void)showRSLog:(NSString *)msg;
/**
数据格式错误上报
@param data 错误的接口地址
*/
+ (void)dataError:(NSString *)data;
@end
NS_ASSUME_NONNULL_END
|
rwst/biopython | Bio/Align/_aligners.c | /* Copyright 2018 by <NAME>. All rights reserved.
* This file is part of the Biopython distribution and governed by your
* choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
* Please see the LICENSE file that should have been included as part of this
* package.
*/
#define PY_SSIZE_T_CLE... |
Plexxi/inotify | c_src/erl_comm.h | #ifndef ERL_COMM_H
#define ERL_COMM_H
int read_cmd(char **pbuf, int *size, int *curpos);
int read_exact(char *buf, int len);
int write_cmd(ei_x_buff *buff);
int write_exact(char *buf, int len);
#endif
|
Plexxi/inotify | c_src/inotify_driver.c | #include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/select.h>
#include <string.h>
#include <ei.h>
#include "inotify_erlang.h"
#include "erl_comm.h"
#define BUFFER_SIZE 100
int setup_select(note_t *nlist, fd_set *readfds) {
int topfd, maxfd = 0;
/* pselect initialisation */
FD_ZERO(readf... |
Plexxi/inotify | c_src/inotify_erlang.h | <filename>c_src/inotify_erlang.h<gh_stars>10-100
#ifndef NOTE_H
#define NOTE_H
#include <sys/types.h>
struct note_entry_s {
int fd;
struct note_entry_s *next;
};
typedef struct note_entry_s note_entry_t;
struct note_s {
note_entry_t *ent;
};
typedef struct note_s note_t;
note_t *note_init();
int note_setup_... |
Plexxi/inotify | c_src/erl_comm.c | <reponame>Plexxi/inotify
#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <ei.h>
#include "erl_comm.h"
/*
* inputs
* pbuf a pointer to a pointer to the buffer to place the message in
* size size of buf
* curpos current offset into buf. Should be set to 0 before
* ini... |
zakiahmad857/Advanced-Video | Windows/Agora-Screen-Sharing-Windows/ProcessScreenShare/ProcessScreenShareDlg.h |
// ProcessScreenShareDlg.h : header file
//
#pragma once
#include <iostream>
// CProcessScreenShareDlg dialog
class CProcessScreenShareDlg : public CDialogEx
{
// Construction
public:
CProcessScreenShareDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_PROCESSSCREENSHARE_DIALOG };... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows/AgoraMediaSource/IAGDShowDevice.h | <gh_stars>100-1000
#pragma once
#include <DShow.h>
#include <tchar.h>
#include <windows.h>
#pragma comment(lib, "strmbase.lib")
typedef struct _AGORA_DEVICE_INFO
{
GUID guidDevice;
TCHAR szDeviceName[MAX_PATH];
TCHAR szDevicePath[MAX_PATH];
TCHAR szDeviceDesc[MAX_PATH];
} AGORA_DEVICE_INFO,... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows/AgoraMediaSource/video_preprocessing_plugin.h |
#ifndef _VIDEO_PREPROCESSING_PLUGIN_H_
#define _VIDEO_PREPROCESSING_PLUGIN_H_
#include "../SDK/include/IAgoraRtcEngine.h"
int load_preprocessing_plugin(agora::rtc::IRtcEngine* engine);
int unload_preprocessing_plugin(agora::rtc::IRtcEngine* engine);
#endif //_VIDEO_PREPROCESSING_PLUGIN_H_
|
zakiahmad857/Advanced-Video | Windows/Agora-Screen-Sharing-Windows/OpenLive/commonFun.h | #ifndef __COMMONFUN_H__
#define __COMMONFUN_H__
#define MAXPATHLEN 512
//#define MAX_DEVICE_ID_LENGTH 128
#include <vector>
//comfun
std::string getAbsoluteDir();
std::string getFilePath();
std::string getCurRunningExeName();
std::string getFileAbsolutePath(const std::string &file);
std::string getPirorDir(const std... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AGScreenCaptureDlg.h | #pragma once
#include "afxcoll.h"
#define WM_WINDOWSHARE WM_USER+303
// CAGScreenCaptureWnd
class CAGScreenCaptureDlg : public CDialogEx
{
DECLARE_DYNAMIC(CAGScreenCaptureDlg)
public:
CAGScreenCaptureDlg(CWnd* pParent = NULL);
virtual ~CAGScreenCaptureDlg();
enum { IDD = IDD_SCRCAP_DIALOG };
... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AGEngineEventHandler.h | <reponame>zakiahmad857/Advanced-Video
#pragma once
using namespace agora::rtc;
class CAGEngineEventHandler :
public IRtcEngineEventHandler
{
public:
CAGEngineEventHandler(void);
~CAGEngineEventHandler(void);
void SetMsgReceiver(HWND hWnd = NULL);
HWND GetMsgReceiver() {return m_hMainWnd;};
virtu... |
zakiahmad857/Advanced-Video | Windows/Agora-String-Account-Windows/OpenLive/AGConfig.h | #pragma once
class CAGConfig
{
public:
CAGConfig();
~CAGConfig();
int GetSolution();
BOOL SetSolution(int nCodec);
BOOL EnableAutoSave(BOOL bEnable);
BOOL IsAutoSaveEnabled();
private:
TCHAR m_szConfigFile[MAX_PATH];
};
|
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AGConfig.h | #pragma once
class CAGConfig
{
public:
CAGConfig();
~CAGConfig();
int GetSolution();
BOOL SetSolution(int nCodec);
BOOL EnableAutoSave(BOOL bEnable);
BOOL IsAutoSaveEnabled();
private:
TCHAR m_szConfigFile[MAX_PATH];
};
|
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/IAGDShowDevice.h | #pragma once
#include <DShow.h>
#include "DShow/qedit.h"
#include <tchar.h>
#include <windows.h>
#pragma comment(lib, "DShow/strmbase.lib")
typedef struct _AGORA_DEVICE_INFO
{
GUID guidDevice;
TCHAR szDeviceName[MAX_PATH];
TCHAR szDevicePath[MAX_PATH];
TCHAR szDeviceDesc[MAX_PATH];
} AGORA_DEVICE_INFO, *PAGOR... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows/AgoraMediaSource/ExtendVideoFrameObserver.h | #pragma once
#include "../SDK/include/IAgoraMediaEngine.h"
//#include "VideoPackageQueue.h"
#include "AgVideoBuffer.h"
typedef struct _VIDEO_BUFFER {
BYTE m_lpImageBuffer[VIDEO_BUF_SIZE];
int timestamp;
}VIDEO_BUFFER, *PVIDEO_BUFFER;
class CExtendVideoFrameObserver :
public agora::media::IVideoFrameO... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AGMessage.h | <filename>Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AGMessage.h
#pragma once
#define WM_GOBACK WM_USER+100
#define WM_GONEXT WM_USER+101
#define WM_JOINCHANNEL WM_USER+200
#define WM_LEAVECHANNEL WM_USER+201
#define WM_AGSLD_TMBPOSCHANGED WM_USER+200 |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/ExtendAudioFrameObserver.h | <reponame>zakiahmad857/Advanced-Video
#pragma once
#include "../SDK/include/IAgoraMediaEngine.h"
#include "AudioCapturePackageQueue.h"
#include "AudioPlayPackageQueue.h"
#include "XAudioPlayout.h"
class CExtendAudioFrameObserver :
public agora::media::IAudioFrameObserver
{
public:
CExtendAudioFrameObserver();
~CEx... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/AGVideoCapture.h | <reponame>zakiahmad857/Advanced-Video<filename>Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/AGVideoCapture.h
#pragma once
#include <DShow.h>
#include "DShow/qedit.h"
class CAGVideoCapture :
public ISampleGrabberCB
{
public:
CAGVideoCapture();
~CAGVideoCapture();
STDMETHODIMP_(ULONG) AddRef();
STDM... |
zakiahmad857/Advanced-Video | Windows/Agora-RTC-Hooking-API-Windows/AgoraHooking/FileIO.h | #ifndef __FILEIO_H__
#define __FILEIO_H__
#include <vector>
#include <map>
class CFileIO
{
public:
CFileIO();
~CFileIO();
void openLog(const std::string &filepath, int fileFlage = OPEN_ALWAYS);
void openMedia(const std::string &filepath, int fileFlage = CREATE_ALWAYS);
void openReadFile(const std::string &filePa... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AGEventDef.h | #ifndef _AG_EVENT_DEFINE_H_
#define _AG_EVENT_DEFINE_H_
#define WM_MSGID(code) (WM_USER+0x200+code)
#define WM_EVTID(code) (code-0x200-WM_USER)
typedef struct _AGE_JOINCHANNEL_SUCCESS
{
char *channel;
uid_t uid;
int elapsed;
} AGE_JOINCHANNEL_SUCCESS, *PAGE_JOINCHANNEL_SUCCESS, *LPAGE_JOINCHANNEL_SU... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows/AgoraMediaSource/AGComboBox.h | <filename>Windows/Agora-Media-Source-Windows/AgoraMediaSource/AGComboBox.h
#pragma once
#include <afxtempl.h>
#define WM_AGCBXNOTIFY_SELCHANGE WM_USER+
class CAGComboBox;
// CAGComboBox
class CAGComboBoxList : public CWnd
{
DECLARE_DYNAMIC(CAGComboBoxList)
public:
CAGComboBoxList();
virtual ~CAGCom... |
zakiahmad857/Advanced-Video | Windows/Agora-RTC-Hooking-API-Windows-yingyonghuyu/AgoraHooking/AgoraHookingDlg.h |
// AgoraHookingDlg.h : header file
//
#include "AGButton.h"
#pragma once
class CAssistantBox;
class CExtendAudioFrameObserver;
#include "CHookPlayerInstance.h"
// CAgoraHookingDlg dialog
class CAgoraHookingDlg : public CDialogEx
{
// Construction
public:
CAgoraHookingDlg(CWnd* pParent = NULL); // standard constru... |
zakiahmad857/Advanced-Video | Windows/Agora-Screen-Sharing-Windows/OpenLive/AGEngineEventHandler.h | <filename>Windows/Agora-Screen-Sharing-Windows/OpenLive/AGEngineEventHandler.h
#pragma once
using namespace agora::rtc;
class CAGEngineEventHandler :
public IRtcEngineEventHandler
{
public:
CAGEngineEventHandler(void);
~CAGEngineEventHandler(void);
void SetMsgReceiver(HWND hWnd = NULL);
HWND GetMsgReceiver() {r... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/AGDShowAudioCapture.h | <gh_stars>100-1000
#pragma once
#include <atlbase.h>
#include <atlcoll.h>
#include <DShow.h>
#include "DShow/qedit.h"
#include "IAGDShowDevice.h"
class CAGDShowAudioCapture
: public IDShowCaptureDevice
{
public:
CAGDShowAudioCapture();
~CAGDShowAudioCapture();
virtual BOOL Create();
virtual void Close();
vi... |
zakiahmad857/Advanced-Video | Windows/Agora-RTC-Hooking-API-Windows/AgoraHooking/ExtendVideoFrameObserver.h | #pragma once
class CExtendVideoFrameObserver :
public agora::media::IVideoFrameObserver
{
public:
CExtendVideoFrameObserver();
~CExtendVideoFrameObserver();
virtual bool onCaptureVideoFrame(VideoFrame& videoFrame);
virtual bool onRenderVideoFrame(unsigned int uid, VideoFrame& videoFrame);
private:
LPBYTE m_... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AGHyperLink.h | #pragma once
// CAGHyperLink
class CAGHyperLink : public CStatic
{
DECLARE_DYNAMIC(CAGHyperLink)
public:
CAGHyperLink();
virtual ~CAGHyperLink();
void SetURL(CString strURL);
CString GetURL() const;
void SetTextColor(COLORREF crLink, COLORREF crVisited, COLORREF crHover);
void SetBackColor... |
zakiahmad857/Advanced-Video | Windows/Agora-RTC-Hooking-API-Windows/AgoraHooking/CHookPlayerInstance.h | #pragma once
#include "CicleBuffer.h"
class CicleBuffer;
class CHookPlayerInstance :public IAudioCaptureCallback
{
public:
static CHookPlayerInstance* getHookInstance();
static void releaseHookInstance();
public:
int startHook(TCHAR* playerPath);
void stopHook();
void pushAudioBuffer(unsigned char* bufferIn, un... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/LanguageSet.h | #pragma once
//#define LANGUAGE_SET_MSG _T("SNOWWALKER_LANGSET_MSG")
#define LANG_STR(lpStringID) (CLanguageSet::GetInstance()->GetString(lpStringID))
class CLanguageSet
{
protected:
CLanguageSet();
~CLanguageSet();
public:
static CLanguageSet *GetInstance();
static void CloseInstance();
CStri... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AgoraOpenLiveDlg.h |
// AgoraVideoCallDlg.h : header file
//
#pragma once
#include "AGHyperlink.h"
#include "EnterChannelDlg.h"
#include "SetupDlg.h"
#include "VideoDlg.h"
// CAgoraVideoCallDlg dialog
class CAgoraOpenLiveDlg : public CDialogEx
{
// Construction
public:
CAgoraOpenLiveDlg(CWnd* pParent = NULL); // sta... |
zakiahmad857/Advanced-Video | Windows/Agora-RTC-Hooking-API-Windows/AgoraHooking/AssistantBox.h | <reponame>zakiahmad857/Advanced-Video<gh_stars>100-1000
#pragma once
// CAssistantBox dialog
#include "AGButton.h"
#include "AgoraCameraManager.h"
#include "AgoraAudInputManager.h"
#include "AgoraPlayoutManager.h"
#include "CHookPlayerInstance.h"
class CAssistantBox : public CDialogEx
{
DECLARE_DYNAMIC(CAssistantB... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AGButton.h | #pragma once
// CAGButton
class CAGButton : public CButton
{
DECLARE_DYNAMIC(CAGButton)
public:
enum {
AGBTN_NORMAL = 0,
AGBTN_HOVER,
AGBTN_PUSH,
AGBTN_DISABLE
};
CAGButton();
virtual ~CAGButton();
BOOL SetBackImage(UINT nIDResource, COLORREF crMask = RGB(0xFF, 0x00, 0xFF));
vo... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/StreamingVoiceContext.h | #pragma once
#include "xaudio2.h"
struct StreamingVoiceContext : public IXAudio2VoiceCallback
{
STDMETHOD_(void, OnVoiceProcessingPassStart)(UINT32)
{
}
STDMETHOD_(void, OnVoiceProcessingPassEnd)()
{
}
STDMETHOD_(void, OnStreamEnd)()
{
}
STDMETHOD_(void, OnBufferStart)(void*)
{
}
STDMETHOD_(void, OnBuffe... |
zakiahmad857/Advanced-Video | Windows/Agora-RTC-Hooking-API-Windows/AgoraHooking/CicleBuffer.h | <filename>Windows/Agora-RTC-Hooking-API-Windows/AgoraHooking/CicleBuffer.h
#pragma once
#define CIC_WAITTIMEOUT 0
class CicleBuffer
{
public:
CicleBuffer(const unsigned int iBufferSize,int waittimeout);
~CicleBuffer(void);
BOOL IsComplete();
void SetComplete();
unsigned int getFreeSize();
unsigned int getUsedS... |
zakiahmad857/Advanced-Video | Windows/Agora-String-Account-Windows/OpenLive/OpenLiveDlg.h | <gh_stars>100-1000
// OpenLiveDlg.h : header file
//
#pragma once
#include "AGHyperlink.h"
#include "EnterChannelDlg.h"
#include "SetupDlg.h"
#include "VideoDlg.h"
// COpenLiveDlg dialog
class COpenLiveDlg : public CDialogEx
{
// Construction
public:
COpenLiveDlg(CWnd* pParent = NULL); // standard constructor
... |
zakiahmad857/Advanced-Video | Windows/Agora-RTC-Hooking-API-Windows/AgoraHooking/AgoraHooking.h | <gh_stars>100-1000
// AgoraHooking.h : main header file for the PROJECT_NAME application
//
#pragma once
#ifndef __AFXWIN_H__
#error "include 'stdafx.h' before including this file for PCH"
#endif
#include "resource.h" // main symbols
// CAgoraHookingApp:
// See AgoraHooking.cpp for the implementation of this cl... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/AGAudioCapture.h | <reponame>zakiahmad857/Advanced-Video
#pragma once
#include "DShow/qedit.h"
class CAGAudioCapture :
public ISampleGrabberCB
{
public:
CAGAudioCapture();
~CAGAudioCapture();
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
STDMETHODIMP QueryInterface(REFIID riid, void** ppv);
STDMETHODIMP SampleCB... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/DShowPinHelper.h | <gh_stars>100-1000
#pragma once
#include <atlbase.h>
#include <atlcoll.h>
#include <DShow.h>
class CDShowPinHelper
{
public:
CDShowPinHelper();
~CDShowPinHelper();
BOOL Open(IBaseFilter* ptrFilter);
void Close();
int GetPinCount();
BOOL GetPinDirection(int nIndex, PIN_DIRECTION *pDirection);
BOOL GetPin(int... |
zakiahmad857/Advanced-Video | Windows/Agora-RTC-Hooking-API-Windows/AgoraHooking/ExtendAudioFrameObserver.h | #pragma once
class CExtendAudioFrameObserver :
public agora::media::IAudioFrameObserver
{
public:
CExtendAudioFrameObserver();
~CExtendAudioFrameObserver();
LPBYTE pPlayerData;
int nPlayerDataLen;
bool bDebug;
virtual bool onRecordAudioFrame(AudioFrame& audioFrame);
virtual bool onPlaybackAudioFrame(Audi... |
zakiahmad857/Advanced-Video | Android/sample-video-encrypt/src/main/cpp/include/agora/IAgoraMediaEngine.h | <reponame>zakiahmad857/Advanced-Video<gh_stars>100-1000
#ifndef AGORA_MEDIA_ENGINE_H
#define AGORA_MEDIA_ENGINE_H
#if defined _WIN32 || defined __CYGWIN__
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <stdint.h>
#endif
namespace agora
{
namespace media
{
enum MEDIA_SOURCE_TYPE {
AUDIO... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows/AgoraMediaSource/AGDShowVideoCapture.h | <reponame>zakiahmad857/Advanced-Video<gh_stars>100-1000
#pragma once
#include <atlbase.h>
#include <atlcoll.h>
#include "IAGDShowDevice.h"
#include "capture-filter.hpp"
#include <vector>
class CAGDShowVideoCapture
: public IDShowCaptureDevice
{
public:
CAGDShowVideoCapture();
~CAGDShowVideoCapture();... |
zakiahmad857/Advanced-Video | Windows/LargeGroupVideoChat-Windows/AgoraOpenLive/AgoraAudInputManager.h | #pragma once
class CAgoraAudInputManager
{
public:
CAgoraAudInputManager();
~CAgoraAudInputManager();
BOOL Create(IRtcEngine *lpRtcEngine);
void Close();
UINT GetVolume();
BOOL SetVolume(UINT nVol);
UINT GetDeviceCount();
CString GetCurDeviceID();
BOOL SetCurDevice(LPCTSTR lpDeviceID);
BO... |
zakiahmad857/Advanced-Video | Windows/Agora-Media-Source-Windows-dx2010/AgoraMediaSource/XAudioPlayout.h | <reponame>zakiahmad857/Advanced-Video
#pragma once
#include <atlbase.h>
#include <atlcoll.h>
#include "IAGDShowDevice.h"
// xaudio 2.7 only!!!!!
#include "xaudio2.h"
// #pragma comment(lib, "Xaudio2")
class CXAudioPlayout
{
public:
CXAudioPlayout();
~CXAudioPlayout();
BOOL Create();
void Close();
BOOL Enu... |
ruanqisevik/RQMana | Example/Pods/Target Support Files/Pods-RQMana_Tests/Pods-RQMana_Tests-umbrella.h | <reponame>ruanqisevik/RQMana
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_RQMana_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char ... |
wishWinds/NutPoolOC | NutPool/NutPool.h | //
// NutPool.h
// NutPool
//
// Created by <NAME> on 2020/1/13.
// Copyright © 2020 shupeng. All rights reserved.
//
#import <Foundation/Foundation.h>
/// 商品
@protocol NutProduct <NSObject>
@end
/// 消费者
@protocol NutConsumer <NSObject>
@end
/// 生产者
typedef void (^NutProductCallback)(id <NutProduct> product, NS... |
wishWinds/NutPoolOC | NutPoolDemo/TableViewController.h | //
// TableViewController.h
// NutPoolDemo
//
// Created by <NAME> on 2020/1/14.
// Copyright © 2020 shupeng. All rights reserved.
//
#import <UIKit/UIKit.h>
@class TestProducer;
@class NutPool;
NS_ASSUME_NONNULL_BEGIN
@interface TableViewController : UITableViewController
@end
NS_ASSUME_NONNULL_END
|
wishWinds/NutPoolOC | NutPoolDemo/TestCell.h | <filename>NutPoolDemo/TestCell.h<gh_stars>0
//
// TestCell.h
// NutPoolDemo
//
// Created by <NAME> on 2020/1/14.
// Copyright © 2020 shupeng. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <NutPoolOC/NutPool.h>
NS_ASSUME_NONNULL_BEGIN
@interface TestCell : UITableViewCell
- (void)fetchProductFromPool:(... |
wishWinds/NutPoolOC | NutPoolDemo/TestProducer.h | <gh_stars>0
//
// TestProducer.h
// NutPoolDemo
//
// Created by <NAME> on 2020/1/14.
// Copyright © 2020 shupeng. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <NutPoolOC/NutPool.h>
NS_ASSUME_NONNULL_BEGIN
@interface StringProduct : NSObject <NutProduct>
@property(nonatomic, strong) NSString... |
wishWinds/NutPoolOC | NutPoolDemo/AppDelegate.h | //
// AppDelegate.h
// NutPoolDemo
//
// Created by <NAME> on 2020/1/14.
// Copyright © 2020 shupeng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property(nonatomic, strong) UIWindow *window;
@end
|
pjaaskel/phsa-runtime | include/hsa_ext_image.h | /*
Copyright (c) 2016 General Processor Tech.
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, ... |
pjaaskel/phsa-runtime | include/Brig.h | <gh_stars>1-10
// University of Illinois/NCSA
// Open Source License
//
// Copyright (c) 2013-2015, Advanced Micro Devices, Inc.
// All rights reserved.
//
// Developed by:
//
// HSA Team
//
// Advanced Micro Devices, Inc
//
// www.amd.com
//
// Permission is hereby granted, free of charge, to any person ob... |
pjaaskel/phsa-runtime | include/gcc-phsa.h | <reponame>pjaaskel/phsa-runtime<gh_stars>1-10
/* phsa.h -- interfacing between the gcc BRIG FE and the phsa runtime
Copyright (C) 2016 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>
for General Processor Tech.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modi... |
pjaaskel/phsa-runtime | include/phsa-rt.h | <gh_stars>1-10
/*
Copyright (c) 2015 General Processor Tech.
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
... |
alademm/mikropf | MikroPF.h | // -----------------------------------------------------------------------------
// Copyright (c) 2022 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwareand associated documentation files(the "Software"), to deal
// in the Software without restriction, includi... |
McDevon/dont-touch-lava | us_sensor.h | <reponame>McDevon/dont-touch-lava
#ifndef us_sensor_h
#define us_sensor_h
void initialize_us_sensor(int ping_pin, int echo_pin);
long activate_us_sensor(int ping_pin, int echo_pin);
long us_microseconds_to_inches(long microseconds);
long us_microseconds_to_cm(long microseconds);
long us_cm_to_microseconds(long cm);
... |
McDevon/dont-touch-lava | game_constants.h | #ifndef game_constants_h
#define game_constants_h
#define INVERT_CONTROL_DIRECTION
//#undef INVERT_CONTROL_DIRECTION
#define min_us_distance 20
#define max_us_distance 150
#define max_us_move_per_step 3
#define us_outlier_threshold 30
extern const long min_distance;
extern const long max_distance;
extern const long... |
McDevon/dont-touch-lava | colors.h | #ifndef colors_h
#define colors_h
#include "FastLED.h"
#define lava_colors_count 21
#define warning_colors_count 7
#define gem_colors_count 15
extern const CHSV lava_colors[];
extern const CHSV warning_colors[];
extern const CHSV gem_colors[];
#endif |
McDevon/dont-touch-lava | game_main.h | #ifndef game_main_h
#define game_main_h
#include "FastLED.h"
struct GameState {
CRGB *leds;
long current_step;
int current_substep;
int animation_step;
int color_counter;
int color_offset;
int phase_step;
int step_duration;
int area_height;
int area_top;
int animation;
int collectible_position... |
canpoyrazoglu/InstagramKit | InstagramKit/Models/InstagramUserPosition.h | //
// InstagramUserPosition.h
//
// Created by <NAME> on 12.07.15.
//
//
#import "InstagramModel.h"
#import "InstagramUser.h"
#import <CoreGraphics/CoreGraphics.h>
@interface InstagramUserPosition : InstagramModel
@property(readonly) CGPoint position;
@property(readonly) InstagramUser *user;
@end
|
canpoyrazoglu/InstagramKit | InstagramKit/InstagramKitConstants.h | //
// 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, merg... |
kmj36/C_NW_NIDS | prototype/packetElements.c | #include "packetElements.h"
char *strmac(const bit8_t addr[ETH_ADDR_LEN])
{
static char saddr[18];
sprintf(saddr, "%02x:%02x:%02x:%02x:%02x:%02x", addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
return saddr;
}
char *strip4(const bit8_t addr[IP4_ADDR_LEN])
{
static char saddr[16];
sprintf(s... |
kmj36/C_NW_NIDS | prototype/CNW_IDS.c | #include <pcap.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <malloc.h>
#include <arpa/inet.h>
#include "packethead.h"
#include "packetElements.h"
#define MAX_PACKET_SIZE 8192
void checkrule(bit8_t);
void pcapfatal(const char *, const... |
kmj36/C_NW_NIDS | prototype/packetElements.h | #include "packethead.h"
#include <stdio.h>
#pragma once
typedef struct packet_headers
{
const eth_hdr *eth;
const arp_hdr *arph;
const ip4_hdr *ip4h;
const ip6_hdr *ip6h;
const tcp_hdr *tcph;
const udp_hdr *udph;
const icmp_hdr *icmph;
} header_s;
typedef struct rule
{
char *ipver;
... |
kmj36/C_NW_NIDS | prototype/packethead.h | #pragma once
typedef unsigned char bit8_t;
typedef unsigned short bit16_t;
typedef unsigned int bit32_t;
typedef unsigned long long bit64_t;
/*
이더넷 헤더
*/
#define ETH_ADDR_LEN 6
#define ETH_HDR_LEN 14
typedef struct ethernet_header {
bit8_t eth_dst_mac[ETH_ADDR_LEN]; // 도착지 맥주소
bit8_t eth_src_mac[ETH_ADD... |
pepstack/fifoapi | src/fifo-win.c | /***********************************************************************
* Copyright (c)2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistrib... |
pepstack/fifoapi | src/fifo.c | /***********************************************************************
* Copyright (c)2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* ... |
pepstack/fifoapi | src/fifo.h | /***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistri... |
pepstack/fifoapi | examples/fifoserver.c | /**
* @filename fifoserver.c
* Sample server shows how to use fifo api.
*
* @author <NAME> <<EMAIL>>
* @version 0.0.1
* @create 2020-01-21 21:09:05
* @update 2020-01-22 15:09:05
*/
#include "../src/cstrbuf.h"
#include "../src/fifo.h"
#ifdef __WINDOWS__
# include <Windows.h>
# includ... |
pepstack/fifoapi | src/cstrbuf.h | /***********************************************************************
* Copyright (c) 2008-2080 pepstack.com, <EMAIL>
*
* ALL RIGHTS RESERVED.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistri... |
pepstack/fifoapi | examples/fifoclient.c | <gh_stars>0
/**
* @filename fifoclient.c
* Sample client shows how to use fifo api.
*
* @author <NAME> <<EMAIL>>
* @version 0.0.1
* @create 2020-01-21 21:09:05
* @update 2020-01-22 15:09:05
*/
#include "../src/cstrbuf.h"
#include "../src/fifo.h"
#ifdef __WINDOWS__
# include <Windows.h>
... |
memo/ofxMSAFluid | src/MSAFluid.h | #pragma once
#include "MSAFluidSolver.h"
#if defined( MSA_HOST_OPENFRAMEWORKS )
#include "MSAFluidDrawerGl-OF.h"
#elif defined( MSA_HOST_CINDER )
#include "MSAFluidDrawerGl-Cinder.h"
#endif
|
memo/ofxMSAFluid | src/MSAFluidDrawerGl-OF.h | /***********************************************************************
This class is for drawing a fluidsolver using the OpenFrameworks texture
************************************************************************/
#pragma once
#include "MSAFluidDrawerBase.h"
namespace msa {
namespace fluid {
... |
memo/ofxMSAFluid | example/src/testApp.h | #pragma once
#include "MSAFluid.h"
//#include "MSATimer.h"
#include "ParticleSystem.h"
#include "ofMain.h"
// comment this line out if you don't wanna use TUIO
// you will need ofxTUIO & ofxOsc
//#define USE_TUIO
// comment this line out if you don't wanna use the GUI
// you will need ofxSimpleGuiToo, ofxMSAInterac... |
memo/ofxMSAFluid | src/MSAFluidDrawerBase.h | <filename>src/MSAFluidDrawerBase.h
/***********************************************************************
This class is for drawing a fluidsolver using the OpenFrameworks texture
************************************************************************/
#pragma once
#include "MSACore.h"
#include "MSAFluidSolve... |
memo/ofxMSAFluid | src/MSAFluidParticleUpdater.h | /***********************************************************************
This class interfaces the fluid solver with ofxMSAPhysics (applies fluid velocity as forces to particles)
***********************************************************************/
// only include this if you have MSAPhysics as well
#pragma... |
memo/ofxMSAFluid | src/MSAFluidSolver.h | /***********************************************************************
This class is for the actual solver (doesn't draw anything)
************************************************************************/
#pragma once
#include "MSACore.h"
namespace msa {
namespace fluid {
// do not change t... |
MaxwellFX/CarNDT2-PID-Control | src/PID.h | #ifndef PID_H
#define PID_H
class PID {
private:
// Error terms
double p_error;
double i_error;
double d_error;
double prevCTE;
// Counters for twiddling
long counter;
int evaluationCount;
// Coefficient gains
double tau_p;
double tau_i;
double tau_d;
// Parame... |
Cisco-Talos/crashdog | crashdog.c | <filename>crashdog.c<gh_stars>10-100
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <signal.h>
#include <dirent.h>
#include <fcntl.h>
#include <dirent.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>... |
Cisco-Talos/crashdog | disable_sigaction.c | <filename>disable_sigaction.c
#define _GNU_SOURCE
#include <signal.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
static int (*orig_sigaction)();
#ifndef __APPLE__
int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact)
{
if(!orig_sigaction)orig_siga... |
anton0824/mphnplusm | Coxian/generator.h | #ifndef _GENERATOR_
#define _GENERATOR_
#include <vector>
#include <assert.h>
#include "hiDimElement.h"
//#include "h2drift.h"
#include <math.h>
using namespace std;
typedef double (* functionType)(vector<double> );
class generator {
private:
int dim;
double alpha;
double lambda;
double rho;
d... |
anton0824/mphnplusm | Hyperexponential/index.h | <reponame>anton0824/mphnplusm<gh_stars>0
#ifndef _INDEX_
#define _INDEX_
#include <vector>
#include <assert.h>
using namespace std;
class gridIndex{
private:
vector<vector<double> > grid;
int dim;
int N;
vector<int> gridLowLimits;
vector<int> gridUpperLimits;
public:
gridIndex(){};
gridIndex( con... |
anton0824/mphnplusm | Hyperexponential/integral.h | <reponame>anton0824/mphnplusm<filename>Hyperexponential/integral.h<gh_stars>0
#ifndef _INTEGRAL_
#define _INTEGRAL_
#include "gauss_legendre.h"
#include <vector>
#include <assert.h>
#include "generator.h"
using namespace std;
class integral {
private:
int dim;
vector<vector<double> > grid;
vector<double *> x, ... |
anton0824/mphnplusm | Hyperexponential/basicElement.h | #ifndef _BASIC_ELEMENT_
#define _BASIC_ELEMENT_
#include <assert.h>
class basicElement {
public:
static double phi(const double x) {
assert( x>=-1 && x<=1);
return ( x> 0) ? (x-1)*(x-1)*(2*x+1): (-x-1)*(-x-1)*(-2*x+1);
}
static double psi(const double x) {
assert( x>=-1 && x<=1);
return ( x>... |
anton0824/mphnplusm | Hyperexponential/finite_matlab.h | <gh_stars>0
#ifndef _FINITE_
#define _FINITE_
#include <assert.h>
#include "generator.h"
#include "integral.h"
#include "gaussianReference.h"
#include "index.h"
class finiteElement {
private:
vector<vector<double> > grid;
int dim;
int degree;
public:
finiteElement(){};
finiteElement(const vector<vecto... |
anton0824/mphnplusm | Hyperexponential/h2drift.h | #ifndef _H2DRIFT_
#define _H2DRIFT_
#include <vector>
#include <math.h>
#include "drift.h"
using namespace std;
class hyper2drift : drift {
private:
double alpha, beta, p;
vector<double> nu;
double mean;
int nserv;
public:
hyper2drift(){};
hyper2drift(const double alpha_, const double beta_, const doub... |
anton0824/mphnplusm | Hyperexponential/generator.h | <gh_stars>0
#ifndef _GENERATOR_
#define _GENERATOR_
#include <vector>
#include <assert.h>
#include "hiDimElement.h"
#include "h2drift.h"
#include <math.h>
using namespace std;
typedef double (* functionType)(vector<double> );
class generator {
private:
int dim;
int nserv;
vector<vector<double> ... |
anton0824/mphnplusm | Hyperexponential/drift.h | <reponame>anton0824/mphnplusm
#ifndef _DRIFT_
#define _DRIFT_
#include <vector>
class drift{
private:
public:
virtual double operator()(const int i, const vector<double> & y) = 0;
};
#endif
|
anton0824/mphnplusm | Hyperexponential/density.h | #ifndef _DENSITY_
#define _DENSITY_
#include "generator.h"
#include <assert.h>
#include "index.h"
#include <iostream>
#include "gaussianReference.h"
class density {
private:
vector<vector<double> > grid;
int numberWithinGrid;
vector<int> meshSize;
int totalMeshSize;
public:
density() {};
density(const ... |
anton0824/mphnplusm | Hyperexponential/oneDimElement.h | <gh_stars>0
#ifndef _ONE_DIM_ELEMENT_
#define _ONE_DIM_ELEMENT_
#include <vector>
#include "basicElement.h"
using namespace std;
class oneDimElement {
private:
vector<double> x, h;
public:
oneDimElement() {};
oneDimElement(const vector<double>& x_) {
setGrid(x_);
}
void setGrid(const vec... |
anton0824/mphnplusm | Hyperexponential/gaussianReference.h | #ifndef _GaussianReference_H
#define _GaussianReference_H
#include <vector>
#include <cmath>
#include <assert.h>
using namespace std;
class gaussianReference {
private:
vector<double> a, b0, b1;
double c0, c1;
public:
gaussianReference() {};
gaussianReference(const vector<double>& a_, const vector<double... |
anton0824/mphnplusm | Hyperexponential/hiDimElement.h | #ifndef _HI_DIM_ELEMENT_
#define _HI_DIM_ELEMENT_
#include "oneDimElement.h"
class hiDimElement {
int dim;
vector<oneDimElement> marginals;
public:
hiDimElement() {};
hiDimElement(const vector<vector<double> > & grid)
{
setGrid(grid);
}
void setGrid(const vector<vector<double> ... |
SM-A125F/conscrypt | common/src/jni/main/include/conscrypt/logging.h | <reponame>SM-A125F/conscrypt
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... |
SM-A125F/conscrypt | common/src/jni/main/include/conscrypt/scoped_ssl_bio.h | <reponame>SM-A125F/conscrypt
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.