.4cc format Re: libcamera, Librem 5 and autofocus

Pavel Machek pavel at ucw.cz
Sat May 3 16:35:04 CEST 2025


Hi!

> > > On a side note, I want a universal container format to store images :-)
> > 
> > I thought about this and did some research, and actually, there seems
> > to be one.
> > 
> > Would already estabilished binary format with width, height and fourcc
> > be suitable? :-). Downside is, it has "Microsoft" written over it; but
> > it is supported by gimp and does not look completely crazy.
> > 
> > pavel at duo:/data/l$ file /tmp/delme.dds 
> > /tmp/delme.dds: Microsoft DirectDraw Surface (DDS): 1920 x 1080, 32-bit color, ABGR8888
> > pavel at duo:/data/l$
> > 
> > https://learn.microsoft.com/en-us/windows/win32/direct3ddds/dx-graphics-dds-pguide
> 
> That format seems to be designed to store textures. As far as I
> understand, it's similar in purpose to https://www.khronos.org/ktx/.
> Neither support storing raw bayer data. We could extend the file
> formats, but then they wouldn't be standard anymore. If we need
> extensions, I'd rather consider KTX.

I took a brief look and KTX does not seem suitable.

I could create simple format (128-bytes fixed size header), containing
width, height, stride, fourcc (and probably camera type and
exposure/focus data and timestamp)... and then simple tools to view
the pictures (and probably turn them into video).

Would code to write such format be acceptable?

Best regards,
								Pavel
-- 
I don't work for Nazis and criminals, and neither should you.
Boycott Putin, Trump, and Musk!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20250503/d7050ccf/attachment.sig>


More information about the libcamera-devel mailing list