Skip to content

Instantly share code, notes, and snippets.

View rossy's full-sized avatar
👊
平気、へっちゃら!

James Ross-Gowan rossy

👊
平気、へっちゃら!
View GitHub Profile
@rossy
rossy / gist:60169dedf80883968519
Last active August 29, 2015 14:13
WASAPI output from work laptop, mix format is 16/48
Playing: Wildlife.wmv
[stream] Video --vid=1 (vc1)
[stream] Audio (+) --aid=1 --alang=eng (wmav2)
File tags:
Comment: Footage: Small World Productions, Inc; Tourism New Zealand | Producer: Gary F. Spradling | Music: Steve Ball
Title: Wildlife in HD
[ao] Trying preferred audio driver 'wasapi'
[ao/wasapi] requested format: 44100 Hz, stereo channels, floatp
[ao/wasapi] Init wasapi
[ao/wasapi] Init wasapi thread
@rossy
rossy / log.txt
Created January 29, 2015 11:39
mpv log with ewa_lanczos on Intel graphics
[ 0.004][v][cplayer] Command line: 'mpv' '[CoalGuys] K-ON!! S2 - 01 [DC424FCD].mkv' '--no-config' '--vo=opengl:scale=ewa_lanczos' '--end=1' '--log-file=log.txt'
[ 0.005][v][cplayer] mpv git-34d3a27 (C) 2000-2015 mpv/MPlayer/mplayer2 projects
[ 0.005][v][cplayer] built on 2015-01-29T10:33:57
[ 0.005][v][cplayer] ffmpeg library versions:
[ 0.005][v][cplayer] libavutil 54.15.100
[ 0.005][v][cplayer] libavcodec 56.13.100
[ 0.005][v][cplayer] libavformat 56.15.102
[ 0.005][v][cplayer] libswscale 3.1.101
[ 0.005][v][cplayer] libavfilter 5.2.103
[ 0.005][v][cplayer] libswresample 1.1.100
function xpathString(str) {
if (!/"/.test(str))
return '"' + str + '"';
if (!/'/.test(str))
return "'" + str + "'";
return "concat(" +
str.replace(/[^"']*(?:(")[^']*|[^"]+)/g, function(s, quot, offset) {
var sep = offset ? "," : "";
if (quot)
@rossy
rossy / PKGBUILD
Created July 27, 2015 05:45
mingw-w64-libass-fonts-git
_realname=libass
_base_ver=0.12.2
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-fonts-git"
pkgver=0.12.2.r1137.ae4f25c
pkgrel=1
pkgdesc="A portable library for SSA/ASS subtitles rendering (mingw-w64)"
arch=('any')
url='https://github.com/libass/libass'
license=('ISC')
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
@rossy
rossy / checkver.sh
Created September 8, 2015 06:01
MSYS2 package up-to-dateness checker hack
#!/usr/bin/env bash
set -e
get_package_version() {
local get_package_version_package=$1
local get_package_version_out_version=$2
local get_package_version_version=$(
pacman --sync --info -- "$get_package_version_package" |
grep '^Version *:' |
@rossy
rossy / font.c
Last active April 29, 2016 23:14
#include <windows.h>
#include <uxtheme.h>
#include <vssym32.h>
// window is a top-level HWND
static HFONT get_control_font_textstyle(void)
{
HTHEME textstyle = OpenThemeData(window, VSCLASS_TEXTSTYLE);
if (!textstyle)
@rossy
rossy / Makefile
Last active May 7, 2016 02:23
Makefile for ANGLE
CXX ?= g++
AR ?= ar
RANLIB ?= ranlib
DEFS := -DUNICODE -D_UNICODE -DANGLE_ENABLE_D3D9 -DANGLE_ENABLE_D3D11 \
-DANGLE_TRANSLATOR_STATIC -DANGLE_ENABLE_HLSL -DGL_GLEXT_PROTOTYPES \
-DEGL_EGLEXT_PROTOTYPES -DLIBANGLE_IMPLEMENTATION -DGL_APICALL= \
-DEGLAPI= $(DEFS)
LIBEGL_DEFS = -DLIBEGL_IMPLEMENTATION
LIBGLESv2_DEFS = -DLIBGLESV2_IMPLEMENTATION
CPPFLAGS := -Isrc -Iinclude -Isrc/third_party/khronos $(CPPFLAGS)
@rossy
rossy / dxinteropcaps.c
Last active July 28, 2021 20:46
GL/DX interop capabilities viewer
// gcc dxinteropcaps.c -std=c99 -Wall -o dxinteropcaps -lgdi32 -lopengl32 -ld3d9 -O0 -ggdb3
#define _WIN32_WINNT 0x0600
#define COBJMACROS
#define UNICODE
#define _UNICODE
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
/*** Autogenerated by WIDL 1.6 from dxgi1_3.idl - Do not edit ***/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#ifndef COM_NO_WINDOWS_H
player=mpv.com --no-ytdl --loop=force --cache-initial=1024 --
player-http
player-continuous-http
default-stream=best
stream-sorting-excludes=>=source
player-passthrough=http
player-no-close