MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / ScaleSubBlock

Function ScaleSubBlock

Source/Core/JpegTask.cpp:484–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484static void ScaleSubBlock(s16 *dst, const s16 *src, s16 scale)
485{
486 for (u32 i {}; i < SUBBLOCK_SIZE; ++i)
487 {
488 s32 v {src[i] * scale};
489 dst[i] = clamp_s16(v);
490 }
491}
492
493static void RShiftSubBlock(s16 *dst, const s16 *src, u32 shift)
494{

Callers 1

jpeg_decode_OBFunction · 0.85

Calls 1

clamp_s16Function · 0.85

Tested by

no test coverage detected