Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Color Extraction Developer Insights
#8
It all breaks down to basically two ways to write a number: Little Endian vs Big Endian.

In binary, what value is: 00000001?

It's *either* 1 *OR* 128!

Little endian stores values in ascending bit power.  2^0, 2 ^ 1, 2 ^ 2... to 2 ^ 7.
Big endian stores values in descending bit power.  2 ^ 7, 2 ^ 6, 2 ^ 5.... to 2 ^ 7

It's all about how you read/write the data.

In English, we read left to right, top to bottom.
In Arabic, it's read right to left, top to bottom.
In Japanese, they read top to bottom, right to left.

None is any better than the other -- all those languages end up storing the same data and information-- but it's important to know how to read and get that information successfully.

Little Endian and Big Endian is that same basic concept.  Is it left to right, or right to left?

In this case, it's BGRA.  In some other apps/programs, you may find ARGB  Which is why you always need a manual, reference, or the old barefoot hobo senior programmer around to tell you which format to use, while he sips on his coffee, lounges lazily and eats a doughnot, and earns three times what everyone else in the office does.  Wink
Reply


Messages In This Thread
RE: Color Extraction Developer Insights - by SMcNeill - 01-28-2024, 06:05 PM



Users browsing this thread: 1 Guest(s)