MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / SetPixels

Method SetPixels

common/Image.h:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void SetPixels(u32 width, u32 height, const PixelType* pixels)
84 {
85 m_width = width;
86 m_height = height;
87 m_pixels.resize(width * height);
88 std::memcpy(m_pixels.data(), pixels, width * height * sizeof(PixelType));
89 }
90
91 void SetPixels(u32 width, u32 height, std::vector<PixelType> pixels)
92 {

Callers 4

PNGCommonLoaderFunction · 0.80
WebPBufferLoaderFunction · 0.80
BMPBufferLoaderFunction · 0.80

Calls 2

resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected