]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: rename the AV1 profiles
authorJames Almer <jamrial@gmail.com>
Thu, 29 Mar 2018 16:02:56 +0000 (13:02 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 29 Mar 2018 16:02:56 +0000 (13:02 -0300)
Use the proper names instead of numbers

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/avcodec.h
libavcodec/libaomenc.c

index ac0915328ca9ca0133cd24c91ed53ce40bf6dd25..eb234a40d6a59b94a72e5343e9d55f8115343407 100644 (file)
@@ -2551,9 +2551,9 @@ typedef struct AVCodecContext {
 #define FF_PROFILE_HEVC_MAIN_STILL_PICTURE          3
 #define FF_PROFILE_HEVC_REXT                        4
 
-#define FF_PROFILE_AV1_0                            0
-#define FF_PROFILE_AV1_1                            1
-#define FF_PROFILE_AV1_2                            2
+#define FF_PROFILE_AV1_MAIN                         0
+#define FF_PROFILE_AV1_HIGH                         1
+#define FF_PROFILE_AV1_PROFESSIONAL                 2
 
     /**
      * level
index 94b3ddd326551f6dcca0f99026eefe1e4e4de2e1..a2a2c3994b097dc5734d9a16877164a428641423 100644 (file)
@@ -302,13 +302,13 @@ static av_cold int aom_init(AVCodecContext *avctx)
     if (avctx->profile != FF_PROFILE_UNKNOWN)
         enccfg.g_profile = avctx->profile;
     else if (avctx->pix_fmt == AV_PIX_FMT_YUV420P)
-        avctx->profile = enccfg.g_profile = FF_PROFILE_AV1_0;
+        avctx->profile = enccfg.g_profile = FF_PROFILE_AV1_MAIN;
     else {
         const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
         if (desc->comp[0].depth < 12)
-            avctx->profile = enccfg.g_profile = FF_PROFILE_AV1_1;
+            avctx->profile = enccfg.g_profile = FF_PROFILE_AV1_HIGH;
         else
-            avctx->profile = enccfg.g_profile = FF_PROFILE_AV1_2;
+            avctx->profile = enccfg.g_profile = FF_PROFILE_AV1_PROFESSIONAL;
     }