spatial_layer.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. #ifndef API_VIDEO_CODECS_SPATIAL_LAYER_H_
  11. #define API_VIDEO_CODECS_SPATIAL_LAYER_H_
  12. namespace webrtc {
  13. struct SpatialLayer {
  14. bool operator==(const SpatialLayer& other) const;
  15. bool operator!=(const SpatialLayer& other) const { return !(*this == other); }
  16. unsigned short width; // NOLINT(runtime/int)
  17. unsigned short height; // NOLINT(runtime/int)
  18. float maxFramerate; // fps.
  19. unsigned char numberOfTemporalLayers;
  20. unsigned int maxBitrate; // kilobits/sec.
  21. unsigned int targetBitrate; // kilobits/sec.
  22. unsigned int minBitrate; // kilobits/sec.
  23. unsigned int qpMax; // minimum quality
  24. bool active; // encoded and sent.
  25. };
  26. } // namespace webrtc
  27. #endif // API_VIDEO_CODECS_SPATIAL_LAYER_H_