Shaka Packager SDK
packager
media
formats
mp2t
continuity_counter.cc
1
// Copyright 2016 Google LLC. 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::media::mp2t::ContinuityCounter::GetNext
int GetNext()
Definition:
continuity_counter.cc:16
shaka
All the methods that are virtual are virtual for mocking.
Definition:
crypto_flags.cc:66
Generated on Mon Nov 11 2024 19:07:10 for Shaka Packager SDK by
1.9.1