mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 20:50:48 -07:00
nvdec: Adding Vp8 codec support (#2707)
* first try * second try * working update * Final impl * Fixes nits * Fix everything * remove leftover * Update FFmpegContext.cs * Update Surface.cs * Addresses gdkchan feedback * bool not byte * Addresses gdkchan feedback
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
using Ryujinx.Graphics.Nvdec.H264;
|
||||
using Ryujinx.Graphics.Nvdec.FFmpeg.H264;
|
||||
using Ryujinx.Graphics.Nvdec.Image;
|
||||
using Ryujinx.Graphics.Nvdec.Types.H264;
|
||||
using Ryujinx.Graphics.Video;
|
||||
@ -10,7 +10,7 @@ namespace Ryujinx.Graphics.Nvdec
|
||||
{
|
||||
private const int MbSizeInPixels = 16;
|
||||
|
||||
public unsafe static void Decode(NvdecDecoderContext context, ResourceManager rm, ref NvdecRegisters state)
|
||||
public static void Decode(NvdecDecoderContext context, ResourceManager rm, ref NvdecRegisters state)
|
||||
{
|
||||
PictureInfo pictureInfo = rm.Gmm.DeviceRead<PictureInfo>(state.SetPictureInfoOffset);
|
||||
H264PictureInfo info = pictureInfo.Convert();
|
||||
@ -25,7 +25,7 @@ namespace Ryujinx.Graphics.Nvdec
|
||||
uint lumaOffset = state.SetSurfaceLumaOffset[surfaceIndex];
|
||||
uint chromaOffset = state.SetSurfaceChromaOffset[surfaceIndex];
|
||||
|
||||
Decoder decoder = context.GetDecoder();
|
||||
Decoder decoder = context.GetH264Decoder();
|
||||
|
||||
ISurface outputSurface = rm.Cache.Get(decoder, 0, 0, width, height);
|
||||
|
||||
|
Reference in New Issue
Block a user