Create new utility function for scaling with aspect ratio and use it for DXVA2
This commit is contained in:
parent
b076744f00
commit
5cbb38091b
4 changed files with 49 additions and 18 deletions
10
app/streaming/streamutils.h
Normal file
10
app/streaming/streamutils.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
class StreamUtils
|
||||
{
|
||||
public:
|
||||
static
|
||||
void scaleSourceToDestinationSurface(SDL_Rect* src, SDL_Rect* dst);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue