2014-04-01 01:34:59 +00:00
|
|
|
// 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_MP2T_TS_SECTION_PAT_H_
|
|
|
|
#define MEDIA_FORMATS_MP2T_TS_SECTION_PAT_H_
|
|
|
|
|
|
|
|
#include "base/callback.h"
|
|
|
|
#include "base/compiler_specific.h"
|
|
|
|
#include "media/formats/mp2t/ts_section_psi.h"
|
|
|
|
|
2014-09-19 20:41:13 +00:00
|
|
|
namespace edash_packager {
|
2014-04-01 01:34:59 +00:00
|
|
|
namespace media {
|
|
|
|
namespace mp2t {
|
|
|
|
|
|
|
|
class TsSectionPat : public TsSectionPsi {
|
|
|
|
public:
|
|
|
|
// RegisterPmtCb::Run(int program_number, int pmt_pid);
|
|
|
|
typedef base::Callback<void(int, int)> RegisterPmtCb;
|
|
|
|
|
|
|
|
explicit TsSectionPat(const RegisterPmtCb& register_pmt_cb);
|
|
|
|
virtual ~TsSectionPat();
|
|
|
|
|
|
|
|
// TsSectionPsi implementation.
|
|
|
|
virtual bool ParsePsiSection(BitReader* bit_reader) OVERRIDE;
|
|
|
|
virtual void ResetPsiSection() OVERRIDE;
|
|
|
|
|
|
|
|
private:
|
|
|
|
RegisterPmtCb register_pmt_cb_;
|
|
|
|
|
|
|
|
// Parameters from the PAT.
|
|
|
|
int version_number_;
|
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(TsSectionPat);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mp2t
|
|
|
|
} // namespace media
|
2014-09-19 20:41:13 +00:00
|
|
|
} // namespace edash_packager
|
2014-04-01 01:34:59 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|