ChapterForge
Loading...
Searching...
No Matches
jpeg_info.hpp
Go to the documentation of this file.
1
//
2
// jpeg_info.hpp
3
// ChapterForge
4
//
5
// Created by Till Toenshoff on 12/9/25.
6
// Copyright © 2025 Till Toenshoff. All rights reserved.
7
//
8
#pragma once
9
10
#include <cstdint>
11
#include <vector>
12
13
// Minimal JPEG header inspection helper used to obtain dimensions and subsampling.
14
// Returns true when width/height were found; sets is_yuv420 when sampling factors match 4:2:0.
15
bool
parse_jpeg_info
(
const
std::vector<uint8_t> &data, uint16_t &width, uint16_t &height,
16
bool
&is_yuv420);
17
parse_jpeg_info
bool parse_jpeg_info(const std::vector< uint8_t > &data, uint16_t &width, uint16_t &height, bool &is_yuv420)
include
jpeg_info.hpp
Generated by
1.9.8