Giter VIP home page Giter VIP logo

flutter-windows-angle-opengl-es's People

Contributors

21pages avatar alexmercerind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter-windows-angle-opengl-es's Issues

Compiling issues

looks like some of the new changes broke the plugin. Particularly the
ANGLESurfaceManager::ANGLESurfaceManager(HWND window, int32_t width, int32_t height, IDXGIAdapter* adapter = nullptr)
throws an error with the redefinition of the adapter parameter. That's an easy fix but the more annoying one after correcting that is the
auto adapter = registrar_->GetView()->GetGraphicsAdapter();
call at line 98 of flutter_windows_angle_d3d_texture_plugin.cc says the GetGraphicsAdapter is not a member of FlutterView.
Am I on an island here or is this known?

[feature] libmpv video rendering on Texture widget using ANGLE

I have setup initial mpv rendering setup, that I believe in theory should work & display the video. But it just get's stuck with following logs.

I also opened mpv-player/mpv#10381.

Changing vo to gpu actually causes playback to resume, but in separate window. I've lost my hope on this now:

https://github.com/alexmercerind/flutter-windows-ANGLE-OpenGL-Direct3D-Interop/blob/04f80065f44136c7634368919c5d7e765afa41e2/windows/flutter_windows_angle_d3d_texture_plugin.cpp#L389

