MCPcopy Create free account
hub / github.com/SatDump/SatDump / init_bitperiod

Method init_bitperiod

plugins/bitview_app/bit_container.cpp:72–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 void BitContainer::init_bitperiod()
73 {
74 size_t final_size = 0;
75 img_parts_y = 0;
76 while (final_size < d_file_memory_size * 8)
77 {
78 final_size += d_bitperiod * d_chunk_size;
79 img_parts_y++;
80 }
81
82 final_size = 0;
83 img_parts_x = 0;
84 while (final_size < d_bitperiod)
85 {
86 final_size += d_chunk_size;
87 img_parts_x++;
88 }
89
90 image_parts.resize(img_parts_y * img_parts_x);
91
92 printf("%d %d\n", int(img_parts_x * d_chunk_size), int(img_parts_y * d_chunk_size));
93 }
94
95 void BitContainer::doUpdateTextures()
96 {

Callers 5

drawPanelMethod · 0.80
processMethod · 0.80
processMethod · 0.80
processMethod · 0.80
processMethod · 0.80

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected