From 4773d904211ec07688418eb9bb78df6467c1ca2f Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 2 May 2011 09:55:52 -0400 Subject: vp8: frame-multithreading. Tested on a Mac Pro, 2 CPUs, 2 cores each, OSX 10.6.6: time ./ffmpeg -v 0 -vsync 0 -threads [1234] -i \ ~/Downloads/sintel_trailer_1080p_vp8_vorbis.webm \ -f null -vcodec rawvideo -an - 1: 0m14.630s (89.9 fps) 2: 0m8.056s (163.2 fps) 3: 0m5.882s (223.6 fps) 4: 0m4.952s (265.6 fps) time ./ffmpeg -v 0 -vsync 0 -threads [1234] -i \ ~/Downloads/Elephants_Dream-720p-Stereo.webm \ -f null -vcodec rawvideo -an - 1: 1m12.962s (215.1 fps) 2: 0m44.682s (351.2 fps) 3: 0m31.183s (503.2 fps) 4: 0m25.284s (620.6 fps) Signed-off-by: Anton Khirnov --- libavcodec/vp8.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/vp8.h') diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h index e4a6ef134a..3a6eee52d4 100644 --- a/libavcodec/vp8.h +++ b/libavcodec/vp8.h @@ -86,6 +86,7 @@ typedef struct { typedef struct { AVCodecContext *avctx; AVFrame *framep[4]; + AVFrame *next_framep[4]; uint8_t *edge_emu_buffer; uint16_t mb_width; /* number of horizontal MB */ @@ -235,7 +236,7 @@ typedef struct { VP8DSPContext vp8dsp; H264PredContext hpc; vp8_mc_func put_pixels_tab[3][3][3]; - AVFrame frames[4]; + AVFrame frames[5]; } VP8Context; #endif -- cgit v1.2.3