OLD | NEW |
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_MPEG1_AUDIO_STREAM_PARSER_H_ | 5 #ifndef MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_ |
6 #define MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_ | 6 #define MEDIA_FORMATS_MPEG_MPEG1_AUDIO_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" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 ~MPEG1AudioStreamParser() override; | 72 ~MPEG1AudioStreamParser() override; |
73 | 73 |
74 private: | 74 private: |
75 // MPEGAudioStreamParserBase overrides. | 75 // MPEGAudioStreamParserBase overrides. |
76 int ParseFrameHeader(const uint8_t* data, | 76 int ParseFrameHeader(const uint8_t* data, |
77 int size, | 77 int size, |
78 int* frame_size, | 78 int* frame_size, |
79 int* sample_rate, | 79 int* sample_rate, |
80 ChannelLayout* channel_layout, | 80 ChannelLayout* channel_layout, |
81 int* sample_count, | 81 int* sample_count, |
82 bool* metadata_frame) const override; | 82 bool* metadata_frame, |
| 83 std::vector<uint8_t>* extra_data) const override; |
83 | 84 |
84 DISALLOW_COPY_AND_ASSIGN(MPEG1AudioStreamParser); | 85 DISALLOW_COPY_AND_ASSIGN(MPEG1AudioStreamParser); |
85 }; | 86 }; |
86 | 87 |
87 } // namespace media | 88 } // namespace media |
88 | 89 |
89 #endif // MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_ | 90 #endif // MEDIA_FORMATS_MPEG_MPEG1_AUDIO_STREAM_PARSER_H_ |
OLD | NEW |