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

Function MultSubBlocks

Source/Core/JpegTask.cpp:474–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474static void MultSubBlocks(s16 *dst, const s16 *src1, const s16 *src2, u32 shift)
475{
476
477 for (u32 i {}; i < SUBBLOCK_SIZE; ++i)
478 {
479 s32 v {src1[i] * src2[i]};
480 dst[i] = clamp_s16(v) << shift;
481 }
482}
483
484static void ScaleSubBlock(s16 *dst, const s16 *src, s16 scale)
485{

Callers 2

DecodeMacroblock1Function · 0.85
DecodeMacroblock2Function · 0.85

Calls 1

clamp_s16Function · 0.85

Tested by

no test coverage detected