root/media/formats/mpeg/mp3_stream_parser.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_FORMATS_MPEG_MP3_STREAM_PARSER_H_
#define MEDIA_FORMATS_MPEG_MP3_STREAM_PARSER_H_

#include "base/basictypes.h"
#include "media/base/media_export.h"
#include "media/formats/mpeg/mpeg_audio_stream_parser_base.h"

namespace media {

class MEDIA_EXPORT MP3StreamParser : public MPEGAudioStreamParserBase {
 public:
  MP3StreamParser();
  virtual ~MP3StreamParser();

 private:
  // MPEGAudioStreamParserBase overrides.
  virtual int ParseFrameHeader(const uint8* data,
                               int size,
                               int* frame_size,
                               int* sample_rate,
                               ChannelLayout* channel_layout,
                               int* sample_count) const OVERRIDE;

  DISALLOW_COPY_AND_ASSIGN(MP3StreamParser);
};

}  // namespace media

#endif  // MEDIA_FORMATS_MPEG_MP3_STREAM_PARSER_H_

/* [<][>][^][v][top][bottom][index][help] */