summaryrefslogtreecommitdiff
path: root/vpxdec.c
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2012-09-19 12:30:44 -0700
committerScott LaVarnway <slavarnway@google.com>2012-09-19 12:30:44 -0700
commite278673c8eae8993eaec30d50e0dd5b25cbacd4a (patch)
tree9fb0b2057f096248d8b30c7f3f6908e4bb6f8661 /vpxdec.c
parent154f1c22349070bba204d94100cf785f14db00da (diff)
downloadlibvpx-e278673c8eae8993eaec30d50e0dd5b25cbacd4a.tar
libvpx-e278673c8eae8993eaec30d50e0dd5b25cbacd4a.tar.gz
libvpx-e278673c8eae8993eaec30d50e0dd5b25cbacd4a.tar.bz2
libvpx-e278673c8eae8993eaec30d50e0dd5b25cbacd4a.zip
Moved vp8dx_get_raw_frame() call to vp8_get_frame()
This change is necessary for the frame-based multithreading implementation. Since the postproc occurs in this call, vpxdec was modified to time around vpx_codec_get_frame() Change-Id: I389acf78b6003cd35e41becc16c893f7d3028523
Diffstat (limited to 'vpxdec.c')
-rw-r--r--vpxdec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vpxdec.c b/vpxdec.c
index 865790558..9b728bf82 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -1066,9 +1066,14 @@ int main(int argc, const char **argv_)
}
frames_corrupted += corrupted;
+ vpx_usec_timer_start(&timer);
+
if ((img = vpx_codec_get_frame(&decoder, &iter)))
++frame_out;
+ vpx_usec_timer_mark(&timer);
+ dx_time += (unsigned int)vpx_usec_timer_elapsed(&timer);
+
if (progress)
show_progress(frame_in, frame_out, dx_time);