profiles.c 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /*
  2. * This file is part of FFmpeg.
  3. *
  4. * FFmpeg is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * FFmpeg is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with FFmpeg; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #include "config.h"
  19. #include "avcodec.h"
  20. #include "profiles.h"
  21. #if !CONFIG_SMALL
  22. const AVProfile ff_aac_profiles[] = {
  23. { FF_PROFILE_AAC_LOW, "LC" },
  24. { FF_PROFILE_AAC_HE, "HE-AAC" },
  25. { FF_PROFILE_AAC_HE_V2, "HE-AACv2" },
  26. { FF_PROFILE_AAC_LD, "LD" },
  27. { FF_PROFILE_AAC_ELD, "ELD" },
  28. { FF_PROFILE_AAC_MAIN, "Main" },
  29. { FF_PROFILE_AAC_SSR, "SSR" },
  30. { FF_PROFILE_AAC_LTP, "LTP" },
  31. { FF_PROFILE_UNKNOWN },
  32. };
  33. const AVProfile ff_dca_profiles[] = {
  34. { FF_PROFILE_DTS, "DTS" },
  35. { FF_PROFILE_DTS_ES, "DTS-ES" },
  36. { FF_PROFILE_DTS_96_24, "DTS 96/24" },
  37. { FF_PROFILE_DTS_HD_HRA, "DTS-HD HRA" },
  38. { FF_PROFILE_DTS_HD_MA, "DTS-HD MA" },
  39. { FF_PROFILE_DTS_EXPRESS, "DTS Express" },
  40. { FF_PROFILE_UNKNOWN },
  41. };
  42. const AVProfile ff_dnxhd_profiles[] = {
  43. { FF_PROFILE_DNXHD, "DNXHD"},
  44. { FF_PROFILE_DNXHR_LB, "DNXHR LB"},
  45. { FF_PROFILE_DNXHR_SQ, "DNXHR SQ"},
  46. { FF_PROFILE_DNXHR_HQ, "DNXHR HQ" },
  47. { FF_PROFILE_DNXHR_HQX, "DNXHR HQX"},
  48. { FF_PROFILE_DNXHR_444, "DNXHR 444"},
  49. { FF_PROFILE_UNKNOWN },
  50. };
  51. const AVProfile ff_h264_profiles[] = {
  52. { FF_PROFILE_H264_BASELINE, "Baseline" },
  53. { FF_PROFILE_H264_CONSTRAINED_BASELINE, "Constrained Baseline" },
  54. { FF_PROFILE_H264_MAIN, "Main" },
  55. { FF_PROFILE_H264_EXTENDED, "Extended" },
  56. { FF_PROFILE_H264_HIGH, "High" },
  57. { FF_PROFILE_H264_HIGH_10, "High 10" },
  58. { FF_PROFILE_H264_HIGH_10_INTRA, "High 10 Intra" },
  59. { FF_PROFILE_H264_HIGH_422, "High 4:2:2" },
  60. { FF_PROFILE_H264_HIGH_422_INTRA, "High 4:2:2 Intra" },
  61. { FF_PROFILE_H264_HIGH_444, "High 4:4:4" },
  62. { FF_PROFILE_H264_HIGH_444_PREDICTIVE, "High 4:4:4 Predictive" },
  63. { FF_PROFILE_H264_HIGH_444_INTRA, "High 4:4:4 Intra" },
  64. { FF_PROFILE_H264_CAVLC_444, "CAVLC 4:4:4" },
  65. { FF_PROFILE_H264_MULTIVIEW_HIGH, "Multiview High" },
  66. { FF_PROFILE_H264_STEREO_HIGH, "Stereo High" },
  67. { FF_PROFILE_UNKNOWN },
  68. };
  69. const AVProfile ff_hevc_profiles[] = {
  70. { FF_PROFILE_HEVC_MAIN, "Main" },
  71. { FF_PROFILE_HEVC_MAIN_10, "Main 10" },
  72. { FF_PROFILE_HEVC_MAIN_STILL_PICTURE, "Main Still Picture" },
  73. { FF_PROFILE_HEVC_REXT, "Rext" },
  74. { FF_PROFILE_UNKNOWN },
  75. };
  76. const AVProfile ff_jpeg2000_profiles[] = {
  77. { FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0, "JPEG 2000 codestream restriction 0" },
  78. { FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1, "JPEG 2000 codestream restriction 1" },
  79. { FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION, "JPEG 2000 no codestream restrictions" },
  80. { FF_PROFILE_JPEG2000_DCINEMA_2K, "JPEG 2000 digital cinema 2K" },
  81. { FF_PROFILE_JPEG2000_DCINEMA_4K, "JPEG 2000 digital cinema 4K" },
  82. { FF_PROFILE_UNKNOWN },
  83. };
  84. const AVProfile ff_mpeg2_video_profiles[] = {
  85. { FF_PROFILE_MPEG2_422, "4:2:2" },
  86. { FF_PROFILE_MPEG2_HIGH, "High" },
  87. { FF_PROFILE_MPEG2_SS, "Spatially Scalable" },
  88. { FF_PROFILE_MPEG2_SNR_SCALABLE, "SNR Scalable" },
  89. { FF_PROFILE_MPEG2_MAIN, "Main" },
  90. { FF_PROFILE_MPEG2_SIMPLE, "Simple" },
  91. { FF_PROFILE_RESERVED, "Reserved" },
  92. { FF_PROFILE_RESERVED, "Reserved" },
  93. { FF_PROFILE_UNKNOWN },
  94. };
  95. const AVProfile ff_mpeg4_video_profiles[] = {
  96. { FF_PROFILE_MPEG4_SIMPLE, "Simple Profile" },
  97. { FF_PROFILE_MPEG4_SIMPLE_SCALABLE, "Simple Scalable Profile" },
  98. { FF_PROFILE_MPEG4_CORE, "Core Profile" },
  99. { FF_PROFILE_MPEG4_MAIN, "Main Profile" },
  100. { FF_PROFILE_MPEG4_N_BIT, "N-bit Profile" },
  101. { FF_PROFILE_MPEG4_SCALABLE_TEXTURE, "Scalable Texture Profile" },
  102. { FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION, "Simple Face Animation Profile" },
  103. { FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE, "Basic Animated Texture Profile" },
  104. { FF_PROFILE_MPEG4_HYBRID, "Hybrid Profile" },
  105. { FF_PROFILE_MPEG4_ADVANCED_REAL_TIME, "Advanced Real Time Simple Profile" },
  106. { FF_PROFILE_MPEG4_CORE_SCALABLE, "Code Scalable Profile" },
  107. { FF_PROFILE_MPEG4_ADVANCED_CODING, "Advanced Coding Profile" },
  108. { FF_PROFILE_MPEG4_ADVANCED_CORE, "Advanced Core Profile" },
  109. { FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE, "Advanced Scalable Texture Profile" },
  110. { FF_PROFILE_MPEG4_SIMPLE_STUDIO, "Simple Studio Profile" },
  111. { FF_PROFILE_MPEG4_ADVANCED_SIMPLE, "Advanced Simple Profile" },
  112. { FF_PROFILE_UNKNOWN },
  113. };
  114. const AVProfile ff_vc1_profiles[] = {
  115. { FF_PROFILE_VC1_SIMPLE, "Simple" },
  116. { FF_PROFILE_VC1_MAIN, "Main" },
  117. { FF_PROFILE_VC1_COMPLEX, "Complex" },
  118. { FF_PROFILE_VC1_ADVANCED, "Advanced" },
  119. { FF_PROFILE_UNKNOWN },
  120. };
  121. const AVProfile ff_vp9_profiles[] = {
  122. { FF_PROFILE_VP9_0, "Profile 0" },
  123. { FF_PROFILE_VP9_1, "Profile 1" },
  124. { FF_PROFILE_VP9_2, "Profile 2" },
  125. { FF_PROFILE_VP9_3, "Profile 3" },
  126. { FF_PROFILE_UNKNOWN },
  127. };
  128. const AVProfile ff_av1_profiles[] = {
  129. { FF_PROFILE_AV1_MAIN, "Main" },
  130. { FF_PROFILE_AV1_HIGH, "High" },
  131. { FF_PROFILE_AV1_PROFESSIONAL, "Professional" },
  132. { FF_PROFILE_UNKNOWN },
  133. };
  134. const AVProfile ff_sbc_profiles[] = {
  135. { FF_PROFILE_SBC_MSBC, "mSBC" },
  136. { FF_PROFILE_UNKNOWN },
  137. };
  138. #endif /* !CONFIG_SMALL */