use array2D.fill() instead of memset()
This commit is contained in:
@@ -1859,7 +1859,7 @@ BENCHFUN
|
|||||||
params->crop.mapToResized(pW, pH, scale, x1, x2, y1, y2);
|
params->crop.mapToResized(pW, pH, scale, x1, x2, y1, y2);
|
||||||
|
|
||||||
constexpr int size = VECTORSCOPE_SIZE;
|
constexpr int size = VECTORSCOPE_SIZE;
|
||||||
memset((int*)vectorscope, 0, size * size * sizeof(vectorscope[0][0]));
|
vectorscope.fill(0);
|
||||||
|
|
||||||
vectorscopeScale = (x2 - x1) * (y2 - y1);
|
vectorscopeScale = (x2 - x1) * (y2 - y1);
|
||||||
if (hListener->vectorscopeType() == 0) { // HS
|
if (hListener->vectorscopeType() == 0) { // HS
|
||||||
@@ -1951,11 +1951,10 @@ void ImProcCoordinator::updateWaveforms()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start with zero.
|
// Start with zero.
|
||||||
const int waveformSize = 256 * waveform_width;
|
waveformRed.fill(0);
|
||||||
memset((int*)waveformRed, 0, waveformSize * sizeof(waveformRed[0][0]));
|
waveformGreen.fill(0);
|
||||||
memset((int*)waveformGreen, 0, waveformSize * sizeof(waveformGreen[0][0]));
|
waveformBlue.fill(0);
|
||||||
memset((int*)waveformBlue, 0, waveformSize * sizeof(waveformBlue[0][0]));
|
waveformLuma.fill(0);
|
||||||
memset((int*)waveformLuma, 0, waveformSize * sizeof(waveformLuma[0][0]));
|
|
||||||
|
|
||||||
constexpr float luma_factor = 255.f / 32768.f;
|
constexpr float luma_factor = 255.f / 32768.f;
|
||||||
for (int i = y1; i < y2; i++) {
|
for (int i = y1; i < y2; i++) {
|
||||||
|
Reference in New Issue
Block a user