xref: /aosp_15_r20/external/webrtc/api/video_codecs/spatial_layer.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1 /*
2  *  Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef API_VIDEO_CODECS_SPATIAL_LAYER_H_
12 #define API_VIDEO_CODECS_SPATIAL_LAYER_H_
13 
14 namespace webrtc {
15 
16 struct SpatialLayer {
17   bool operator==(const SpatialLayer& other) const;
18   bool operator!=(const SpatialLayer& other) const { return !(*this == other); }
19 
20   unsigned short width;   // NOLINT(runtime/int)
21   unsigned short height;  // NOLINT(runtime/int)
22   float maxFramerate;     // fps.
23   unsigned char numberOfTemporalLayers;
24   unsigned int maxBitrate;     // kilobits/sec.
25   unsigned int targetBitrate;  // kilobits/sec.
26   unsigned int minBitrate;     // kilobits/sec.
27   unsigned int qpMax;          // minimum quality
28   bool active;                 // encoded and sent.
29 };
30 
31 }  // namespace webrtc
32 #endif  // API_VIDEO_CODECS_SPATIAL_LAYER_H_
33