Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
jpeg_encoder.h File Reference

Encode BGRA map pixels and publish JPEGs with optional EXIF. More...

#include "exifite.h"
#include "map_storage.h"
#include <algorithm>
#include <csetjmp>
#include <cstdio>
#include <jpeglib.h>
#include <jerror.h>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <limits>
#include <stdexcept>
#include <string>
#include <vector>
Include dependency graph for jpeg_encoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  JpegEncoder
 Reusable IJG compressor and JPEG publisher. More...
struct  JpegEncoder::Error
struct  JpegEncoder::Image
 Borrowed view of a JPEG held in this encoder's reusable buffer. More...

Detailed Description

Encode BGRA map pixels and publish JPEGs with optional EXIF.

The encoder owns and reuses its IJG workspace to avoid a new large output allocation for every tile. EXIF is inserted into the compressed stream, preserving encoded image bytes rather than decoding and encoding the pixels a second time.

Definition in file jpeg_encoder.h.