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

Side by Side Diff: media/formats/mpeg/adts_stream_parser.h

Issue 2378443002: Fix MSE ADTS parsing on Android. (Closed)
Patch Set: Address comments. Created 4 years, 2 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
« no previous file with comments | « media/formats/mpeg/adts_header_parser.cc ('k') | media/formats/mpeg/adts_stream_parser.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_FORMATS_MPEG_ADTS_STREAM_PARSER_H_ 5 #ifndef MEDIA_FORMATS_MPEG_ADTS_STREAM_PARSER_H_
6 #define MEDIA_FORMATS_MPEG_ADTS_STREAM_PARSER_H_ 6 #define MEDIA_FORMATS_MPEG_ADTS_STREAM_PARSER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "media/base/media_export.h" 11 #include "media/base/media_export.h"
12 #include "media/formats/mpeg/mpeg_audio_stream_parser_base.h" 12 #include "media/formats/mpeg/mpeg_audio_stream_parser_base.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 class MEDIA_EXPORT ADTSStreamParser : public MPEGAudioStreamParserBase { 16 class MEDIA_EXPORT ADTSStreamParser : public MPEGAudioStreamParserBase {
17 public: 17 public:
18 ADTSStreamParser(); 18 ADTSStreamParser();
19 ~ADTSStreamParser() override; 19 ~ADTSStreamParser() override;
20 20
21 private:
22 // MPEGAudioStreamParserBase overrides. 21 // MPEGAudioStreamParserBase overrides.
23 int ParseFrameHeader(const uint8_t* data, 22 int ParseFrameHeader(const uint8_t* data,
24 int size, 23 int size,
25 int* frame_size, 24 int* frame_size,
26 int* sample_rate, 25 int* sample_rate,
27 ChannelLayout* channel_layout, 26 ChannelLayout* channel_layout,
28 int* sample_count, 27 int* sample_count,
29 bool* metadata_frame) const override; 28 bool* metadata_frame,
29 std::vector<uint8_t>* extra_data) const override;
30 30
31 private:
31 DISALLOW_COPY_AND_ASSIGN(ADTSStreamParser); 32 DISALLOW_COPY_AND_ASSIGN(ADTSStreamParser);
32 }; 33 };
33 34
34 } // namespace media 35 } // namespace media
35 36
36 #endif // MEDIA_FORMATS_MPEG_ADTS_STREAM_PARSER_H_ 37 #endif // MEDIA_FORMATS_MPEG_ADTS_STREAM_PARSER_H_
OLDNEW
« no previous file with comments | « media/formats/mpeg/adts_header_parser.cc ('k') | media/formats/mpeg/adts_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698