diff options
author | Philip Langdale <philipl@overt.org> | 2015-06-06 11:00:45 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2015-06-06 13:14:11 -0700 |
commit | e79c40fe72475a37db44849c1e1399b593dcaffd (patch) | |
tree | 94ed2164037181355d56349210c99fa74e3f5550 /libavcodec/nvenc.c | |
parent | c10e6bcb43ad5fca3f60b26ca035cfbfac42aaa4 (diff) | |
download | ffmpeg-e79c40fe72475a37db44849c1e1399b593dcaffd.tar.gz |
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>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 0a418a7a34..246f6a178b 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -192,7 +192,7 @@ static const NvencValuePair nvenc_h264_level_pairs[] = { { NULL } }; -static const NvencValuePair nvenc_h265_level_pairs[] = { +static const NvencValuePair nvenc_hevc_level_pairs[] = { { "auto", NV_ENC_LEVEL_AUTOSELECT }, { "1" , NV_ENC_LEVEL_HEVC_1 }, { "1.0" , NV_ENC_LEVEL_HEVC_1 }, @@ -870,7 +870,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx) avctx->profile = FF_PROFILE_HEVC_MAIN; if (ctx->level) { - res = input_string_to_uint32(avctx, nvenc_h265_level_pairs, ctx->level, &ctx->encode_config.encodeCodecConfig.hevcConfig.level); + res = input_string_to_uint32(avctx, nvenc_hevc_level_pairs, ctx->level, &ctx->encode_config.encodeCodecConfig.hevcConfig.level); if (res) { 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 = { }; #endif -#if CONFIG_NVENC_H265_ENCODER -static const AVClass nvenc_h265_class = { - .class_name = "nvenc_h265", +#if CONFIG_NVENC_HEVC_ENCODER +static const AVClass nvenc_hevc_class = { + .class_name = "nvenc_hevc", .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT, }; -AVCodec ff_nvenc_h265_encoder = { - .name = "nvenc_h265", - .long_name = NULL_IF_CONFIG_SMALL("Nvidia NVENC h265 encoder"), +AVCodec ff_nvenc_hevc_encoder = { + .name = "nvenc_hevc", + .long_name = NULL_IF_CONFIG_SMALL("Nvidia NVENC hevc encoder"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_H265, .priv_data_size = sizeof(NvencContext), @@ -1445,7 +1445,7 @@ AVCodec ff_nvenc_h265_encoder = { .encode2 = nvenc_encode_frame, .close = nvenc_encode_close, .capabilities = CODEC_CAP_DELAY, - .priv_class = &nvenc_h265_class, + .priv_class = &nvenc_hevc_class, .defaults = nvenc_defaults, .pix_fmts = pix_fmts_nvenc, }; |