Questions tagged [24-bit]

"24bit" is usually used to specify a specific attribute. It is mostly used with images and audio files.

24bit term is widely used in DSP (Digital Signal Processing).

With images, it can indicate the color depth: the number of bits used to indicate the color of a single pixel. 24-bit color is also known as "True color". In such images each pixel is represented with 3 bytes, and can store one of 16,777,216 colors.

With sound, it can indicate the audio bit depth, which represents the resolution of each audio sample. 24bits is as much as is used in DVD-Audio.

More information can be found on the "Color depth" and "Audio bit depth" articles on Wikipedia

63 questions
2
votes
2 answers

Is there any classic 3 byte fingerprint function?

I need a checksum/fingerprint function for short strings (say, 16 to 256 bytes) which fits in a 24 bits word. Is there any well known algorithm for that?
Igor Gatis
  • 4,648
  • 10
  • 43
  • 66
2
votes
0 answers

Same Image URL's returning either 24 bit or 32 bit Image on Cloudfare Server? (cURL "content-length" check)

This is very confusing to me and I can't seem to find any information anywhere which may explain this. I've a database of around 1,000 image URL's and I am doing a cURL header callback curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, array($this,…
Brian Bruman
  • 883
  • 12
  • 28
2
votes
2 answers

Does a 24bit wav file's data chunk have signed or unsigned bytes?

I am trying to write a program that will create 24 bit wav files using java. The java sound api does not support 24 bit audio so I am trying to write the file from scratch. This started out as a casual interest but it has become an epic quest of…
Dave B.
  • 31
  • 1
  • 2
2
votes
1 answer

pack list of 24-bit integers in php

Context: I'm reading/writing data, which for storage reason comes as 24-bit integers (signed or unsigned doesn't matter as they're actually 8 octal values). I need to store/read a large number of these integers with pack and unpack. The application…
user1111929
  • 6,050
  • 9
  • 43
  • 73
2
votes
1 answer

Java playback of 24 bit audio is incorrect

I am using the javax sound API to implement a simple console playback program based on http://www.jsresources.org/examples/AudioPlayer.html. Having tested it using a 24 bit ramp file (each sample is the last sample plus 1 over the full 24 bit…
2
votes
1 answer

freeimage convert png 24bit to 1bit black/white = grey/white?

I am using Freeimage.sf.net to load an png24bit and want to save it as black/white png. using FIBITMAP bib = Freeimage.Load("<24bit_png>"); FIBITMAP conv = FreeImage.ConvertColorDepth(bib, FREE_IMAGE_COLOR_DEPTH. FICD_01_BPP_THRESHOLD, (byte)…
Bernhard
  • 2,541
  • 1
  • 26
  • 24
2
votes
1 answer

24bit int in php

Hey all so I've ran into a bit of a problem, from PHP I have to read some data from a binary file where SPACE is of the utmost importance so they've used 24 bit integers in places. Now for most of the data I can read with unpack however pack/unpack…
Joe
  • 49
  • 1
  • 8
1
vote
3 answers

How do I make a CMFCToolBar recognize image masks?

I have a CMFCToolBar-derived class and an insance thereof is the member of a CDockablePane-derived class. I looked at the VisualStudioDemo sample to see how it's done and have this so far: int CMyPane::OnCreate(LPCREATESTRUCT lpCreateStruct) { …
foraidt
  • 5,519
  • 5
  • 52
  • 80
1
vote
1 answer

FFmpeg - how to set output sample_size

Trying to create a simple command line player for .dsf (DSD audio) files, and output to an alsa device that supports up to 24-bit 192 kHz sample rate. The following command almost works and it does play the track. Examining the bold text below,…
DennisJ
  • 11
  • 2
1
vote
1 answer

How to convert RGB565 to HSL Color in C

I'm new to converting image types. I would like to determine the color of each pixel on the screen. I can read the colors from the frame buffer, but they are all in RGB565. For tracking a certain color, I would like to convert the RGB565 to HSV so I…
1
vote
1 answer

how to convert 3 bytes in little endian order to a floating number from -1 to +1

I have 3 bytes in little-endian. these are: Top, Middle and Bottom (from bit 23 to bit 0) How can I convert them to a float number from -1 to +1? 3 bytes are in little-endian because there is the string RIFF In the wav so min value is (0x7FFFFF) and…
1
vote
1 answer

Convert three bytes, two's complement, signed integer

In the SEG-D seismic data format, some header parameters are formatted as three bytes, two’s complement, signed binary. All values are big-endian. Using String#unpack, Ruby core can only convert 16-bit and 32-bit values, but not 24-bit. How can I…
Victor
  • 1,680
  • 3
  • 22
  • 40
1
vote
1 answer

32bit Jpeg wont display correctly on my TImage?

how can i convert 32bit jpeg image in 24bit? or convert it into 24bit bitmap?
XBasic3000
  • 3,418
  • 5
  • 46
  • 91
1
vote
0 answers

convert from decimal latitude/longitude to 24 bit or 3 byte

I need to convert the decimal latitude/longitude value to signed 24bit valuse . For latitude example 37.256526 value converted to signed 24 bit. The specification is blow. The latitude is coded with 24 bits: 1 bit of sign and a number between 0…
1
vote
3 answers

24 bit signed data type

I am recieving data from a ublox GPS module in 24 bit long bitfields (3 bytes of a 4 byte message), and I need to convert these 24 bit data fields to signed decimal values, but I can't find the description of how to do this in the specification.…