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

Side by Side Diff: media/formats/mp2t/es_parser_adts.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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
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_FORMATS_MP2T_ES_PARSER_ADTS_H_ 5 #ifndef MEDIA_FORMATS_MP2T_ES_PARSER_ADTS_H_
6 #define MEDIA_FORMATS_MP2T_ES_PARSER_ADTS_H_ 6 #define MEDIA_FORMATS_MP2T_ES_PARSER_ADTS_H_
7 7
8 #include <list> 8 #include <list>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // |adts_frame| structure is filled up accordingly. 51 // |adts_frame| structure is filled up accordingly.
52 // Returns false otherwise (no ADTS syncword found or partial ADTS frame). 52 // Returns false otherwise (no ADTS syncword found or partial ADTS frame).
53 bool LookForAdtsFrame(AdtsFrame* adts_frame); 53 bool LookForAdtsFrame(AdtsFrame* adts_frame);
54 54
55 // Skip an ADTS frame in the ES queue. 55 // Skip an ADTS frame in the ES queue.
56 void SkipAdtsFrame(const AdtsFrame& adts_frame); 56 void SkipAdtsFrame(const AdtsFrame& adts_frame);
57 57
58 // Signal any audio configuration change (if any). 58 // Signal any audio configuration change (if any).
59 // Return false if the current audio config is not 59 // Return false if the current audio config is not
60 // a supported ADTS audio config. 60 // a supported ADTS audio config.
61 bool UpdateAudioConfiguration(const uint8* adts_header); 61 bool UpdateAudioConfiguration(const uint8_t* adts_header);
62 62
63 // Callbacks: 63 // Callbacks:
64 // - to signal a new audio configuration, 64 // - to signal a new audio configuration,
65 // - to send ES buffers. 65 // - to send ES buffers.
66 NewAudioConfigCB new_audio_config_cb_; 66 NewAudioConfigCB new_audio_config_cb_;
67 EmitBufferCB emit_buffer_cb_; 67 EmitBufferCB emit_buffer_cb_;
68 68
69 // True when AAC SBR extension is signalled in the mimetype 69 // True when AAC SBR extension is signalled in the mimetype
70 // (mp4a.40.5 in the codecs parameter). 70 // (mp4a.40.5 in the codecs parameter).
71 bool sbr_in_mimetype_; 71 bool sbr_in_mimetype_;
72 72
73 // Interpolated PTS for frames that don't have one. 73 // Interpolated PTS for frames that don't have one.
74 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_; 74 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_;
75 75
76 // Last audio config. 76 // Last audio config.
77 AudioDecoderConfig last_audio_decoder_config_; 77 AudioDecoderConfig last_audio_decoder_config_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(EsParserAdts); 79 DISALLOW_COPY_AND_ASSIGN(EsParserAdts);
80 }; 80 };
81 81
82 } // namespace mp2t 82 } // namespace mp2t
83 } // namespace media 83 } // namespace media
84 84
85 #endif 85 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698