repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
zulip/zulip-ios
Zulip/PreferencesWrapper.h
<filename>Zulip/PreferencesWrapper.h // // PreferencesWrapper.h // Zulip // // Created by <NAME> on 8/9/13. // // #import <Foundation/Foundation.h> /** Wraps NSUserDefaults to be user-specific, similar to how we have specific sqlite files for each user/domain. Since NSUserDefaults doesn't have any built-in sand...
zulip/zulip-ios
Zulip/Controllers/ViewControllers/HomeViewController.h
// // HomeViewController.h // Zulip // // Created by <NAME> on 7/30/13. // // #import "StreamViewController.h" @interface HomeViewController : StreamViewController @end
zulip/zulip-ios
Zulip/Models/ZUserPresence.h
<filename>Zulip/Models/ZUserPresence.h // // ZUserPresence.h // Zulip // // Created by <NAME> on 12/31/13. // // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> extern NSString *const ZUserPresenceStatusActive; extern NSString *const ZUserPresenceStatusIdle; extern NSString *const ZUserPresenceStat...
zulip/zulip-ios
Zulip/Controllers/ViewControllers/RightSidebarViewController.h
// // RightSidebarViewController.h // Zulip // // Created by <NAME> on 12/27/13. // // #import <UIKit/UIKit.h> @interface RightSidebarViewController : UIViewController<UITableViewDataSource, UITableViewDelegate> @property (strong, nonatomic) UITableView *tableView; @end
zulip/zulip-ios
Zulip/MessageCell.h
#import <UIKit/UIKit.h> #import "DTAttributedTextContentView.h" #import "DTCoreText.h" #import "RawMessage.h" @protocol MessageCellDelegate <NSObject> @optional - (void)openLink:(NSURL *)URL; @end @interface MessageCell : UITableViewCell <DTAttributedTextContentViewDelegate> - (void)willBeDisplayedWithPreviousM...
zulip/zulip-ios
Zulip/StreamComposeView.h
<reponame>zulip/zulip-ios // // StreamComposeView.h // Zulip // // Created by <NAME> on 1/3/14. // // #import <UIKit/UIKit.h> @class RawMessage; @class ComposeAutocompleteView; @class ZUser; @protocol StreamComposeViewDelegate <NSObject> - (void)willShowComposeView; @end @interface StreamComposeView : UIView @p...
zulip/zulip-ios
Zulip/RenderedMarkdownMunger.h
// // RenderedMarkdownMunger.h // Zulip // // Created by Humbug on 8/8/13. // // #import <Foundation/Foundation.h> #import "RawMessage.h" @interface RenderedMarkdownMunger : NSObject + (void)mungeThis:(RawMessage*)message; + (NSString *)emojiShortNameFromUnicode:(NSString *)unicode; @end
zulip/zulip-ios
Zulip/Views/SidebarStreamCell.h
<gh_stars>100-1000 // // SidebarStreamCell.h // Zulip // // Created by <NAME> on 7/30/13. // // #import <UIKit/UIKit.h> #import "ZSubscription.h" #import "NarrowOperators.h" typedef enum { HOME, PRIVATE_MESSAGES, STREAM, STARRED, AT_MENTIONS } SIDEBAR_SHORTCUTS; @interface SidebarStreamCell : ...
zulip/zulip-ios
Zulip/Controllers/ViewControllers/NarrowViewController.h
// // NarrowViewController.h // Zulip // // Created by <NAME> on 7/30/13. // // #import <UIKit/UIKit.h> #import "StreamViewController.h" #import "NarrowOperators.h" @interface NarrowViewController : StreamViewController - (id)initWithOperators:(NarrowOperators *)operators; // Default behaviour is to scroll to fi...
zulip/zulip-ios
Zulip/Categories/NSArray+Blocks.h
// // NSArray+Blocks.h // Zulip // // Created by <NAME> on 10/22/13. // // #import <Foundation/Foundation.h> typedef BOOL(^FilterPredicate)(id obj); typedef id(^MapPredicate)(id obj); @interface NSArray (Blocks) - (NSArray *)filter:(FilterPredicate)predicate; - (NSArray *)map:(MapPredicate)predicate; @end
zulip/zulip-ios
Zulip/ZulipAPIClient.h
#import "AFHTTPClient.h" /* Main API entry point for calling the Zulip API */ @interface ZulipAPIClient : AFHTTPClient // Set the credentials before using the ZulipAPIClient via [ZulipAPIClient +sharedClient] + (void) setEmailForDomain:(NSString *)userEmail; + (void) setCredentials:(NSString *)userEmail withAPIKey:(...
zulip/zulip-ios
Zulip/Views/StreamProgressView.h
<reponame>zulip/zulip-ios // // StreamProgressView.h // Zulip // // Created by <NAME> on 2/25/14. // // #import <UIKit/UIKit.h> @interface StreamProgressView : UIView + (CGFloat)height; @end
zulip/zulip-ios
Zulip/Views/SidebarSectionHeader.h
<gh_stars>100-1000 // // SidebarStreamsHeader.h // Zulip // // Created by <NAME> on 8/2/13. // // #import <UIKit/UIKit.h> @interface SidebarSectionHeader : UIViewController @property (nonatomic, retain) IBOutlet UILabel *label; @property (nonatomic, strong) NSString *sectionTitle; - (instancetype)initWithTitle:(...
zulip/zulip-ios
Zulip/Views/ComposeAutocompleteView.h
<filename>Zulip/Views/ComposeAutocompleteView.h // // ComposeAutocompleteView.h // Zulip // // Created by <NAME> on 1/21/14. // // #import <UIKit/UIKit.h> @class StreamViewController; typedef NS_ENUM(NSUInteger, ComposeAutocompleteType) { ComposeAutocompleteTypeUser, ComposeAutocompleteTypeStream, Com...
zulip/zulip-ios
Zulip/Models/ZMessage.h
<gh_stars>100-1000 // // ZMessage.h // Zulip // // Created by <NAME> on 8/2/13. // // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class ZSubscription, ZUser, RawMessage; @interface ZMessage : NSManagedObject @property (nonatomic, retain) NSString * avatar_url; @property (nonatomic, retain) N...
zulip/zulip-ios
Zulip/Models/ZSubscription.h
// // ZSubscription.h // Zulip // // Created by <NAME> on 7/25/13. // // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class ZMessage, ZUser; @interface ZSubscription : NSManagedObject @property (nonatomic, retain) NSString * color; @property (nonatomic, retain) NSNumber * in_home_view; @prope...
zulip/zulip-ios
Zulip/NSString+Encode.h
// NSString+Encode.h @interface NSString (encode) - (NSString *)encodeString:(NSStringEncoding)encoding; @end
zulip/zulip-ios
Zulip/LoginViewController.h
#import <UIKit/UIKit.h> @interface LoginViewController : UIViewController @property (strong, nonatomic) IBOutlet UITextField *email; @property (strong, nonatomic) IBOutlet UITextField *password; @property (strong, nonatomic) IBOutlet UIButton *loginButton; @property (nonatomic, retain) NSMutableArray *entryFields; ...
zulip/zulip-ios
Zulip/SidebarUserCell.h
// // SidebarUserCell.h // Zulip // // Created by <NAME> on 12/29/13. // // @class ZUser; #import <UIKit/UIKit.h> @interface SidebarUserCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIView *statusIcon; @property (weak, nonatomic) IBOutlet UILabel *name; @property (weak, nonatomic) IBOutlet UILabel ...
zulip/zulip-ios
Zulip/Views/UserCell.h
// // UserCell.h // Zulip // // Created by Humbug on 10/21/13. // // #import <UIKit/UIKit.h> @interface UserCell : UITableViewCell // the name if it's available, otherwise the email address @property (strong, nonatomic) IBOutlet UILabel *title; // the email address if the name is available, otherwise nothing @pr...
zulip/zulip-ios
Zulip/AutocompleteResults.h
// // AutocompleteResults.h // Zulip // // Created by <NAME> on 1/3/14. // // #import <Foundation/Foundation.h> @interface AutocompleteResults : NSObject @property (readonly) NSOrderedSet *prefixMatches; @property (readonly) NSOrderedSet *nonPrefixMatches; @property (readonly) NSArray *orderedResults; @property (...
zulip/zulip-ios
Zulip/Controllers/ZulipAPIController.h
<gh_stars>100-1000 // // ZulipAPIController.h // Zulip // // Created by <NAME> on 7/24/13. // // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> #import "ZSubscription.h" #import "NarrowOperators.h" #import "UnreadManager.h" @class StreamViewController; /** This class is the entry point for maki...
zulip/zulip-ios
Zulip/Controllers/UnreadManager.h
// // UnreadManager.h // Zulip // // Created by <NAME> on 8/2/13. // // #import <Foundation/Foundation.h> #import "RawMessage.h" /** Keeps track of unread counts for streams and views, and sends out NSNotifications for when they change */ extern NSString * const ZUnreadCountChangeNotification; extern NSString ...
zulip/zulip-ios
Zulip/GoogleOAuthManager.h
<gh_stars>100-1000 // // GoogleOAuthManager.h // Zulip // // Created by <NAME> on 1/31/14. // // #import <Foundation/Foundation.h> typedef void (^GoogleOAuthSuccessBlock)(NSDictionary *result); typedef void (^GoogleOAuthFailureBlock)(NSError *error); @interface GoogleOAuthManager : NSObject - (UIViewController *...
zulip/zulip-ios
Zulip/StreamViewController.h
#import <UIKit/UIKit.h> #import "MessageCell.h" #import "NarrowOperators.h" #import "MessageComposing.h" #import "StreamComposeView.h" @class ComposeAutocompleteView; @class ZUser; //@protocol StreamViewControllerDelegate <NSObject> //- (NSPredicate *)filterPrediate; //- () //@end @interface StreamViewController :...
shihuajie/Self-Tuning
PatchMatch/include/patch/multires.h
<reponame>shihuajie/Self-Tuning<filename>PatchMatch/include/patch/multires.h /******************************************************************************* * multires.h - multi-resolution patches ******************************************************************************* * Add license here... ****************...
shihuajie/Self-Tuning
PatchMatch/include/voting/meanshift.h
/******************************************************************************* * meanshift.h - mean-shift algorithm for voting ******************************************************************************* * Add license here... *******************************/ #ifndef MEANSHIFT_H #define MEANSHIFT_H #include <...
shihuajie/Self-Tuning
PatchMatch/include/gb.h
/******************************************************************************* * gb.h - gain + bias implementations ******************************************************************************* * Add license here... *******************************/ #ifndef GB_H #define GB_H #include <patch.h> #include <patch/...
shihuajie/Self-Tuning
PatchMatch/include/nnf.h
/******************************************************************************* * nnf.h - nearest neighbor field ******************************************************************************* * Add license here... *******************************/ #ifndef NNF_H #define NNF_H #include <limits> #include <distance....
shihuajie/Self-Tuning
PatchMatch/include/gpm.h
<gh_stars>1-10 /******************************************************************************* * gpm.h - generalized patch match algorithm ******************************************************************************* * Add license here... *******************************/ #ifndef GPM_H #define GPM_H #include <b...
shihuajie/Self-Tuning
PatchMatch/include/patch.h
<reponame>shihuajie/Self-Tuning /******************************************************************************* * patch.h - abstract image patch ******************************************************************************* * Add license here... *******************************/ #ifndef PATCH_H #define PATCH_H #...
shihuajie/Self-Tuning
PatchMatch/include/patch/affine.h
/******************************************************************************* * affine.h - affine patch implementation ******************************************************************************* * Add license here... *******************************/ #ifndef AFFINE_H #define AFFINE_H #include "basic.h" // ...
shihuajie/Self-Tuning
PatchMatch/include/distance.h
<gh_stars>1-10 /******************************************************************************* * distance.h - abstract patch distance ******************************************************************************* * Add license here... *******************************/ #ifndef DISTANCE_H #define DISTANCE_H #inclu...
shihuajie/Self-Tuning
PatchMatch/include/lattice.h
/******************************************************************************* * lattice.h - lattice extraction implementation ******************************************************************************* * Add license here... *******************************/ #ifndef LATTICE_H #define LATTICE_H #define _USE_M...
shihuajie/Self-Tuning
PatchMatch/include/algebra.h
/******************************************************************************* * algebra.h - matrix and vectors for imaging ******************************************************************************* * Add license here... *******************************/ #ifndef ALGEBRA_H #define ALGEBRA_H #include <boost/s...
shihuajie/Self-Tuning
PatchMatch/include/patch/basic.h
/******************************************************************************* * basic.h - basic patch implementation ******************************************************************************* * Add license here... *******************************/ #ifndef BASIC_H #define BASIC_H #include "../patch.h" #de...
shihuajie/Self-Tuning
PatchMatch/include/texture.h
<filename>PatchMatch/include/texture.h<gh_stars>1-10 /******************************************************************************* * texture.h - complex texture access ******************************************************************************* * Add license here... *******************************/ #ifndef T...
shihuajie/Self-Tuning
PatchMatch/include/segment.h
<reponame>shihuajie/Self-Tuning<filename>PatchMatch/include/segment.h<gh_stars>1-10 /******************************************************************************* * segments.h - segmentation tools ******************************************************************************* * Add license here... ***************...
shihuajie/Self-Tuning
PatchMatch/include/mexwrap.h
<gh_stars>1-10 /* * File: mexwrap.h * Author: xion * * Created on April 28, 2014, 12:31 AM */ #ifndef MEXWRAP_H #define MEXWRAP_H #include "mexutil.h" #include "algebra.h" namespace pm { /** * Image matrix wrapper around MxN matlab matrices */ struct MatWrapper { union { int rows; int heig...
shihuajie/Self-Tuning
PatchMatch/include/vote.h
/******************************************************************************* * vote.h - voting implementations ******************************************************************************* * Add license here... *******************************/ #ifndef VOTE_H #define VOTE_H #include <filter.h> #include <gb.h...
shihuajie/Self-Tuning
PatchMatch/include/voting/histogram.h
/******************************************************************************* * histogram.h - histogram algorithms for voting ******************************************************************************* * Add license here... *******************************/ #ifndef HISTOGRAM_H #define HISTOGRAM_H #include <...
shihuajie/Self-Tuning
PatchMatch/include/filter.h
/******************************************************************************* * filter.h - 2d filter implementations ******************************************************************************* * Add license here... *******************************/ #ifndef FILTER_H #define FILTER_H #include <cmath> #include...
shihuajie/Self-Tuning
PatchMatch/include/ggdt.h
/******************************************************************************* * ggdt.h - generalized geodesic distance transform ******************************************************************************* * Add license here... *******************************/ #ifndef GGDT_H #define GGDT_H #include "algebra...
shihuajie/Self-Tuning
PatchMatch/include/mexutil.h
/******************************************************************************* * mexutil.h - mex helpers ******************************************************************************* * Add license here... *******************************/ #ifndef MEXUTIL_H #define MEXUTIL_H // omp #if _OPENMP #include <omp.h> ...
shihuajie/Self-Tuning
PatchMatch/include/rng.h
/******************************************************************************* * rng.h - random number utils ******************************************************************************* * Add license here... *******************************/ #ifndef RNG_H #define RNG_H #include <algorithm> #include <cstdlib> ...
rzf45/98fmplayer
libopna/opnaadpcm.h
#ifndef LIBOPNA_OPNAADPCM_H_INCLUDED #define LIBOPNA_OPNAADPCM_H_INCLUDED #include <stdint.h> #include <stdbool.h> #ifdef LIBOPNA_ENABLE_LEVELDATA #include "leveldata/leveldata.h" #endif #ifdef __cplusplus extern "C" { #endif struct opna_adpcm { uint8_t control1; uint8_t control2; uint8_t vol; uint16_t delta...
rzf45/98fmplayer
common/fmplayer_common.h
#ifndef MYON_FMPLAYER_COMMON_H_INCLUDED #define MYON_FMPLAYER_COMMON_H_INCLUDED #include <stddef.h> #include <stdbool.h> void *fmplayer_load_data(const char *name, size_t size); struct fmdriver_work; struct ppz8; struct opna; struct opna_timer; void fmplayer_init_work_opna( struct fmdriver_work *work, struct ppz...
rzf45/98fmplayer
common/fmplayer_fontrom_win.c
#include "fmplayer_fontrom.h" #include "fmdsp/font.h" #include <stdint.h> #include <stdbool.h> #include <wchar.h> #include "common/winfont.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <shlwapi.h> static struct { uint8_t fontrombuf[FONT_ROM_FILESIZE]; bool font_rom_loaded; } g; bool fmplayer_font_r...
rzf45/98fmplayer
fmdriver/fmdriver_fmp.h
<reponame>rzf45/98fmplayer #ifndef MYON_FMDRIVER_FMP_H_INCLUDED #define MYON_FMDRIVER_FMP_H_INCLUDED #ifdef __cplusplus extern "C" { #endif #include "fmdriver.h" #include <stddef.h> enum { FMP_PART_FM_1, FMP_PART_FM_2, FMP_PART_FM_3, FMP_PART_FM_4, FMP_PART_FM_5, FMP_PART_FM_6, FMP_PART_FM_EX1, FMP_P...
rzf45/98fmplayer
curses/main.c
<filename>curses/main.c #include <curses.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include "libopna/opna.h" #include "libopna/opnatimer.h" #include "fmdriver/fmdriver.h" #include "fmdriver/fmdriver_fmp.h" #include <portaudio.h> #include <stdlib.h> #include <locale.h> #include <unistd.h> #include <l...
rzf45/98fmplayer
common/fmplayer_file.h
<reponame>rzf45/98fmplayer #ifndef MYON_FMPLAYER_FILE_H_INCLUDED #define MYON_FMPLAYER_FILE_H_INCLUDED #include <stddef.h> #include "fmdriver/fmdriver.h" #include "fmdriver/fmdriver_pmd.h" #include "fmdriver/fmdriver_fmp.h" #include "libopna/opnadrum.h" enum fmplayer_file_type { FMPLAYER_FILE_TYPE_PMD, FMPLAYER_F...
rzf45/98fmplayer
fmdriver/fmdriver_pmd.h
<reponame>rzf45/98fmplayer<gh_stars>10-100 #ifndef MYON_FMDRIVER_PMD_H_INCLUDED #define MYON_FMDRIVER_PMD_H_INCLUDED #ifdef __cplusplus extern "C" { #endif #include "fmdriver.h" #include <stddef.h> enum { PMD_FILENAMELEN = 8+1+3 }; enum { PMD_PART_FM_1, PMD_PART_FM_2, PMD_PART_FM_3, PMD_PART_FM_4, PMD_PA...
rzf45/98fmplayer
fmdsp/font_fmdsp_small.c
#include "font.h" #include "font_fmdsp_small_data.h" #include "font_fmdsp_medium_data.h" static const void *fmdsp_font_get(const struct fmdsp_font *font, uint16_t addr, enum fmdsp_font_type type) { (void)font; if (type != FMDSP_FONT_ANK) return 0; if (addr >> 8) return 0; ret...
rzf45/98fmplayer
libopna/opnatimer.h
#ifndef LIBOPNA_OPNA_TIMER_H_INCLUDED #define LIBOPNA_OPNA_TIMER_H_INCLUDED #include <stdint.h> #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif typedef void (*opna_timer_int_cb_t)(void *ptr); typedef void (*opna_timer_mix_cb_t)(void *ptr, int16_t *buf, unsigned samples); struct opna; struct opna_timer ...
rzf45/98fmplayer
libopna/opnassg-sinc-c.c
<reponame>rzf45/98fmplayer #include "opnassg.h" void opna_ssg_sinc_calc_c(unsigned resampler_index, const int16_t *inbuf, int32_t *outbuf) { for (int c = 0; c < 3; c++) { int32_t chsample = 0; for (int j = 0; j < OPNA_SSG_SINCTABLELEN; j++) { unsigned sincindex = j; if (!(resampler_index&1)) sinc...
rzf45/98fmplayer
fmdsp/fmdsp_gl.h
#ifndef MYON_FMDSP_GL_H_INCLUDED #define MYON_FMDSP_GL_H_INCLUDED #include "fmdsp/fmdsp.h" struct fmdsp_gl; struct fmdsp_gl *fmdsp_gl_init(struct fmdsp *fmdsp, float xscale, float yscale); void fmdsp_gl_render(struct fmdsp_gl *fmdsp_gl, uint8_t *vram); #endif // MYON_FMDSP_GL_H_INCLUDED
rzf45/98fmplayer
soundout/alsaout.c
<reponame>rzf45/98fmplayer #include "alsaout.h" #include <stdbool.h> #include <stdatomic.h> #include <stdlib.h> #include <sys/eventfd.h> #include <pthread.h> #include <unistd.h> #include <poll.h> #include <asoundlib.h> enum { BUF_FRAMES = 1024, }; struct alsaout_state { struct sound_state ss; sound_callback cbf...
rzf45/98fmplayer
libopna/opna.c
#include "opna.h" #ifdef LIBOPNA_ENABLE_OSCILLO #include "oscillo/oscillo.h" #endif #include <string.h> void opna_reset(struct opna *opna) { opna_fm_reset(&opna->fm); opna_ssg_reset(&opna->ssg); opna_ssg_resampler_reset(&opna->resampler); opna_drum_reset(&opna->drum); opna_adpcm_reset(&opna->adpcm); opna->...
rzf45/98fmplayer
fmdsp/font_rom.c
#include "font.h" static const void *font_rom_get(const struct fmdsp_font *font, uint16_t jis, enum fmdsp_font_type type) { const uint8_t *fontdata = font->data; const uint8_t *fontptr; if (type == FMDSP_FONT_ANK) { fontptr = fontdata + 0x800 + (jis<<4); } else { uint8_...
rzf45/98fmplayer
gtk/main.c
#include <gtk/gtk.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include <cairo.h> #include <stdatomic.h> #include "common/fmplayer_file.h" #include "fmdriver/fmdriver_fmp.h" #include "fmdriver/fmdriver_pmd.h" #include "fmdriver/ppz8.h" #include "libopna/opna.h" #include "libopna/...
rzf45/98fmplayer
common/fmplayer_drumrom.h
#ifndef MYON_FMPLAYER_DRUMROM_H_INCLUDED #define MYON_FMPLAYER_DRUMROM_H_INCLUDED #include <stdbool.h> struct opna_drum; bool fmplayer_drum_rom_load(struct opna_drum *drum); bool fmplayer_drum_loaded(void); #endif // MYON_FMPLAYER_DRUMROM_H_INCLUDED
rzf45/98fmplayer
gtk/toneview.c
<gh_stars>10-100 #include <gtk/gtk.h> #include "toneview.h" #include <stdatomic.h> #include <stdbool.h> struct toneview_g toneview_g = { .flag = ATOMIC_FLAG_INIT }; static struct { GtkWidget *tonewin; GtkWidget *label[6]; struct fmplayer_tonedata tonedata; struct fmplayer_tonedata tonedata_n; struct fmpla...
rzf45/98fmplayer
fmdriver/fmdriver_common.h
<reponame>rzf45/98fmplayer<gh_stars>10-100 #ifndef MYON_FMDRIVER_COMMON_H_INCLUDED #define MYON_FMDRIVER_COMMON_H_INCLUDED #include <stdint.h> static inline uint16_t read16le(const uint8_t *ptr) { return (unsigned)ptr[0] | (((unsigned)ptr[1])<<8); } static inline uint32_t read32le(const uint8_t *ptr) { return (u...
rzf45/98fmplayer
win32/about.h
#ifndef MYON_FMPLAYER_WIN32_ABOUT_H_INCLUDED #define MYON_FMPLAYER_WIN32_ABOUT_H_INCLUDED #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdbool.h> void about_open(HINSTANCE hinst, HWND parent, void (*closecb)(void *ptr), void *cbptr); void about_close(void); void about_setsoundapiname(const wchar_t *apin...
rzf45/98fmplayer
libopna/s98gen.h
#ifndef MYON_S98GEN_H_INCLUDED #define MYON_S98GEN_H_INCLUDED #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "opna.h" #ifdef __cplusplus extern "C" { #endif struct s98gen { struct opna opna; uint8_t *s98data; size_t s98data_size; size_t current_offset; uint32_t opnaclock; uint32_t ...
rzf45/98fmplayer
fmdsp/fmdsp_platform_info.h
#ifndef MYON_FMPLAYER_FMDSP_PLATFORM_INFO_H_INCLUDED #define MYON_FMPLAYER_FMDSP_PLATFORM_INFO_H_INCLUDED int fmdsp_cpu_usage(void); // call once per 30 frames to obtain fps int fmdsp_fps_30(void); #endif // MYON_FMPLAYER_FMDSP_PLATFORM_INFO_H_INCLUDED
rzf45/98fmplayer
common/winfont.h
#ifndef MYON_WINFONT_H_INCLUDED #define MYON_WINFONT_H_INCLUDED #include "fmdsp/font.h" bool fmdsp_font_win(struct fmdsp_font *font); #endif // MYON_WINFONT_H_INCLUDED
rzf45/98fmplayer
soundout/jackout.h
<filename>soundout/jackout.h #ifndef MYON_JACKOUT_H_INCLUDED #define MYON_JACKOUT_H_INCLUDED #include "soundout.h" struct sound_state *jackout_init(const char *clientname, unsigned srate, sound_callback cbfunc, void *userptr); #endif // MYON_JACKOUT_H_INCLUDED
rzf45/98fmplayer
win32/wavewrite.h
#ifndef MYON_FMPLAYER_WIN32_WAVEWRITE_H_INCLUDED #define MYON_FMPLAYER_WIN32_WAVEWRITE_H_INCLUDED #include <stdint.h> #include <stddef.h> struct wavefile; struct wavefile *wavewrite_open_w(const wchar_t *path, uint32_t samplerate); size_t wavewrite_write(struct wavefile *wavefile, const int16_t *buf, size_t frames)...
rzf45/98fmplayer
versionprint.c
#!/usr/bin/tcc -run #include "version.h" #include <stdio.h> int main(void) { puts(FMPLAYER_VERSION_STR); return 0; }
rzf45/98fmplayer
fmdsp/font_fmdsp_small_data.h
static unsigned char fontdat[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0...
rzf45/98fmplayer
sdl/osx/pacc-gl-inc.h
#include <OpenGL/gl3.h> bool loadgl(void) { return true; }
rzf45/98fmplayer
common/fmplayer_file_win.c
#include "common/fmplayer_file.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <shlwapi.h> #include <stdlib.h> #include <wchar.h> #if !defined(FMPLAYER_FILE_WIN_UTF16) && !defined(FMPLAYER_FILE_WIN_UTF8) #error "specify path string format" #endif static void *fileread(const wchar_t *path, ...
rzf45/98fmplayer
libopna/s98gen.c
<filename>libopna/s98gen.c #include "s98gen.h" static uint32_t read32le(const void *dataptr, size_t offset) { const uint8_t *data = (const uint8_t *)dataptr; return ((uint32_t)data[offset+0]) | (((uint32_t)data[offset+1])<<8) | (((uint32_t)data[offset+2])<<16) | (((uint32_t)data[offset+3])<<24); } bool s...
rzf45/98fmplayer
gtk/oscilloview-gl.c
<reponame>rzf45/98fmplayer<filename>gtk/oscilloview-gl.c #include <gtk/gtk.h> #define GL_GLEXT_PROTOTYPES #include <GL/glcorearb.h> #include <stdlib.h> #include <string.h> #include "oscilloview.h" struct oscilloview oscilloview_g = { .flag = ATOMIC_FLAG_INIT }; enum { VIEW_SAMPLES = 1024, }; static struct { Gt...
rzf45/98fmplayer
fmdsp/fmdsp-vramlookup-ssse3.c
#include "fmdsp/fmdsp.h" #include <tmmintrin.h> void fmdsp_vramlookup_ssse3(uint8_t *vram32, const uint8_t *vram, const uint8_t *palette, int stride) { __m128i z = _mm_setzero_si128(); __m128i p[3]; { union { __m128i xmm; uint8_t u8[16]; } pi[3]; for (int i = 0; i < FMDSP_PALETTE_COLORS; ...
rzf45/98fmplayer
pacc/pacc-gl.h
<filename>pacc/pacc-gl.h #ifndef MYON_PACC_GL_H_INCLUDED #define MYON_PACC_GL_H_INCLUDED #include "pacc.h" struct pacc_ctx *pacc_init_gl(int w, int h, struct pacc_vtable *vt); #endif // MYON_PACC_GL_H_INCLUDED
rzf45/98fmplayer
oscillo/oscillo.h
<gh_stars>10-100 #ifndef MYON_FMPLAYER_OSCILLO_H_INCLUDED #define MYON_FMPLAYER_OSCILLO_H_INCLUDED #include <stdint.h> enum { OSCILLO_SAMPLE_COUNT = 8192, OSCILLO_OFFSET_SHIFT = 10, }; struct oscillodata { int16_t buf[OSCILLO_SAMPLE_COUNT]; unsigned offset; }; #endif // MYON_FMPLAYER_OSCILLO_H_INCLUDED
rzf45/98fmplayer
fmdsp/font.h
#ifndef MYON_FMDSP_FONT_H_INCLUDED #define MYON_FMDSP_FONT_H_INCLUDED #include <stdint.h> #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif static inline bool sjis_is_mb_start(uint8_t c) { if (0x81 <= c && c <= 0x9f) return true; if (0xe0 <= c && c <= 0xef) return true; return false; } static inline...
rzf45/98fmplayer
win32/soundout.h
#ifndef MYON_SOUNDOUT_H_INCLUDED #define MYON_SOUNDOUT_H_INCLUDED #include <stdint.h> #include <windows.h> typedef void (*sound_callback)(void *userdata, int16_t *buf, unsigned frames); struct sound_state { void (*pause)(struct sound_state *state, int pause); void (*free)(struct sound_state *state); const wchar...
rzf45/98fmplayer
fmdsp/fmdsp_gl.c
<gh_stars>10-100 // supports OpenGL 2.0 / OpenGL ES 2.0 // when using OpenGL ES, define MYON_OPENGL_ES #include "myon_opengl.h" #include "fmdsp_gl.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef MYON_OPENGL_ES static const char sh_version[] = "#version 100\n"; #else static const char sh_version[]...
rzf45/98fmplayer
sdl/main.c
<filename>sdl/main.c #include <SDL.h> #include <stdbool.h> #include <stdatomic.h> #include "pacc/pacc.h" #include "fmdsp/fmdsp-pacc.h" #include "fmdsp/font.h" #include "libopna/opna.h" #include "libopna/opnatimer.h" #include "fmdriver/fmdriver.h" #include "common/fmplayer_file.h" #include "common/fmplayer_common.h" #in...
rzf45/98fmplayer
gtk/pacc-gl-inc.h
<filename>gtk/pacc-gl-inc.h #ifdef PACC_GL_ES # ifdef PACC_GL_3 #include <GLES3/gl3.h> # else #include <GLES2/gl2.h> # endif #else #define GL_GLEXT_PROTOTYPES # ifdef PACC_GL_3 #include <GL/glcorearb.h> # else #include <GL/gl.h> #include <GL/glext.h> # endif #endif
rzf45/98fmplayer
win32/oscilloview.h
#ifndef MYON_FMPLAYER_WIN32_OSCILLOVIEW_H_INCLUDED #define MYON_FMPLAYER_WIN32_OSCILLOVIEW_H_INCLUDED #include "libopna/opna.h" #include "oscillo/oscillo.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdatomic.h> extern struct oscilloview { atomic_flag flag; struct oscillodata oscillodata[LIBOPNA...
rzf45/98fmplayer
soundout/soundout.h
#ifndef MYON_SOUNDOUT_H_INCLUDED #define MYON_SOUNDOUT_H_INCLUDED #include <stdint.h> typedef void (*sound_callback)(void *userptr, int16_t *buf, unsigned frames); struct sound_state { void (*pause)(struct sound_state *state, int pause, int flush); void (*free)(struct sound_state *state); const char *apiname; ...
rzf45/98fmplayer
leveldata/leveldata.h
<reponame>rzf45/98fmplayer #ifndef MYON_LEVELDATA_H_INCLUDED #define MYON_LEVELDATA_H_INCLUDED #include <stdatomic.h> struct leveldata { atomic_flag flag; unsigned level; bool read; }; static inline unsigned leveldata_read(struct leveldata *data) { while (atomic_flag_test_and_set_explicit(&data->flag, memory...
rzf45/98fmplayer
win32/configdialog.h
<filename>win32/configdialog.h #ifndef MYON_FMPLAYER_WIN32_CONFIGDIALOG_H_INCLUDED #define MYON_FMPLAYER_WIN32_CONFIGDIALOG_H_INCLUDED #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <stdbool.h> #include "fmdriver/ppz8.h" extern struct fmplayer_config { bool fm_hires_env; bool fm_hires_sin; bool ssg_y...
rzf45/98fmplayer
gtk/wavesave.c
<reponame>rzf45/98fmplayer #include "wavesave.h" #include "common/fmplayer_file.h" #include <sndfile.h> #include <string.h> #include "libopna/opna.h" #include "libopna/opnatimer.h" #include "common/fmplayer_common.h" #include "configdialog.h" enum { SRATE = 55467, }; static void msgbox_err(GtkWindow *parent, const ...
rzf45/98fmplayer
common/fmplayer_work_opna.c
#include "fmplayer_common.h" #include "fmplayer_drumrom.h" #include "fmdriver/fmdriver.h" #include "fmdriver/ppz8.h" #include "libopna/opna.h" #include "libopna/opnatimer.h" #include <string.h> enum { SRATE = 55467, PPZ8MIX = 0xa000, }; static void opna_writereg_libopna(struct fmdriver_work *work, unsigned addr, ...
rzf45/98fmplayer
fmdriver/fmdriver.h
<filename>fmdriver/fmdriver.h #ifndef MYON_FMDRIVER_H_INCLUDED #define MYON_FMDRIVER_H_INCLUDED #include <stdint.h> #include <stdbool.h> #include "ppz8.h" enum { FMDRIVER_TRACK_FM_1, FMDRIVER_TRACK_FM_2, FMDRIVER_TRACK_FM_3, FMDRIVER_TRACK_FM_3_EX_1, FMDRIVER_TRACK_FM_3_EX_2, FMDRIVER_TRACK_FM_3_EX_3, F...
rzf45/98fmplayer
fmdsp/font_fmdsp_medium_data.h
static const unsigned char fmdsp_medium_dat[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00...
rzf45/98fmplayer
soundout/ossout.c
#include <sys/stat.h> #include <fcntl.h> struct ossout_state { struct sound_state ss; }; struct sound_state *ossout_init(
rzf45/98fmplayer
fmdriver/ppz8.h
#ifndef MYON_PPZ8_H_INCLUDED #define MYON_PPZ8_H_INCLUDED #include <stdint.h> #include <stdbool.h> #include <stdatomic.h> #include "leveldata/leveldata.h" #ifdef __cplusplus extern "C" { #endif enum ppz8_interp { PPZ8_INTERP_NONE, PPZ8_INTERP_LINEAR, PPZ8_INTERP_SINC, }; struct ppz8_pcmvoice { uint32_t star...
rzf45/98fmplayer
win32/soundout.c
<reponame>rzf45/98fmplayer #include "soundout.h" #include "dsoundout.h" #include "waveout.h" #include "wasapiout.h" struct sound_state *sound_init(HWND hwnd, unsigned srate, unsigned sectlen, sound_callback cbfunc, void *userptr) { struct sound_state *state; /* state = wasapi_init(...
rzf45/98fmplayer
pacc/pacc.h
#ifndef MYON_PACC_H_INCLUDED #define MYON_PACC_H_INCLUDED #include <stdint.h> #include <stdarg.h> enum pacc_mode { pacc_mode_copy, pacc_mode_color, pacc_mode_color_trans, pacc_mode_count, }; enum pacc_buf_mode { pacc_buf_mode_static, pacc_buf_mode_stream, }; struct pacc_ctx; struct pacc_tex; struct pacc...
rzf45/98fmplayer
fmdsp/fmdsp_platform_win.c
<gh_stars>10-100 #include "fmdsp_platform_info.h" #include <stdint.h> #include <limits.h> #define WIN32_LEAN_AND_MEAN #include <windows.h> static struct { HANDLE currproc; uint64_t lastall; uint64_t lastcpu; uint64_t lastfpstime; } g; int fmdsp_cpu_usage(void) { if (!g.currproc) g.currproc = GetCurrentProce...
rzf45/98fmplayer
gtk/wavesave.h
#ifndef MYON_FMPLAYER_GTK_WAVESAVE_H_INCLUDED #define MYON_FMPLAYER_GTK_WAVESAVE_H_INCLUDED #include <gtk/gtk.h> void wavesave_dialog(GtkWindow *parent, const char *uri); #endif // MYON_FMPLAYER_GTK_WAVESAVE_H_INCLUDED
rzf45/98fmplayer
sdl/pacc-gl-inc.h
#ifdef PACC_GL_ES #ifdef PACC_GL_3 #include <GLES3/gl3.h> #else #include <GLES2/gl2.h> #endif #else // PACC_GL_ES #ifdef PACC_GL_3 #include <GL/glcorearb.h> #else #ifdef _WIN32 #define PROC_NO_GL_1_1 #include <GL/gl.h> #include <GL/glext.h> #else #define PROC_NO_GL_1_3 #include <GL/gl.h> #endif #endif // PACC_GL_3 #en...
rzf45/98fmplayer
soundout/alsaout.h
<reponame>rzf45/98fmplayer #ifndef MYON_ALSAOUT_H_INCLUDED #define MYON_ALSAOUT_H_INCLUDED #include "soundout.h" struct sound_state *alsaout_init(const char *clientname, unsigned srate, sound_callback cbfunc, void *userptr); #endif // MYON_ALSAOUT_H_INCLUDED
rzf45/98fmplayer
common/fmplayer_file_gio.c
#include "common/fmplayer_file.h" #include <gio/gio.h> #include <glib.h> #include <stdlib.h> #include <string.h> static void *fileread(GFile *f, size_t maxsize, size_t *filesize, enum fmplayer_file_error *error) { GFileInfo *finfo = 0; GFileInputStream *fstream = 0; void *buf = 0; finfo = g_file_query_info(f, ...