Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Григорий Антипин
assignment-3-image-transform
Commits
82c0522a
Commit
82c0522a
authored
4 years ago
by
Igor Zhirkov
Browse files
Options
Download
Email Patches
Plain Diff
Update the description
parent
6c5e42dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
README.md
README.md
+32
-1
No files found.
README.md
View file @
82c0522a
...
...
@@ -4,7 +4,7 @@
# Подготовка
-
Прочитайте главу 12 (стр. 221, 231
-
239) и 13 (целиком) "Low-level programming: C, assembly and program execution".
-
Прочитайте главу 12 (стр. 221, 231
–
239) и 13 (целиком) "Low-level programming: C, assembly and program execution".
На защите мы можем обсуждать любые вопросы из учебника из глав 8
–
13 включительно.
...
...
@@ -94,6 +94,37 @@ struct bmp_header __attribute__((packed))
struct image rotate( struct image const source );
```
# Пользователям компилятора от Microsoft
Вам придётся задать структуру по-другому, без атрибута
`packed`
:
```
c
#include <stdint.h>
#pragma pack(push, 1)
struct
bmp_header
{
uint16_t
bfType
;
uint32_t
bfileSize
;
uint32_t
bfReserved
;
uint32_t
bOffBits
;
uint32_t
biSize
;
uint32_t
biWidth
;
uint32_t
biHeight
;
uint16_t
biPlanes
;
uint16_t
biBitCount
;
uint32_t
biCompression
;
uint32_t
biSizeImage
;
uint32_t
biXPelsPerMeter
;
uint32_t
biYPelsPerMeter
;
uint32_t
biClrUsed
;
uint32_t
biClrImportant
;
};
#pragma pack(pop)
```
Объяснение этого прочтите находится на страницах 235
–
239 учебника.
# Для самопроверки:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment