hardware-acceleration

Why is hardware acceleration not working on my View?

你。 提交于 2019-11-29 02:54:32
问题 I'm using Facebook's Rebound library to replicate the bouncy animations seen in their chat heads implementation. The problem is, most of the time the animation stutters. A few pictures will explain this better. Here's the buttery-smooth chat heads animation: And here's my attempt (notice how the animation for the white View skips nearly all frames): Once in a while it works smoothly: Below is the code I'm using currently (the entire project is up on Github if you want to set it up quickly). I

Why aren't browsers smart enough to hardware accelerate without tricks?

落爺英雄遲暮 提交于 2019-11-28 22:58:00
问题 There are tons of webpages these days recommending you add these rules to your content to make it hardware accelerated: transform: translate3d(0,0,0); -webkit-transform: translate3d(0,0,0); This always struck me as ridiculous. Why should the browser need my help to decide to hardware accelerate? It's going to be faster, right? So why not just do it? Why wait for me to "trick" the browser into it? Another way of asking this question might be, why doesn't every baseline/reset stylesheet include

Java Hardware Acceleration not working with Intel Integrated Graphics

早过忘川 提交于 2019-11-28 21:41:11
Hi everyone I hope someone can help me solve this problem. I'm having trouble getting hardware acceleration to work on a laptop with Intel Integrated Graphics. The Problem: Hardware Acceleration using Java 7 update 11 doesn't appear to be working with Intel Integrated Graphics on a Windows 7 and 8 machine using a BufferStrategy with a JFrame. Details Graphics Card: Intel(R) HD Graphics 4000 JRE: Java 7 Update 11 OS: Windows 7, Windows 8 Expected Results Actual Results Resources If you want to verify the problem you can download the app I created for testing at: http://ndcubed.com/downloads

How do I use Hardware accelerated video/H.264 decoding with directx 11 and windows 7?

混江龙づ霸主 提交于 2019-11-28 19:18:35
问题 I've been researching all day and not gotten very far. I'm on windows 7, using directx 11. (My final output is to be a frame of video onto a DX11 texture) I want to decode some very large H.264 video files, and the CPU (using libav) doesn't cut it. I've looked at the hwaccel capabilities of libav using DXVA2, but hit a road block when I need to create a IDirectXVideoDecoder, which can only be created with a D3D9 interface. (which I don't have using DX11) Whenever I've looked up DXVA

What is hardware cursor and how does it work?

牧云@^-^@ 提交于 2019-11-28 18:18:42
Is there anyone who can explain how hardware cursor works precisely? How does it relate to the graphics I'm drawing on the screen? I'm using OpenGL to draw, how does hardware cursor relate to OpenGL graphics? EDIT: For those who may be interested in this in the future I just implemented what is needed to show the cursor with the hardware. The implementation was in the kernel and to use it simple ioctl's were sufficient. Works perfectly. Hardware Cursor means, that the GPU provides to draw a (small) overlay picture over the screen framebuffer, which position can be changed by two registers (or

WebView “flashing” with white background if hardware acceleration is enabled (Android 3.0+)

别来无恙 提交于 2019-11-28 17:24:08
问题 I have an issue with the WebView (Android 3.0+), which the WebView always displays a white background before display my black background ("flashing"). Here is my simple test code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); WebView webView = new WebView(this); webView.setBackgroundColor(Color.BLACK); setContentView(webView); loadWebView(webView); webView.loadDataWithBaseURL("localhost://", "<html><head>" + "<style>body {background-color:

using ffmpeg hwaccel from C++

好久不见. 提交于 2019-11-28 17:17:48
How do I decode a file with hardware acceleration with ffmpeg? I have written a working video player that uses ffmpeg. I have checked for support using "av_hwaccel_next" and found mpeg2_dxva . However, when I load an mpeg2 file (as usual) I do not get any hardware acceleration. AVCodecContext->hwaccel and AVCodecContext->hwaccelcontext are both null. Do I have to pass some flag somewhere in order to enable hw-acceleration? I haven't been able to find any information regarding this, anyone know of a good source? osgx Start from reading ffmpeg documentation: https://trac.ffmpeg.org/wiki

Is it possible to use GPU acceleration on compiling multiple programs on a gcc compiler?

走远了吗. 提交于 2019-11-28 16:49:18
Is there any way or tool to apply GPU acceleration on compiling programs with GCC compiler? Right now I have created a program to compile the given list of programs iteratively. It takes a few minutes. I know of a few programs like Pyrit which helps to apply GPU acceleration for precomputing hashes. If there are no such tools available, Please advice on whether to use OpenCL or anything else to reprogram my code. A. In an imperative programming language, statements are executed in sequence, and each statement may change the program's state. So analyzing translation units is inherently

Test if Hardware Acceleration has been enabled for a CSS animation?

两盒软妹~` 提交于 2019-11-28 16:47:07
问题 How can I tell (for testing purposes) if Hardware Acceleration has been enabled for a CSS animation? I have the following code which essentially enlarges an element and makes it fullscreen (without using the HTML5 fullscreen API). It runs like a stuttering asthmatic tortoise on most mobiles when using a jQuery animation so I have used CSS3 instead. Here is the jsFiddle example: $("#makeFullscreen").on("click", function() { var map = $("#map"), mapTop = map.offset().top, mapLeft = map.offset()

Punch a hole in a rectangle overlay with HW acceleration enabled on View

十年热恋 提交于 2019-11-28 16:05:57
I have a view which does some basic drawing. After this I want to draw a rectangle with a hole punched in so that only a region of the previous drawing is visible. And I'd like to do this with hardware acceleration enabled for my view for best performance. Currently I have two methods that work, but only works when disabled hardware acceleration and the other is too slow. Method 1: SW Acceleration (Slow) final int saveCount = canvas.save(); // Clip out a circle. circle.reset(); circle.addCircle(cx, cy, radius, Path.Direction.CW); circle.close(); canvas.clipPath(circle, Region.Op.DIFFERENCE); /