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

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

Issue 1498003003: Remove kint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: INT64_MAX Created 5 years 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
« no previous file with comments | « media/cast/sender/frame_sender.cc ('k') | media/filters/chunk_demuxer.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHUNK_DEMUXER_H_ 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_
6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/macros.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "media/base/byte_queue.h" 16 #include "media/base/byte_queue.h"
17 #include "media/base/demuxer.h" 17 #include "media/base/demuxer.h"
18 #include "media/base/demuxer_stream.h" 18 #include "media/base/demuxer_stream.h"
19 #include "media/base/ranges.h" 19 #include "media/base/ranges.h"
20 #include "media/base/stream_parser.h" 20 #include "media/base/stream_parser.h"
21 #include "media/filters/source_buffer_stream.h" 21 #include "media/filters/source_buffer_stream.h"
22 22
23 namespace media { 23 namespace media {
24 24
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Gets the currently buffered ranges for the specified ID. 227 // Gets the currently buffered ranges for the specified ID.
228 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; 228 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const;
229 229
230 // Appends media data to the source buffer associated with |id|, applying 230 // Appends media data to the source buffer associated with |id|, applying
231 // and possibly updating |*timestamp_offset| during coded frame processing. 231 // and possibly updating |*timestamp_offset| during coded frame processing.
232 // |append_window_start| and |append_window_end| correspond to the MSE spec's 232 // |append_window_start| and |append_window_end| correspond to the MSE spec's
233 // similarly named source buffer attributes that are used in coded frame 233 // similarly named source buffer attributes that are used in coded frame
234 // processing. 234 // processing.
235 // |init_segment_received_cb| is run for each newly successfully parsed 235 // |init_segment_received_cb| is run for each newly successfully parsed
236 // initialization segment. 236 // initialization segment.
237 void AppendData(const std::string& id, const uint8* data, size_t length, 237 void AppendData(const std::string& id,
238 const uint8_t* data,
239 size_t length,
238 base::TimeDelta append_window_start, 240 base::TimeDelta append_window_start,
239 base::TimeDelta append_window_end, 241 base::TimeDelta append_window_end,
240 base::TimeDelta* timestamp_offset, 242 base::TimeDelta* timestamp_offset,
241 const InitSegmentReceivedCB& init_segment_received_cb); 243 const InitSegmentReceivedCB& init_segment_received_cb);
242 244
243 // Aborts parsing the current segment and reset the parser to a state where 245 // Aborts parsing the current segment and reset the parser to a state where
244 // it can accept a new segment. 246 // it can accept a new segment.
245 // Some pending frames can be emitted during that process. These frames are 247 // Some pending frames can be emitted during that process. These frames are
246 // applied |timestamp_offset|. 248 // applied |timestamp_offset|.
247 void ResetParserState(const std::string& id, 249 void ResetParserState(const std::string& id,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 419
418 // Indicates that splice frame generation is enabled. 420 // Indicates that splice frame generation is enabled.
419 const bool splice_frames_enabled_; 421 const bool splice_frames_enabled_;
420 422
421 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 423 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
422 }; 424 };
423 425
424 } // namespace media 426 } // namespace media
425 427
426 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 428 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/cast/sender/frame_sender.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698