hardware-acceleration

How to use hardware accelerated video decoding on Android?

风格不统一 提交于 2019-11-28 15:21:25
I need hardware-accelerated H.264 decoding for a research project, to test a self-defined protocol. As I have Search on the web, I have found a few ways to perform hardware-accelerated video decoding on Android. Use ffmpeg libstagefright ( overview of libstagefright ) or use libstagefright in the OS directly, like here . Use OpenMax on specific hardware platform. like here about samsung device and here about Qualcomm Snapdragon series Some people mentioned PVplayer , Some people "say" libstagefright is the only way while Qualcomm guys have made success obviously. Currently I am not sure which

How to use hardware acceleration with ffmpeg

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 15:17:43
问题 I need to have ffmpeg decode my video(e.g. h264) using hardware acceleration. I'm using the usual way of decoding frames: read packet -> decode frame. And I'd like to have ffmpeg speed up decoding. So I've built it with --enable-vaapi and --enable-hwaccel=h264 . But I don't really know what should I do next. I've tried to use avcodec_find_decoder_by_name("h264_vaapi") but it returns nullptr. Anyway, I might want to use others API and not just VA API. How one is supposed to speed up ffmpeg

Android Canvas.drawPicture not working in devices with ice cream sandwich

穿精又带淫゛_ 提交于 2019-11-28 05:27:40
问题 I want to draw a Picture on a Canvas by mCanvas.drawpicture(mPicture, mRect) Using target API 7 <uses-sdk android:minSdkVersion="7"/> , it works perfectly in devices with API<14, but in devices with Ice Cream Sandwich, it doesn't work. Apparently this is because canvas.drawPicture is not supported with Hardware Acceleration: Unsupported Drawing Operations I have tried to fix this by disabling the Hardware Acceleration in the Manifest: <application android:hardwareAccelerated="false" ...> but

Java Hardware Acceleration

荒凉一梦 提交于 2019-11-28 05:02:19
I have been spending some time looking into the hardware acceleration features of Java, and I am still a bit confused as none of the sites that I found online directly and clearly answered some of the questions I have. So here are the questions I have for hardware acceleration in Java: 1) In Eclipse version 3.6.0, with the most recent Java update for Mac OS X (1.6u10 I think), is hardware acceleration enabled by default? I read somewhere that someCanvas.getGraphicsConfiguration().getBufferCapabilities().isPageFlipping() is supposed to give an indication of whether or not hardware acceleration

Android TextureView hardware acceleration with lockCanvas()

≯℡__Kan透↙ 提交于 2019-11-27 22:52:53
I'm trying to use the hardware acceleration for Android with my canvas. I used to have a SurfaceView which I did lockCanvas() on to get a canvas which I later draw on, but I changed to TextureView since I couldn't get SurfaceView to use hardware acceleration. I'm currently trying to get this canvas to use hardware acceleration. Canvas canvas = this.lockCanvas(); System.out.println(this.isHardwareAccelerated() + ", " + canvas.isHardwareAccelerated()); Gives me the output: true, false ( this is a TextureView ) Does anyone know why the canvas is not hardware accelerated, and how to make it so?

Does iPhone support hardware-accelerated AES Encryption?

佐手、 提交于 2019-11-27 21:20:45
I could find references to "hardware-accelerated AES encryption" on an iPhone/iPad. But the APIs that I could find to do the AES encryption ( CCCrypt ) don't talk about hardware-acceleration at all. Does anyone have any idea if these APIs are the ones that are hardware-accelerated or are there other ones? Yes. As of 4.3, if the message has >64 blocks (i.e. 1024 bytes), the CCCrypt function for AES will use the hardware-accelerated implementation. (This is done by ioctl ing with /dev/aes_0 , BTW.) Besides AES, SHA-1 is also hardware-accelerated when the input is > 4096 bytes. The whole point of

What is hardware cursor and how does it work?

*爱你&永不变心* 提交于 2019-11-27 11:25:33
问题 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. 回答1: Hardware Cursor means, that the GPU provides to

using ffmpeg hwaccel from C++

核能气质少年 提交于 2019-11-27 10:23:12
问题 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

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

淺唱寂寞╮ 提交于 2019-11-27 09:57:23
问题 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. 回答1: A. In an imperative programming language, statements are executed in

How to use hardware accelerated video decoding on Android?

守給你的承諾、 提交于 2019-11-27 09:09:54
问题 I need hardware-accelerated H.264 decoding for a research project, to test a self-defined protocol. As I have Search on the web, I have found a few ways to perform hardware-accelerated video decoding on Android. Use ffmpeg libstagefright (overview of libstagefright) or use libstagefright in the OS directly, like here. Use OpenMax on specific hardware platform. like here about samsung device and here about Qualcomm Snapdragon series Some people mentioned PVplayer , Some people "say"