Skip to content

Commit

Permalink
--vpp-afs, --vpp-nnedi, --vpp-yadifのエラーメッセージを拡充。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Aug 28, 2023
1 parent 81eaa5c commit 3d74dda
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
8 changes: 8 additions & 0 deletions NVEnc/NVEnc_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ NVIDIA グラフィックドライバ 536.23
今後の更新で設定ファイルの互換性がなくなるかもしれません。

【メモ】
2023.08.28 (7.31)
- --audio-streamがavs読み込み時に反映されないのを修正。
- --video-tagの指定がない場合、HEVCでは"hvc1"をデフォルトとする。 (libavformatのデフォルトは"hev1")
- --vpp-padのエラーメッセージを拡充。
- --vpp-decimateが異常終了することがあったのを修正。
- --vpp-afs, --vpp-nnedi, --vpp-yadifのエラーメッセージを拡充。
- --vpp-colorspace lut3dの補間処理を修正。

2023.06.24 (7.30)
[NVEnc.auo]
- faw処理時に音声がブツブツ切れる場合があったのを修正。
Expand Down
5 changes: 5 additions & 0 deletions NVEncCore/NVEncFilterAfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ RGY_ERR NVEncFilterAfs::check_param(shared_ptr<NVEncFilterParamAfs> pAfsParam) {
AddMessage(RGY_LOG_ERROR, _T("Invalid parameter.\n"));
return RGY_ERR_INVALID_PARAM;
}
const int hight_mul = (RGY_CSP_CHROMA_FORMAT[pAfsParam->frameOut.csp] == RGY_CHROMAFMT_YUV420) ? 4 : 2;
if ((pAfsParam->frameOut.height % hight_mul) != 0) {
AddMessage(RGY_LOG_ERROR, _T("Height must be multiple of %d.\n"), hight_mul);
return RGY_ERR_INVALID_PARAM;
}
if (pAfsParam->afs.clip.top < 0 || pAfsParam->afs.clip.top >= pAfsParam->frameOut.height) {
AddMessage(RGY_LOG_ERROR, _T("Invalid parameter (clip.top).\n"));
return RGY_ERR_INVALID_PARAM;
Expand Down
5 changes: 5 additions & 0 deletions NVEncCore/NVEncFilterNnedi.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,11 @@ RGY_ERR NVEncFilterNnedi::checkParam(const std::shared_ptr<NVEncFilterParamNnedi
AddMessage(RGY_LOG_ERROR, _T("Invalid frame size.\n"));
return RGY_ERR_INVALID_PARAM;
}
const int hight_mul = (RGY_CSP_CHROMA_FORMAT[pNnediParam->frameOut.csp] == RGY_CHROMAFMT_YUV420) ? 4 : 2;
if ((pNnediParam->frameOut.height % hight_mul) != 0) {
AddMessage(RGY_LOG_ERROR, _T("Height must be multiple of %d.\n"), hight_mul);
return RGY_ERR_INVALID_PARAM;
}
if (pNnediParam->nnedi.field <= VPP_NNEDI_FIELD_UNKNOWN || VPP_NNEDI_FIELD_MAX <= pNnediParam->nnedi.field) {
AddMessage(RGY_LOG_ERROR, _T("invalid value for param \"field\": %d\n"), pNnediParam->nnedi.field);
return RGY_ERR_INVALID_PARAM;
Expand Down
5 changes: 5 additions & 0 deletions NVEncCore/NVEncFilterYadif.cu
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ RGY_ERR NVEncFilterYadif::check_param(shared_ptr<NVEncFilterParamYadif> pAfsPara
AddMessage(RGY_LOG_ERROR, _T("Invalid parameter.\n"));
return RGY_ERR_INVALID_PARAM;
}
const int hight_mul = (RGY_CSP_CHROMA_FORMAT[pAfsParam->frameOut.csp] == RGY_CHROMAFMT_YUV420) ? 4 : 2;
if ((pAfsParam->frameOut.height % hight_mul) != 0) {
AddMessage(RGY_LOG_ERROR, _T("Height must be multiple of %d.\n"), hight_mul);
return RGY_ERR_INVALID_PARAM;
}
if (pAfsParam->yadif.mode >= VPP_YADIF_MODE_MAX) {
AddMessage(RGY_LOG_ERROR, _T("Invalid parameter (mode).\n"));
return RGY_ERR_INVALID_PARAM;
Expand Down
6 changes: 3 additions & 3 deletions NVEncCore/rgy_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#ifndef __RGY_CONFIG_H__
#define __RGY_CONFIG_H__

#define VER_FILEVERSION 0,7,30,0
#define VER_STR_FILEVERSION "7.30"
#define VER_STR_FILEVERSION_TCHAR _T("7.30")
#define VER_FILEVERSION 0,7,31,0
#define VER_STR_FILEVERSION "7.31"
#define VER_STR_FILEVERSION_TCHAR _T("7.31")

#ifdef _M_IX86
#define BUILD_ARCH_STR _T("x86")
Expand Down

0 comments on commit 3d74dda

Please sign in to comment.