I just found a code which uses libavcodec to decode videos and display them on screen
Canvas canvas = surfaceHolder.lockCanvas();
canvas.drawBitmap(mBitmap, mDrawLeft, mDrawTop,
prFramePaint);
surfaceHolder.unlockCanvasAndPost(canvas);
anyway it looks like a ton of useless garbage, it first decodes then draws a bitmap, i would like to somehow transfer video data to gpu directly so i can just draw a video frame in a simple poly (made of 4 verts), however it may be undoable, anyone has any more information about it?
↧