Browse code

avcodec/nvenc: Rename nvenc_h265 to nvenc_hevc

For the sake of compatibility, and because pretty much everything else in the
codebase calls it HEVC.

Signed-off-by: Philip Langdale <philipl@overt.org>

Philip Langdale authored on 2015/06/07 03:00:45
Showing 4 changed files
... ...
@@ -8,7 +8,7 @@ version <next>:
8 8
 - showwavespic filter
9 9
 - DTS decoding through libdcadec
10 10
 - Drop support for nvenc API before 5.0
11
-- nvenc H265 encoder
11
+- nvenc HEVC encoder
12 12
 - Detelecine filter
13 13
 - Intel QSV-accelerated H.264 encoding
14 14
 - MMAL-accelerated H.264 decoding
... ...
@@ -2485,7 +2485,7 @@ libutvideo_decoder_deps="libutvideo"
2485 2485
 libutvideo_encoder_deps="libutvideo"
2486 2486
 libzvbi_teletext_decoder_deps="libzvbi"
2487 2487
 nvenc_encoder_deps="nvenc"
2488
-nvenc_h265_encoder_deps="nvenc"
2488
+nvenc_hevc_encoder_deps="nvenc"
2489 2489
 
2490 2490
 # demuxers / muxers
2491 2491
 ac3_demuxer_select="ac3_parser"
... ...
@@ -236,7 +236,7 @@ void avcodec_register_all(void)
236 236
     REGISTER_DECODER(MXPEG,             mxpeg);
237 237
     REGISTER_DECODER(NUV,               nuv);
238 238
     REGISTER_ENCODER(NVENC,             nvenc);
239
-    REGISTER_ENCODER(NVENC_H265,        nvenc_h265);
239
+    REGISTER_ENCODER(NVENC_HEVC,        nvenc_hevc);
240 240
     REGISTER_DECODER(PAF_VIDEO,         paf_video);
241 241
     REGISTER_ENCDEC (PAM,               pam);
242 242
     REGISTER_ENCDEC (PBM,               pbm);
... ...
@@ -192,7 +192,7 @@ static const NvencValuePair nvenc_h264_level_pairs[] = {
192 192
     { NULL }
193 193
 };
194 194
 
195
-static const NvencValuePair nvenc_h265_level_pairs[] = {
195
+static const NvencValuePair nvenc_hevc_level_pairs[] = {
196 196
     { "auto", NV_ENC_LEVEL_AUTOSELECT },
197 197
     { "1"   , NV_ENC_LEVEL_HEVC_1     },
198 198
     { "1.0" , NV_ENC_LEVEL_HEVC_1     },
... ...
@@ -870,7 +870,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
870 870
         avctx->profile = FF_PROFILE_HEVC_MAIN;
871 871
 
872 872
         if (ctx->level) {
873
-            res = input_string_to_uint32(avctx, nvenc_h265_level_pairs, ctx->level, &ctx->encode_config.encodeCodecConfig.hevcConfig.level);
873
+            res = input_string_to_uint32(avctx, nvenc_hevc_level_pairs, ctx->level, &ctx->encode_config.encodeCodecConfig.hevcConfig.level);
874 874
 
875 875
             if (res) {
876 876
                 av_log(avctx, AV_LOG_FATAL, "Level \"%s\" is unknown! Supported levels: auto, 1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2\n", ctx->level);
... ...
@@ -1427,17 +1427,17 @@ AVCodec ff_nvenc_encoder = {
1427 1427
 };
1428 1428
 #endif
1429 1429
 
1430
-#if CONFIG_NVENC_H265_ENCODER
1431
-static const AVClass nvenc_h265_class = {
1432
-    .class_name = "nvenc_h265",
1430
+#if CONFIG_NVENC_HEVC_ENCODER
1431
+static const AVClass nvenc_hevc_class = {
1432
+    .class_name = "nvenc_hevc",
1433 1433
     .item_name = av_default_item_name,
1434 1434
     .option = options,
1435 1435
     .version = LIBAVUTIL_VERSION_INT,
1436 1436
 };
1437 1437
 
1438
-AVCodec ff_nvenc_h265_encoder = {
1439
-    .name = "nvenc_h265",
1440
-    .long_name = NULL_IF_CONFIG_SMALL("Nvidia NVENC h265 encoder"),
1438
+AVCodec ff_nvenc_hevc_encoder = {
1439
+    .name = "nvenc_hevc",
1440
+    .long_name = NULL_IF_CONFIG_SMALL("Nvidia NVENC hevc encoder"),
1441 1441
     .type = AVMEDIA_TYPE_VIDEO,
1442 1442
     .id = AV_CODEC_ID_H265,
1443 1443
     .priv_data_size = sizeof(NvencContext),
... ...
@@ -1445,7 +1445,7 @@ AVCodec ff_nvenc_h265_encoder = {
1445 1445
     .encode2 = nvenc_encode_frame,
1446 1446
     .close = nvenc_encode_close,
1447 1447
     .capabilities = CODEC_CAP_DELAY,
1448
-    .priv_class = &nvenc_h265_class,
1448
+    .priv_class = &nvenc_hevc_class,
1449 1449
     .defaults = nvenc_defaults,
1450 1450
     .pix_fmts = pix_fmts_nvenc,
1451 1451
 };