othercrashoverride / cxvideocube Goto Github PK
View Code? Open in Web Editor NEWWork in progress
Work in progress
Hello @OtherCrashOverride ,
Thank you for the code. I'm trying to make it works on X11 (actually, fbdev got EGL_BAD_ALLOC when create surface as well). And I facing with error when get DMA buf for /dev/fb0 at https://github.com/nvl1109/CXVideoCube/blob/master/main.cpp#L623.
Here are output log:
odroid@odroid64:~/p/code/CXVideoCube⟫ sudo ./videocube
EGL: major=1, minor=4
EGL: Vendor=ARM
EGL: Version=1.4 Linux-r6p1-01rel0
EGL: ClientAPIs=OpenGL_ES
EGL: Extensions=EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_swap_buffers_with_damage EGL_EXT_swap_buffers_with_damage EGL_KHR_lock_surface EGL_KHR_lock_surface2 EGL_EXT_create_context_robustness EGL_ANDROID_blob_cache EGL_KHR_create_context EGL_KHR_partial_update EGL_KHR_create_context_no_error
EGL: ClientExtensions=EGL_EXT_client_extensions EGL_EXT_platform_base EGL_KHR_platform_x11
red colorSize: 8
green colorSize: 8
blue colorSize: 8
alpha colorSize: 8
depth size: 24
stencil size: 8
sample size: 0
file handle: a
screen info: width=3840, height=2160, bpp=32
OSD_GET_DMA_BUF_FD failed. (-1): Operation not permitted
Could you please take alook and give me your suggestions? Thank you.
egl.cpp:9:1: error: 'fbdev_window' does not name a type; did you mean 'XMoveWindow'?
fbdev_window window;
^~~~~~~~~~~~
XMoveWindow
egl.cpp: In function 'void* Egl_CreateWindow(EGLDisplay, void**)':
egl.cpp:79:2: error: 'window' was not declared in this scope
window.width = width;
^~~~~~
egl.cpp:79:2: note: suggested alternative: 'Window'
window.width = width;
^~~~~~
Window
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.