diff options
author | Ronald S. Bultje | 2011-05-02 09:55:52 -0400 |
---|---|---|
committer | Anton Khirnov | 2011-05-02 17:03:31 +0200 |
commit | 4773d904211ec07688418eb9bb78df6467c1ca2f (patch) | |
tree | 2f3475af87cdeadea6bd9e1a242ffa91f0d6a4c9 /libavcodec/vp8.h | |
parent | 975a1447f76e8d30fc01e6ea5466c84faf3d76e4 (diff) |
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 <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vp8.h')
-rw-r--r-- | libavcodec/vp8.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |