Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Unified Diff: media/filters/gpu_video_decoder.h

Issue 10832087: Remove VideoDecoderConfig.frame_rate_xxx() & VideoFrame:Get/SetDuration() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address more CR comments. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/ffmpeg_video_decoder_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index 9363b53106fb0fe0f4323e74eb39630293de6c28..af6dcf8d6738f5e55f7fffb3170f276306b0a858 100644
--- a/media/filters/gpu_video_decoder.h
+++ b/media/filters/gpu_video_decoder.h
@@ -8,6 +8,7 @@
#include <deque>
#include <list>
#include <map>
+#include <utility>
#include "media/base/pipeline_status.h"
#include "media/base/demuxer_stream.h"
@@ -118,8 +119,7 @@ class MEDIA_EXPORT GpuVideoDecoder
void RecordBufferTimeData(
const BitstreamBuffer& bitstream_buffer, const Buffer& buffer);
- void GetBufferTimeData(
- int32 id, base::TimeDelta* timestamp, base::TimeDelta* duration);
+ base::TimeDelta GetBufferTimestamp(int32 id);
// Set |vda_| and |weak_vda_| on the VDA thread (in practice the render
// thread).
@@ -146,10 +146,6 @@ class MEDIA_EXPORT GpuVideoDecoder
// on information provided by VideoDecoders (i.e., aspect ratio).
gfx::Size natural_size_;
- // Frame duration specified in the video stream's configuration, or 0 if not
- // present.
- base::TimeDelta config_frame_duration_;
-
// Pointer to the demuxer stream that will feed us compressed buffers.
scoped_refptr<DemuxerStream> demuxer_stream_;
@@ -198,13 +194,8 @@ class MEDIA_EXPORT GpuVideoDecoder
// The texture target used for decoded pictures.
uint32 decoder_texture_target_;
- struct BufferTimeData {
- BufferTimeData(int32 bbid, base::TimeDelta ts, base::TimeDelta dur);
- ~BufferTimeData();
- int32 bitstream_buffer_id;
- base::TimeDelta timestamp;
- base::TimeDelta duration;
- };
+ // Maintains bitstream buffer ID to timestamp mappings.
+ typedef std::pair<int32, base::TimeDelta> BufferTimeData;
std::list<BufferTimeData> input_buffer_time_data_;
// picture_buffer_id and the frame wrapping the corresponding Picture, for
« no previous file with comments | « media/filters/ffmpeg_video_decoder_unittest.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698