svc_scalability_mode.cc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "media/base/svc_scalability_mode.h"
  5. #include "base/notreached.h"
  6. namespace media {
  7. const char* GetScalabilityModeName(SVCScalabilityMode scalability_mode) {
  8. switch (scalability_mode) {
  9. case SVCScalabilityMode::kL1T2:
  10. return "L1T2";
  11. case SVCScalabilityMode::kL1T3:
  12. return "L1T3";
  13. case SVCScalabilityMode::kL2T1:
  14. return "L2T1";
  15. case SVCScalabilityMode::kL2T2:
  16. return "L2T2";
  17. case SVCScalabilityMode::kL2T3:
  18. return "L2T3";
  19. case SVCScalabilityMode::kL3T1:
  20. return "L3T1";
  21. case SVCScalabilityMode::kL3T2:
  22. return "L3T2";
  23. case SVCScalabilityMode::kL3T3:
  24. return "L3T3";
  25. case SVCScalabilityMode::kL2T1h:
  26. return "L2T1h";
  27. case SVCScalabilityMode::kL2T2h:
  28. return "L2T2h";
  29. case SVCScalabilityMode::kL2T3h:
  30. return "L2T3h";
  31. case SVCScalabilityMode::kS2T1:
  32. return "S2T1";
  33. case SVCScalabilityMode::kS2T2:
  34. return "S2T2";
  35. case SVCScalabilityMode::kS2T3:
  36. return "S2T3";
  37. case SVCScalabilityMode::kS2T1h:
  38. return "S2T1h";
  39. case SVCScalabilityMode::kS2T2h:
  40. return "S2T2h";
  41. case SVCScalabilityMode::kS2T3h:
  42. return "S2T3h";
  43. case SVCScalabilityMode::kS3T1:
  44. return "S3T1";
  45. case SVCScalabilityMode::kS3T2:
  46. return "S3T2";
  47. case SVCScalabilityMode::kS3T3:
  48. return "S3T3";
  49. case SVCScalabilityMode::kS3T1h:
  50. return "S3T1h";
  51. case SVCScalabilityMode::kS3T2h:
  52. return "S3T2h";
  53. case SVCScalabilityMode::kS3T3h:
  54. return "S3T3h";
  55. case SVCScalabilityMode::kL2T2Key:
  56. return "L2T2_KEY";
  57. case SVCScalabilityMode::kL2T2KeyShift:
  58. return "L2T2_KEY_SHIFT";
  59. case SVCScalabilityMode::kL2T3Key:
  60. return "L2T3_KEY";
  61. case SVCScalabilityMode::kL2T3KeyShift:
  62. return "L2T3_KEY_SHIFT";
  63. case SVCScalabilityMode::kL3T2Key:
  64. return "L3T2_KEY";
  65. case SVCScalabilityMode::kL3T2KeyShift:
  66. return "L3T2_KEY_SHIFT";
  67. case SVCScalabilityMode::kL3T3Key:
  68. return "L3T3_KEY";
  69. case SVCScalabilityMode::kL3T3KeyShift:
  70. return "L3T3_KEY_SHIFT";
  71. }
  72. NOTREACHED();
  73. return "";
  74. }
  75. } // namespace media