MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
pngget.h
Go to the documentation of this file.
1//
2// Copyright (c) 2025, Astute Systems PTY LTD
3//
4// This file is part of the VivoeX project developed by Astute Systems.
5//
6// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7// License. See the LICENSE file in the project root for full license details.
8//
12
13#ifndef PNGGET_H
14#define PNGGET_H
15
16#include <limits.h>
17#include <png.h>
18#include <stdint.h>
19#include <stdio.h>
20#include <stdlib.h>
21
22#include <string>
23#include <vector>
24
25class Png {
26 public:
27 png_bytep* GetRowPointwes();
28 void ReadPngFile(char* file_name);
29 std::vector<uint8_t> ReadPngRgb24(std::string_view filename) const;
30
31 private:
32 png_structp png_ptr;
33
34 png_bytep* row_pointers;
35
36 int x;
37 int y;
38
39 int width;
40 int height;
41 png_byte color_type;
42 png_byte bit_depth;
43
44 png_infop info_ptr;
45 int number_of_passes;
46
47 void Abort(const char* s, ...);
48};
49
50#endif // PNGGET_H
Definition pngget.h:25