[cplayer] mpv 0.34.0-127-g777628e761 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Sun Jan  9 11:43:53 +08 2022
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       57.18.100
[cplayer]    libavcodec      59.20.100
[cplayer]    libavformat     59.17.100
[cplayer]    libswscale      6.5.100
[cplayer]    libavfilter     8.25.100
[cplayer]    libswresample   4.4.100
[cplayer] FFmpeg version: git-2022-01-08-ffb000ff
[cplayer]
[cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-static-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-javascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enable-rubberband --enable-lcms2 --enable-openal --enable-spirv-cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw
[cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 egl-helpers ffmpeg ffmpeg-aviocontext-bytes-read ffnvcodec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarchive libass libavdevice libbluray libm libmpv-shared libplacebo libplacebo-v4 lua luajit mingw noexecstack openal optimize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-static spirv-cross spirv-cross-static static-build stdatomic uchardet vapoursynth vector vulkan wasapi win32-desktop win32-internal-pthreads zimg zlib
Warning: option --opengl-hwdec-interop was replaced with --gpu-hwdec-interop and might be removed in the future.
[cplayer] Waiting for scripts...
[cplayer] Done loading scripts.
[osd/libass] libass API version: 0x1502000
[osd/libass] libass source: commit: 0d170d9a1d7e7fee948141eac988c1e6391dfc62
[osd/libass] Shaper: FriBidi 1.0.11 (SIMPLE) HarfBuzz-ng 3.2.0 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider directwrite (with GDI)
[osd/libass] Done.
glGetString: 00007FFCE0BC1730
[libmpv_render] GL_VERSION='OpenGL ES 3.0.0 (ANGLE 2.1.0.unknown hash)'
[libmpv_render] Detected GLES 3.0.
[libmpv_render] GL_VENDOR='Google Inc.'
[libmpv_render] GL_RENDERER='ANGLE (AMD Radeon(TM) Vega 3 Mobile Graphics Direct3D11 vs_5_0 ps_5_0)'
[libmpv_render] GL_SHADING_LANGUAGE_VERSION='OpenGL ES GLSL ES 3.00 (ANGLE 2.1.0.unknown hash)'
glActiveTexture: 00007FFCE0BBDC28
glAttachShader: 00007FFCE0BBDCBE
glBindAttribLocation: 00007FFCE0BBDD63
glBindBuffer: 00007FFCE0BBDE17
glBindTexture: 00007FFCE0BBE14C
glBlendFuncSeparate: 00007FFCE0BBE5C7
glBufferData: 00007FFCE0BBE68C
glBufferSubData: 00007FFCE0BBE76A
glClear: 00007FFCE0BBE8DC
glClearColor: 00007FFCE0BBE972
glCompileShader: 00007FFCE0BBEC71
glCreateProgram: 00007FFCE0BBF1F0
glCreateShader: 00007FFCE0BBF284
glDeleteBuffers: 00007FFCE0BBF3C6
glDeleteProgram: 00007FFCE0BBF510
glDeleteShader: 00007FFCE0BBF64B
glDeleteTextures: 00007FFCE0BBF6E1
glDisable: 00007FFCE0BBFA0F
glDisableVertexAttribArray: 00007FFCE0BBFAA5
glDrawArrays: 00007FFCE0BBFB3B
glEnable: 00007FFCE0BC02B7
glEnableVertexAttribArray: 00007FFCE0BC034D
glFinish: 00007FFCE0BC03E3
glFlush: 00007FFCE0BC046E
glGenBuffers: 00007FFCE0BC0743
glGenTextures: 00007FFCE0BC0932
glGetAttribLocation: 00007FFCE0BC0D65
glGetError: 00007FFCE0BC0F78
glGetIntegerv: 00007FFCE0BC116D
glGetProgramInfoLog: 00007FFCE0BC1212
glGetProgramiv: 00007FFCE0BC12D7
glGetShaderInfoLog: 00007FFCE0BC1436
glGetShaderiv: 00007FFCE0BC1685
glGetString: 00007FFCE0BC1730
glGetUniformLocation: 00007FFCE0BC1946
glLinkProgram: 00007FFCE0BC22F8
glPixelStorei: 00007FFCE0BC238E
glReadPixels: 00007FFCE0BC24ED
glScissor: 00007FFCE0BC27FA
glShaderSource: 00007FFCE0BC29A2
glTexImage2D: 00007FFCE0BC2E94
glTexParameteri: 00007FFCE0BC3166
glTexSubImage2D: 00007FFCE0BC32E2
glUniform1f: 00007FFCE0BC3432
glUniform2f: 00007FFCE0BC36EC
glUniform3f: 00007FFCE0BC39D3
glUniform1i: 00007FFCE0BC3593
glUniformMatrix2fv: 00007FFCE0BC404F
glUniformMatrix3fv: 00007FFCE0BC4116
glUseProgram: 00007FFCE0BC42A4
glVertexAttribPointer: 00007FFCE0BC49DA
glViewport: 00007FFCE0BC4C0E
glBindBufferBase: 00007FFCE0BC5495
glBlitFramebuffer: 00007FFCE0BC5820
glGetStringi: 00007FFCE0BC7A82
glMapBufferRange: 00007FFCE0BC8578
glReadBuffer: 00007FFCE0BC884B
glUnmapBuffer: 00007FFCE0BC9E18
glTexImage3D: 00007FFCE0BC8D27
glBindFramebuffer: 00007FFCE0BBE002
glGenFramebuffers: 00007FFCE0BC07E8
glDeleteFramebuffers: 00007FFCE0BBF46B
glCheckFramebufferStatus: 00007FFCE0BBE83E
glFramebufferTexture2D: 00007FFCE0BC05BE
glGetFramebufferAttachmentParameteriv: 00007FFCE0BC10A8
glGenVertexArrays: 00007FFCE0BC6E6F
glBindVertexArray: 00007FFCE0BC578A
glDeleteVertexArrays: 00007FFCE0BC64DF
[libmpv_render] Loaded extension GL_EXT_texture_norm16.
[libmpv_render] Loaded extension GL_EXT_color_buffer_half_float.
glFenceSync: 00007FFCE0BC6A38
glClientWaitSync: 00007FFCE0BC5C65
glDeleteSync: 00007FFCE0BC639E
glGenQueriesEXT: 00007FFCE0BD4A5A
glDeleteQueriesEXT: 00007FFCE0BD4918
glBeginQueryEXT: 00007FFCE0BD486A
glEndQueryEXT: 00007FFCE0BD49BD
glQueryCounterEXT: 00007FFCE0BD4F14
glIsQueryEXT: 00007FFCE0BD4E7A
glGetQueryObjectivEXT: 00007FFCE0BD4BAA
glGetQueryObjecti64vEXT: 00007FFCE0BD4AFF
glGetQueryObjectuivEXT: 00007FFCE0BD4D09
glGetQueryObjectui64vEXT: 00007FFCE0BD4C55
[libmpv_render] Loaded extension GL_EXT_disjoint_timer_query.
glInvalidateFramebuffer: 00007FFCE0BC80AF
glGetProgramBinary: 00007FFCE0BC76C3
glProgramBinary: 00007FFCE0BC86D2
glDebugMessageCallback: 0000000000000000
[libmpv_render] Function glDebugMessageCallback from extension GL_KHR_debug not found.
glGetTranslatedShaderSourceANGLE: 00007FFCE0BD27A9
[libmpv_render] Loaded extension GL_ANGLE_translated_shader_source.
[libmpv_render] GL_*_swap_control extension missing.
[libmpv_render] Testing FBO format rgba16f
[libmpv_render] Using FBO format rgba16f.
[libmpv_render] Disabling HDR peak computation (one or more of the following is not supported: compute shaders=0, SSBO=0).
[libmpv_render] No advanced processing required. Enabling dumb mode.
[libmpv_render] Loading hwdec driver 'd3d11-egl'
mpv_render_context_render
eglSwapBuffers
glFlush
[cplayer] Set property: volume=100.000000 -> 1
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook
[cplayer] Set property: pause=true -> 1
[ytdl_hook] not a ytdl:// url
[ifo_dvdnav] Opening D:\Music\Videos\Camila Cabello - Havana ft. Young Thug.mp4
[bdmv/bluray] Opening D:\Music\Videos\Camila Cabello - Havana ft. Young Thug.mp4
[file] Opening D:\Music\Videos\Camila Cabello - Havana ft. Young Thug.mp4
[demux] Trying demuxers for level=normal.
[lavf] Found 'mov,mp4,m4a,3gp,3g2,mj2' at score=100 size=2048.
[demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)
[cplayer] Opening done: D:\Music\Videos\Camila Cabello - Havana ft. Young Thug.mp4
[find_files] Loading external files in D:\Music\Videos\
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[lavf] select track 1
 (+) Video --vid=1 (*) (h264 1280x720 23.976fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[vd] Container reported FPS: 23.976024
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] Looking at hwdec h264-d3d11va...
[vd] Trying hardware decoding via h264-d3d11va.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: aac (AAC (Advanced Audio Coding))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[vd] Pixel formats supported by decoder: cuda dxva2_vld d3d11va_vld d3d11 yuv420p
[vd] Codec profile: Main (0x4d)
[vd] Requesting pixfmt 'd3d11' from decoder.
[af] [in] 44100Hz stereo 2ch floatp
[af] [userspeed] 44100Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 44100Hz stereo 2ch floatp
Using hardware decoding (d3d11va).
[vd] Decoder format: 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264
[vf] [in] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[ao] Trying audio driver 'wasapi'
[ao/wasapi] requested format: 44100 Hz, stereo channels, floatp
[ao/wasapi] No device specified. Selecting default.
[ao/wasapi] Selecting device '{f698aec9-8c3b-4d68-9e66-7ae20cf37902}' (Speakers (Realtek(R) Audio))
[ao/wasapi] Monitoring changes in device {0.0.0.00000000}.{f698aec9-8c3b-4d68-9e66-7ae20cf37902}
[ao/wasapi] Trying stereo float (32/32 bits) @ 48000hz (shared) -> ok
[ao/wasapi] Accepted as stereo float @ 48000hz -> stereo float (32/32 bits) @ 48000hz (shared)
[ao/wasapi] Device period: 11 ms
[ao/wasapi] Buffer frame count: 2560 (53 ms)
[ao/wasapi] IAudioClock::GetFrequency gave a frequency of 384000.
[ao/wasapi] device buffer: 2560 samples.
[ao/wasapi] using soft-buffer of 9600 samples.
AO: [wasapi] 48000Hz stereo 2ch float
[cplayer] AO: Description: Windows WASAPI audio output (event mode)
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 44100Hz stereo floatp -> 48000Hz stereo float
[af] [out] 48000Hz stereo 2ch float
VO: [libmpv] 1280x720 d3d11[nv12]
[cplayer] VO: Description: render API for libmpv
[vo/libmpv] reconfig to 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[libmpv_render] Window size: 1280x720 (Borders: l=0 t=0 r=0 b=0)
[libmpv_render] Video source: 1280x720 (1:1)
[libmpv_render] Video display: (0, 0) 1280x720 -> (0, 0) 1280x720
[libmpv_render] Video scale: 1.000000/1.000000
[libmpv_render] OSD borders: l=0 t=0 r=0 b=0
[libmpv_render] Video borders: l=0 t=0 r=0 b=0
[libmpv_render] Testing FBO format rgba16f
[libmpv_render] Using FBO format rgba16f.
[libmpv_render] No advanced processing required. Enabling dumb mode.

FlutterDesktopGpuSurfaceDescriptor undefined

Hey, I was trying to run the example provided but I get build errors becasue "identifier FlutterDesktopGpuSurfaceDescriptor is undefined" in windows\flutter_windows_angle_d3d_texture_plugin.h (line 74)

Also missing are kFlutterDesktopPixelFormatBGRA8888, flutter::GpuSurfaceTexture and some others

I am on the master channel of flutter:

Flutter (Channel master, 3.1.0-0.0.pre.2114, on Microsoft Windows [Version
    10.0.19044.1865], locale de-DE)
    • Flutter version 3.1.0-0.0.pre.2114 on channel master at C:\src\flutter   
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5c44057d85 (6 minutes ago), 2022-08-06 08:12:06 +1000 
    • Engine revision da4455d9c9
    • Dart version 2.19.0 (build 2.19.0-70.0.dev)
    • DevTools version 2.16.0

Am I missing something?

[Bug] Crash on Windows 7 SP1

I try to run on win7 and get a crash


Problem signature :
Problem event name : APPCRASH
Application name : flutter_windows_angle_d3d_texture_example.exe
Application version : 1.0.0.0
Application Timestamp : 63116ca2
Fault Module name : flutter_windows_angle_d3d_texture_plugin.dll
Fault Module Version : 0.0.0.0
Fault Module Timestamp: 63116c98
Exception Code : c0000005
Exception Offset : 00000000000032a1
OS Version : 6.1.7601.2.1.0.768.2
Locale ID: 2052
Additional Information 1: 0336
Additional Information 2: 03364a7e80ae3f1737cf664e35c02d23
Additional Information 3: 248b
Additional Information 4: 248b1bdd3e8b77476ea68023c7d3ef5a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.