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

Side by Side Diff: media/filters/frame_processor.h

Issue 276573002: Add gapless playback support for AAC playback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix msvc error. Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/frame_processor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_FRAME_PROCESSOR_H_ 5 #ifndef MEDIA_FILTERS_FRAME_PROCESSOR_H_
6 #define MEDIA_FILTERS_FRAME_PROCESSOR_H_ 6 #define MEDIA_FILTERS_FRAME_PROCESSOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 17 matching lines...) Expand all
28 const StreamParser::BufferQueue& video_buffers, 28 const StreamParser::BufferQueue& video_buffers,
29 const StreamParser::TextBufferQueueMap& text_map, 29 const StreamParser::TextBufferQueueMap& text_map,
30 base::TimeDelta append_window_start, 30 base::TimeDelta append_window_start,
31 base::TimeDelta append_window_end, 31 base::TimeDelta append_window_end,
32 bool* new_media_segment, 32 bool* new_media_segment,
33 base::TimeDelta* timestamp_offset) OVERRIDE; 33 base::TimeDelta* timestamp_offset) OVERRIDE;
34 34
35 private: 35 private:
36 // Helper that processes one frame with the coded frame processing algorithm. 36 // Helper that processes one frame with the coded frame processing algorithm.
37 // Returns false on error or true on success. 37 // Returns false on error or true on success.
38 bool ProcessFrame(scoped_refptr<StreamParserBuffer> frame, 38 bool ProcessFrame(const scoped_refptr<StreamParserBuffer>& frame,
39 base::TimeDelta append_window_start, 39 base::TimeDelta append_window_start,
40 base::TimeDelta append_window_end, 40 base::TimeDelta append_window_end,
41 base::TimeDelta* timestamp_offset, 41 base::TimeDelta* timestamp_offset,
42 bool* new_media_segment); 42 bool* new_media_segment);
43 43
44 // Sets the need random access point flag on all track buffers to true. 44 // Sets the need random access point flag on all track buffers to true.
45 void SetAllTrackBuffersNeedRandomAccessPoint(); 45 void SetAllTrackBuffersNeedRandomAccessPoint();
46 46
47 // Tracks the MSE coded frame processing variable of same name. It stores the 47 // Tracks the MSE coded frame processing variable of same name. It stores the
48 // highest coded frame end timestamp across all coded frames in the current 48 // highest coded frame end timestamp across all coded frames in the current
49 // coded frame group. It is set to 0 when the SourceBuffer object is created 49 // coded frame group. It is set to 0 when the SourceBuffer object is created
50 // and gets updated by ProcessFrames(). 50 // and gets updated by ProcessFrames().
51 base::TimeDelta group_end_timestamp_; 51 base::TimeDelta group_end_timestamp_;
52 52
53 UpdateDurationCB update_duration_cb_; 53 UpdateDurationCB update_duration_cb_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(FrameProcessor); 55 DISALLOW_COPY_AND_ASSIGN(FrameProcessor);
56 }; 56 };
57 57
58 } // namespace media 58 } // namespace media
59 59
60 #endif // MEDIA_FILTERS_FRAME_PROCESSOR_H_ 60 #endif // MEDIA_FILTERS_FRAME_PROCESSOR_H_
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/frame_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698