MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / setJpgScale

Method setJpgScale

lib/TJpg_Decoder/src/TJpg_Decoder.cpp:48–67  ·  view source on GitHub ↗

** Function name: setJpgScale ** Description: Set the reduction scale factor (1, 2, 4 or 8) ***************************************************************************************/

Source from the content-addressed store, hash-verified

46** Description: Set the reduction scale factor (1, 2, 4 or 8)
47***************************************************************************************/
48void TJpg_Decoder::setJpgScale(uint8_t scaleFactor)
49{
50 switch (scaleFactor)
51 {
52 case 1:
53 jpgScale = 0;
54 break;
55 case 2:
56 jpgScale = 1;
57 break;
58 case 4:
59 jpgScale = 2;
60 break;
61 case 8:
62 jpgScale = 3;
63 break;
64 default:
65 jpgScale = 0;
66 }
67}
68
69/***************************************************************************************
70** Function name: setCallback

Callers 1

setupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected