Shaka Packager SDK
packager
media
formats
mp2t
continuity_counter.cc
1
// Copyright 2016 Google Inc. All rights reserved.
2
//
3
// Use of this source code is governed by a BSD-style
4
// license that can be found in the LICENSE file or at
5
// https://developers.google.com/open-source/licenses/bsd
6
7
#include "packager/media/formats/mp2t/continuity_counter.h"
8
9
namespace
shaka
{
10
namespace
media {
11
namespace
mp2t {
12
13
ContinuityCounter::ContinuityCounter() {}
14
ContinuityCounter::~ContinuityCounter() {}
15
16
int
ContinuityCounter::GetNext
() {
17
int
ret = counter_;
18
++counter_;
19
counter_ %= 16;
20
return
ret;
21
}
22
23
}
// namespace mp2t
24
}
// namespace media
25
}
// namespace shaka
shaka
All the methods that are virtual are virtual for mocking.
Definition:
gflags_hex_bytes.cc:11
shaka::media::mp2t::ContinuityCounter::GetNext
int GetNext()
Definition:
continuity_counter.cc:16
Generated on Tue Jun 22 2021 00:16:04 for Shaka Packager SDK by
1.8.17