Skip to content

Instantly share code, notes, and snippets.

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

James Ross-Gowan rossy

👊
平気、へっちゃら!
View GitHub Profile
Adapter 0:
Device Name: NVIDIA GeForce GTX 670
Device ID: 10de:1189 (rev a1)
Subsystem ID: 1043:841a
LUID: 0000000000008fc8
Output 0:
Device Name: \\.\DISPLAY1
Coordinates: 2560x1440+0+0
Attached to desktop: TRUE
Bits-per-color: 8
// gcc -Wall dxgiinfo.c -o dxgiinfo -ldxgi -ld3d11
#define COBJMACROS
#include <initguid.h>
#include <stdbool.h>
#include <stdio.h>
#include <conio.h>
#include <dxgi1_5.h>
#include <d3d11.h>
#define __USE_MINGW_ANSI_STDIO 1
#include <stdint.h>
#include <stdio.h>
#include <locale.h>
int main()
{
_locale_t c = _create_locale(LC_ALL, "C");
_locale_t fr = _create_locale(LC_ALL, "french");
[vf] Using conversion filter.
[vf] Video filter chain:
[vf] [in] 1280x720 d3d11_nv12[nv12] bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264
[vf] [d3d11vpp] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264 [a]
[vf] [out] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264
[cplayer] VO: [gpu] 1280x720 d3d11[nv12]
get file ids win8: 569e23f49e23caf7 0000000000000000002c000000009866
get file ids win8: 569e23f49e23caf7 00000000000000000010000000008f8d
get file ids win8: 569e23f49e23caf7 00000000000000000010000000008f8d
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 0000000000000000001d000000026e69
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 00000000000000000004000000000320
Playing: D:/Videos/
file id: 0x00000000000000000001000000000048
[file] This is a directory - adding to playlist.
file id: 0x0000000000000000000300000000b289
file id: 0x0000000000000000000100000000b05e
file id: 0x0000000000000000000200000000af76
file id: 0x00000000000000000001000000003369
file id: 0x0000000000000000000100000000b05d
file id: 0x0000000000000000000100000000dd0c
file id: 0x00000000000000000001000000000049
[vo/gpu/d3d11] D3DCompile failed: Unspecified error (0x80004005)
[vo/gpu/d3d11] C:\msys64\home\rossy\mpv\Shader@0x000000001529CFA0(58,46-51): error X3004: undeclared identifier '_22_m0'
[vo/gpu/d3d11] C:\msys64\home\rossy\mpv\Shader@0x000000001529CFA0(58,17-52): error X3013: 'lerp': no matching 3 parameter intrinsic function
[vo/gpu/d3d11] C:\msys64\home\rossy\mpv\Shader@0x000000001529CFA0(58,17-52): error X3013: Possible intrinsic functions are:
[vo/gpu/d3d11] C:\msys64\home\rossy\mpv\Shader@0x000000001529CFA0(58,17-52): error X3013: lerp(float|half|min10float|min16float, float|half|min10float|min16float, float|half|min10float|min16float)
[vo/gpu/d3d11] GLSL source:
[vo/gpu/d3d11] [ 1] #version 450
[vo/gpu/d3d11] [ 2] #define tex1D texture
[vo/gpu/d3d11] [ 3] #define tex3D texture
[vo/gpu/d3d11] [ 4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))
[vo/gpu/d3d11] [ 1] static float4 gl_Position;
[vo/gpu/d3d11] [ 2] static float2 _18;
[vo/gpu/d3d11] [ 3] static float2 _27;
[vo/gpu/d3d11] [ 4] static float2 _28;
[vo/gpu/d3d11] [ 5] static float2 _30;
[vo/gpu/d3d11] [ 6] static float2 _31;
[vo/gpu/d3d11] [ 7] static float2 _33;
[vo/gpu/d3d11] [ 8] static float2 _34;
[vo/gpu/d3d11] [ 9] static float2 _36;
[vo/gpu/d3d11] [ 10] static float2 _37;
// gcc -O2 -Wall -std=c99 -mf16c float16.c -o float16
#include <stdbool.h>
#include <inttypes.h>
#include <immintrin.h>
#include <stdio.h>
#include <math.h>
static char *format_float32_buf(float f, char buf[static 35])
{
#ifndef SMTC_C_H_
#define SMTC_C_H_
#include <windows.h>
#include <inspectable.h>
typedef interface ISystemMediaTransportControlsButtonPressedEventArgs ISystemMediaTransportControlsButtonPressedEventArgs;
typedef interface ISystemMediaTransportControlsPropertyChangedEventArgs ISystemMediaTransportControlsPropertyChangedEventArgs;
typedef interface IPlaybackPositionChangeRequestedEventArgs IPlaybackPositionChangeRequestedEventArgs;
typedef interface IPlaybackRateChangeRequestedEventArgs IPlaybackRateChangeRequestedEventArgs;