mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 20:20:48 -07:00
misc: Use official names for NVDEC registers (#4192)
* misc: Uses official names for NVDEC registers * Address gdkchan's comment * Address comments
This commit is contained in:
@ -58,24 +58,24 @@ namespace Ryujinx.Graphics.Nvdec
|
||||
|
||||
private void Execute(int data)
|
||||
{
|
||||
Decode((CodecId)_state.State.SetCodecID);
|
||||
Decode((ApplicationId)_state.State.SetApplicationId);
|
||||
}
|
||||
|
||||
private void Decode(CodecId codecId)
|
||||
private void Decode(ApplicationId applicationId)
|
||||
{
|
||||
switch (codecId)
|
||||
switch (applicationId)
|
||||
{
|
||||
case CodecId.H264:
|
||||
case ApplicationId.H264:
|
||||
H264Decoder.Decode(_currentContext, _rm, ref _state.State);
|
||||
break;
|
||||
case CodecId.Vp8:
|
||||
case ApplicationId.Vp8:
|
||||
Vp8Decoder.Decode(_currentContext, _rm, ref _state.State);
|
||||
break;
|
||||
case CodecId.Vp9:
|
||||
case ApplicationId.Vp9:
|
||||
Vp9Decoder.Decode(_rm, ref _state.State);
|
||||
break;
|
||||
default:
|
||||
Logger.Error?.Print(LogClass.Nvdec, $"Unsupported codec \"{codecId}\".");
|
||||
Logger.Error?.Print(LogClass.Nvdec, $"Unsupported codec \"{applicationId}\".");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user