hardware-acceleration

FFmpeg hardware acceleration on Raspberry PI

耗尽温柔 提交于 2020-06-28 03:08:28
问题 I am building a program that use ffmpeg to stream webcam content over internet. I would like to know if it is possible to use the GPU for the streaming part on the raspberry pi model 3. If yes, how could I implement this on ffmpeg? 回答1: You'll need some additional configure options: --enable-mmal – Enable Broadcom Multi-Media Abstraction Layer (Raspberry Pi) via MMAL. For hardware decoding of H.264, VC-1, MPEG-2, MPEG-4. As a dependency you'll need the linux-raspberrypi-headers (Arch Linux)

java.lang.IllegalStateException: Unable to create layer for X — when using hardware layers

≡放荡痞女 提交于 2020-05-27 00:26:08
问题 I'm using hardware layers on a custom view for better performance when animating its alpha. Seeing this crash on my crash reporter: Fatal Exception: java.lang.IllegalStateException: Unable to create layer for X at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:323) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5585) at java.lang.reflect.Method.invoke(Method.java) at com.android

java.lang.IllegalStateException: Unable to create layer for X — when using hardware layers

ε祈祈猫儿з 提交于 2020-05-27 00:19:37
问题 I'm using hardware layers on a custom view for better performance when animating its alpha. Seeing this crash on my crash reporter: Fatal Exception: java.lang.IllegalStateException: Unable to create layer for X at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:323) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5585) at java.lang.reflect.Method.invoke(Method.java) at com.android

java.lang.IllegalStateException: Unable to create layer for X — when using hardware layers

青春壹個敷衍的年華 提交于 2020-05-27 00:13:10
问题 I'm using hardware layers on a custom view for better performance when animating its alpha. Seeing this crash on my crash reporter: Fatal Exception: java.lang.IllegalStateException: Unable to create layer for X at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:323) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5585) at java.lang.reflect.Method.invoke(Method.java) at com.android

java.lang.IllegalStateException: Unable to create layer for X — when using hardware layers

这一生的挚爱 提交于 2020-05-27 00:12:11
问题 I'm using hardware layers on a custom view for better performance when animating its alpha. Seeing this crash on my crash reporter: Fatal Exception: java.lang.IllegalStateException: Unable to create layer for X at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:323) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5585) at java.lang.reflect.Method.invoke(Method.java) at com.android

how to access HTML5 video decoding functionality?

跟風遠走 提交于 2020-02-01 05:51:31
问题 HTML5 has <video/> element that downloads video from server, decodes it and renders. Often if not always they use hardware accelerated decoding (if available). Is it possible to access just decoding functionality? The reason is that I'm using custom streaming protocol and so on client side I have encoded video stream that I need to decode and render. Pure JavaScript implementations of video decoder are not applicable unfortunately as they cannot provide sufficient performance. I'm interested

Is it possible to enable hardware acceleration with Java FX on Windows 2008 server?

别说谁变了你拦得住时间么 提交于 2020-01-02 04:39:05
问题 As discussed in this question, it's possible to detect whether Java FX is using hardware acceleration by passing -Dprism.verbose=true as a system property. When I do this on my Java FX app on Windows 2008 Server R2, it is apparently falling back to the software rendering: Prism pipeline init order: d3d j2d Using t2k for text rasterization Using dirty region optimizations Prism pipeline name = com.sun.prism.d3d.D3DPipeline Loading D3D native library ... succeeded. Direct3D initialization

Is there a way to detect if Java FX is using hardware acceleration?

。_饼干妹妹 提交于 2020-01-01 12:10:37
问题 And related to that, is there a way to force Java FX to use hardware acceleration and bomb if it is unable to? 回答1: Just found out: You can run with -Dprism.verbose=true which will print what graphics pipeline it uses. "sw" or "j2d" for software and "d3d" or "es2" for hardware accelerated. 回答2: You can also try this hack @SuppressWarnings("restriction") static String getCurrentGraphicsPipeline() { return com.sun.prism.GraphicsPipeline.getPipeline().getClass().getName(); } If you get back "com

Is there a way to detect if Java FX is using hardware acceleration?

南楼画角 提交于 2020-01-01 12:10:09
问题 And related to that, is there a way to force Java FX to use hardware acceleration and bomb if it is unable to? 回答1: Just found out: You can run with -Dprism.verbose=true which will print what graphics pipeline it uses. "sw" or "j2d" for software and "d3d" or "es2" for hardware accelerated. 回答2: You can also try this hack @SuppressWarnings("restriction") static String getCurrentGraphicsPipeline() { return com.sun.prism.GraphicsPipeline.getPipeline().getClass().getName(); } If you get back "com

Is NinePatchDrawable+setColorFilter HW Accelerated in Honeycomb?

这一生的挚爱 提交于 2019-12-24 18:20:04
问题 I'm building compound controls (UI controls that consist of multiple standard UI controls) and I need HW acceleration (Honeycomb only app). The typical control will look like this: ViewGroup (some layout subclass) with a NinePatchDrawable background + setColorFilter on the background drawable. Inside that, one or more Views with a NinePatchDrawable background + setColorFilter on the background drawable. I'll build up my UI from compound controls like this. Will this hierarchy be hardware