opengl - GPU memory allocation for video -


is possible allocate memory on gpu without cuda?

i'm adding more details... need video frame decoded vlc , have compositing functions on video; i'm doing using new sdl rendering capabilities. works fine until have send decoded data sdl texture... part of code handled standard malloc slow video operations.

right i'm not sure using gpu video me

let's clear: trying accomplish real time video processing? since latest update changed problem considerably, i'm adding answer.

the "slowness" experiencing due several reasons. in order "real-time" effect (in perceptual sense), must able process frame , display withing 33ms (approximately, 30fps video). means must decode frame, run compositing functions (as call) on it, , display on screen within time frame.

if compositing functions cpu intensive, might consider writing gpu program speed task. the first thing should is determine bottleneck of application is exactly. strip application momentarily let decode frames , display them on screen (do not execute compositing functions), see how goes. if slow, decoding process using cpu/ram resources (maybe bug on side?).

i have used ffmpeg , sdl similar project once , happy result. this tutorial shows basic video player using both libraries. basically, opens video file, decodes frames , renders them on surface displaying.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -