From 96c65d74a6e7c79538c00a45126fd8af99f59412 Mon Sep 17 00:00:00 2001 From: jeffqjiangNew <142832361+jeffqjiangNew@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:32:12 -0400 Subject: [PATCH] Enabled AV1 decode by default. (#391) * * rocDecode/AV1: Enabled AV1 decode by default. * * rocDecode/AV1: Added changes suggested in code review. - Bumped up rocDecode version to 0.7.0. - Added AV1 support statement in readme file. --- CMakeLists.txt | 2 +- README.md | 1 + src/parser/rocparser_api.cpp | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c5f2d7f63..999444dce9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ cmake_minimum_required(VERSION 3.5) -set(VERSION "0.6.0") +set(VERSION "0.7.0") set(CMAKE_CXX_STANDARD 17) # Set Project Version and Language diff --git a/README.md b/README.md index 7d6e1e69a4..372ae06aaa 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ access the video decoding features available on your GPU. * H.265 (HEVC) - 8 bit, and 10 bit * H.264 (AVC) - 8 bit +* AV1 - 8 bit, and 10 bit ## Prerequisites diff --git a/src/parser/rocparser_api.cpp b/src/parser/rocparser_api.cpp index 825f9bf11c..9f340bdcdf 100644 --- a/src/parser/rocparser_api.cpp +++ b/src/parser/rocparser_api.cpp @@ -34,11 +34,10 @@ rocDecCreateVideoParser(RocdecVideoParser *parser_handle, RocdecParserParams *pa return ROCDEC_INVALID_PARAMETER; } - const char *is_av1_enabled = std::getenv("ROCDECODE_ENABLE_AV1"); if (parser_params->codec_type != rocDecVideoCodec_HEVC && parser_params->codec_type != rocDecVideoCodec_AVC && - (parser_params->codec_type == rocDecVideoCodec_AV1 && (is_av1_enabled == nullptr || std::string(is_av1_enabled) != "1"))) { - ERR("The current version of rocDecode officially supports only the H.265 (HEVC) and H.264 (AVC) codec."); + parser_params->codec_type != rocDecVideoCodec_AV1) { + ERR("The current version of rocDecode officially supports only the H.265 (HEVC), H.264 (AVC) and AV1 codecs."); return ROCDEC_NOT_IMPLEMENTED; }