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
3 // found in the LICENSE file.
5 #ifndef MEDIA_FORMATS_MPEG_ADTS_STREAM_PARSER_H_
6 #define MEDIA_FORMATS_MPEG_ADTS_STREAM_PARSER_H_
8 #include "base/basictypes.h"
9 #include "media/base/media_export.h"
10 #include "media/formats/mpeg/mpeg_audio_stream_parser_base.h"
14 class MEDIA_EXPORT ADTSStreamParser
: public MPEGAudioStreamParserBase
{
17 ~ADTSStreamParser() override
;
20 // MPEGAudioStreamParserBase overrides.
21 int ParseFrameHeader(const uint8
* data
,
25 ChannelLayout
* channel_layout
,
27 bool* metadata_frame
) const override
;
29 DISALLOW_COPY_AND_ASSIGN(ADTSStreamParser
);
34 #endif // MEDIA_FORMATS_MPEG_ADTS_STREAM_PARSER_H_