Skip to content

Instantly share code, notes, and snippets.

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

James Ross-Gowan rossy

👊
平気、へっちゃら!
View GitHub Profile
[vo/opengl-hq] win32: running at 1600x900
[vo/opengl-hq] Detected OpenGL 3.0.
[vo/opengl-hq] GL_VENDOR='Intel'
[vo/opengl-hq] GL_RENDERER='Intel(R) HD Graphics 4400'
[vo/opengl-hq] GL_VERSION='3.0.0 - Build 10.18.10.3345'
[vo/opengl-hq] GL_SHADING_LANGUAGE_VERSION='1.30 - Build 10.18.10.3345'
[vo/opengl-hq] OpenGL legacy compat. found.
[vo/opengl-hq] Combined OpenGL extensions string:
[vo/opengl-hq] GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_blend_color GL_EXT_abgr GL_EXT_texture3D GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_SGIS_texture_edge_clamp GL_SGIS_generate_mipmap GL_EXT_draw_range_elements GL_SGIS_texture_lod GL_EXT_rescale_normal GL_EXT_packed_pixels GL_EXT_texture_edge_clamp GL_EXT_separate_specular_color GL_ARB_multitexture GL_ARB_map_buffer_alignment GL_ARB_conservative_depth GL_EXT_texture_env_combine GL_EXT_bgra GL_EXT_blend_func_separate GL_EXT_secondary_color GL_EXT_fog_coord GL_EXT_texture_env_add GL_ARB_texture_cube_map GL_ARB_transpose_matrix GL_ARB_internalformat_query
#include <windows.h>
#include <stdio.h>
#include <stdbool.h>
static bool is_network_path(const wchar_t *path)
{
wchar_t vol[32768];
if (GetVolumePathNameW(path, vol, sizeof(vol) / sizeof(wchar_t)))
return GetDriveTypeW(vol) == DRIVE_REMOTE;
[input] key code=0x34a000a2 'Ctrl+MOUSE_BTN2' down
[input] key 'Ctrl+MOUSE_BTN2' -> 'seek 5' in 'default'
[input] key code=0x382000a2 'MOUSE_BTN2' up
[input] key code=0x61 'a'
[input] key 'Ctrl+MOUSE_BTN2-a' -> 'cycle angle' in 'default'
diff --git i/input/input.c w/input/input.c
index a578f8c..8f1ba12 100644
--- i/input/input.c
+++ w/input/input.c
@@ -549,9 +549,9 @@ static void release_down_cmd(struct input_ctx *ictx, bool drop_current)
static int find_key_down(struct input_ctx *ictx, int code)
{
- code &= ~(MP_KEY_STATE_UP | MP_KEY_STATE_DOWN);
+ code &= ~(MP_KEY_STATE_UP | MP_KEY_STATE_DOWN | MP_KEY_MODIFIER_MASK);
#include <unistd.h>
#include <stdio.h>
#include <stdbool.h>
#include <fcntl.h>
#include <io.h>
#include <windows.h>
#include <winternl.h>
#ifndef FILE_REMOTE_DEVICE
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Elantech\APOptimize\mpv]
"FileName"="mpv.exe"
"Class"="mpv"
"Text"=""
"FocusText"=""
"FocusClass"=""
"Option"=hex:\
01,\ ; Don't show cursor icon
@rossy
rossy / .diff
Created October 26, 2014 04:14
diff --git i/video/decode/gpu_memcpy_sse4.h w/video/decode/gpu_memcpy_sse4.h
index c441ff3..160209b 100644
--- i/video/decode/gpu_memcpy_sse4.h
+++ w/video/decode/gpu_memcpy_sse4.h
@@ -19,14 +19,18 @@
* Taken from the QuickSync decoder by Eric Gur
*/
-#include <emmintrin.h>
+#ifndef GPU_MEMCPY_SSE4_H_
#include <windows.h>
#include <stdio.h>
void print_escaped(const wchar_t *s, FILE *stream)
{
fputwc('"', stream);
wchar_t c;
while ((c = *s++)) {
switch (c) {
[vo/opengl-hq] Detected GLES 2.0.
[vo/opengl-hq] GL_VENDOR='Google Inc.'
[vo/opengl-hq] GL_RENDERER='ANGLE (NVIDIA GeForce GTX 670 Direct3D11 vs_5_0 ps_5_0)'
[vo/opengl-hq] GL_VERSION='OpenGL ES 2.0 (ANGLE 2.1.2609bf4ca449)'
[vo/opengl-hq] GL_SHADING_LANGUAGE_VERSION='OpenGL ES GLSL ES 1.00 (ANGLE 2.1.2609bf4ca449)'
[vo/opengl-hq] Combined OpenGL extensions string:
[vo/opengl-hq] GL_OES_element_index_uint GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_OES_rgb8_rgba8 GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_NV_pixel_buffer_object GL_OES_mapbuffer GL_EXT_map_buffer_range GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_float GL_OES_texture_float_linear GL_EXT_texture_rg GL_EXT_texture_compression_dxt1 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_sRGB GL_ANGLE_depth_texture GL_EXT_texture_storage GL_OES_texture_npot GL_EXT_draw_buffers GL_EXT_texture_filter_anisotropic GL_EXT_occlusion_query_boolean GL_NV_fence GL_EXT_robustness G
@rossy
rossy / gist:16703760d18e44e05e65
Created December 21, 2014 00:53
mpv ANGLE/GLES3 output
Playing: [FFF] Chuunibyou demo Koi ga Shitai! - 07 [BD][720p-AAC][7F5F5B13] (1).mkv
[stream] Video (+) --vid=1 '10bit H.264 - 720p' (h264)
[stream] Audio (+) --aid=1 --alang=jpn (*) '2.0 AAC' (aac)
[stream] Subs (+) --sid=1 --slang=eng (*) 'URW' (ass)
[stream] Subs --sid=2 --slang=eng 'gg' (ass)
[vo/opengl-hq] Setting option 'fbo-format' = 'rgba' (flags = 0)
[vo/opengl-hq] Setting option 'backend' = 'angle' (flags = 0)
[vo/opengl-hq] Setting option 'swapinterval' = '1' (flags = 0)
[vo/opengl-hq] Detected GLES 3.0.
[vo/opengl-hq] GL_VENDOR='Google Inc.'