libflute
flute_types.h
Go to the documentation of this file.
1 // libflute - FLUTE/ALC library
2 //
3 // Copyright (C) 2021 Klaus Kühnhammer (Österreichische Rundfunksender GmbH & Co KG)
4 //
5 // Licensed under the License terms and conditions for use, reproduction, and
6 // distribution of 5G-MAG software (the “License”). You may not use this file
7 // except in compliance with the License. You may obtain a copy of the License at
8 // https://www.5g-mag.com/reference-tools. Unless required by applicable law or
9 // agreed to in writing, software distributed under the License is distributed on
10 // an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 // or implied.
12 //
13 // See the License for the specific language governing permissions and limitations
14 // under the License.
15 //
16 #pragma once
17 
30 namespace LibFlute {
34  enum class ContentEncoding {
35  NONE,
36  ZLIB,
37  DEFLATE,
38  GZIP
39  };
40 
44  enum class FecScheme {
46  };
47 
51  struct FecOti {
53  uint32_t instance_id;
54  uint64_t transfer_length;
58 
59  bool operator==(const FecOti &other) const {
60  return encoding_id == other.encoding_id && transfer_length == other.transfer_length &&
63  };
64  bool operator!=(const FecOti &other) const { return !(*this == other); };
65  };
66 };
FecScheme
Error correction schemes.
Definition: flute_types.h:44
ContentEncoding
Content Encodings.
Definition: flute_types.h:34
OTI values struct.
Definition: flute_types.h:51
uint64_t transfer_length
Definition: flute_types.h:54
uint32_t instance_id
Definition: flute_types.h:53
FecScheme encoding_id
Definition: flute_types.h:52
bool operator==(const FecOti &other) const
Definition: flute_types.h:59
uint32_t max_source_block_length
Definition: flute_types.h:56
bool operator!=(const FecOti &other) const
Definition: flute_types.h:64
uint32_t max_number_of_encoding_symbols
Definition: flute_types.h:57
uint32_t encoding_symbol_length
Definition: flute_types.h:55