Memory: move GetPointer into class
This commit is contained in:
parent
405218c3a7
commit
76e0a4ece7
4 changed files with 8 additions and 6 deletions
|
@ -10,6 +10,7 @@
|
|||
#include "common/color.h"
|
||||
#include "common/common_types.h"
|
||||
#include "common/vector_math.h"
|
||||
#include "core/core.h"
|
||||
#include "core/hle/service/y2r_u.h"
|
||||
#include "core/hw/y2r.h"
|
||||
#include "core/memory.h"
|
||||
|
@ -80,7 +81,7 @@ static void ConvertYUVToRGB(InputFormat input_format, const u8* input_Y, const u
|
|||
/// formats to 8-bit.
|
||||
template <std::size_t N>
|
||||
static void ReceiveData(u8* output, ConversionBuffer& buf, std::size_t amount_of_data) {
|
||||
const u8* input = Memory::GetPointer(buf.address);
|
||||
const u8* input = Core::System::GetInstance().Memory().GetPointer(buf.address);
|
||||
|
||||
std::size_t output_unit = buf.transfer_unit / N;
|
||||
ASSERT(amount_of_data % output_unit == 0);
|
||||
|
@ -104,7 +105,7 @@ static void ReceiveData(u8* output, ConversionBuffer& buf, std::size_t amount_of
|
|||
static void SendData(const u32* input, ConversionBuffer& buf, int amount_of_data,
|
||||
OutputFormat output_format, u8 alpha) {
|
||||
|
||||
u8* output = Memory::GetPointer(buf.address);
|
||||
u8* output = Core::System::GetInstance().Memory().GetPointer(buf.address);
|
||||
|
||||
while (amount_of_data > 0) {
|
||||
u8* unit_end = output + buf.transfer_unit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue