How is a stored image or video displayed in binary format on a hard drive?

In an attempt to understand the concept of binary code, my question is: "How does a stored image or video look in binary form on a hard drive?"

+3
source share
8 answers

As for physical storage, it depends on the technology of your storage device. For a hard drive, you can read about it on Wikipedia .

The next level is how the controller on the storage device sends data to the motherboard.

Then, as the motherboard sends data to the operating system.

, ( , NTFS Windows.)

, , , 8 (), 8 /, 256 . , 0 255 (, , ). , . , ( , , ) :

11111111 00000000 00000000
red      green    blue

.

+4

:

... , .. , ... JPG ...

, , .

+2

.

"" "- " ( ASCII, ...) , - . : , ( ), - , .

, , , (, , ..) . . , .

: . JPEG, .mp3 ; , (= + , ), , JPEG.

+2

: 000010101011010101101010101 , . , , , .

+1

( ).

. , . , . . 1 0.

, , - , . ( ), . , , 1s 0s.

, "" ( 4 ). , 64- 64 , 64 1s 0s, .

, , , , . , , 8 1 ASCII.

. . , , , , . , , . *.jpg *.exe , , .

, , jpeg 1 0 .

, , : 800 x 600 24- . 3 (8 ), , . . 0 - 255, 0 255. Unsigned 255 - 11111111, 2 . , 1440 000 1406 ( - 1024 ).

+1

" ": . 4 ; .

googletorp , . , - ( /, , , ).

0

Wikipedia BMP ( ) 2x2 , .

, , , Hex Viewer :) od Linux, . , Google Hex Editor Windows (, , - .)

0

?. , . , , . . , , , . , . , . .

0

Source: https://habr.com/ru/post/1712535/


All Articles