The open imaging DSP library
Loading...
Searching...
No Matches
print.h
1/* SPDX-License-Identifier: Apache-2.0 */
7#ifndef MPIX_PRINT_H
8#define MPIX_PRINT_H
9
10#include <stddef.h>
11#include <stdint.h>
12#include <stdbool.h>
13
14#include <mpix/types.h>
15
23void mpix_print_buf(const uint8_t *src, size_t size, const struct mpix_format *fmt, bool truecolor);
24
33void mpix_print_2_rows(const uint8_t *top, const uint8_t *bot, int16_t width, uint32_t fourcc,
34 bool truecolor);
35
42void mpix_hexdump_buf(const uint8_t *buf, size_t size, const struct mpix_format *fmt);
43
49void mpix_hexdump_raw(const uint8_t *buf, size_t size);
50
59void mpix_print_rgb_hist(const uint16_t *r_hist, const uint16_t *g_hist, const uint16_t *b_hist,
60 size_t size, uint16_t height);
61
68void mpix_print_y_hist(const uint16_t *y8hist, size_t size, uint16_t height);
69
75
80void mpix_print_op(struct mpix_base_op *op);
81
87void mpix_print_stats(struct mpix_stats *stats);
88
94void mpix_print_ctrls(int32_t *ctrls[]);
95
96#endif
void mpix_print_pipeline(struct mpix_base_op *op)
Print details about every operation of a pipeline.
void mpix_hexdump_raw(const uint8_t *buf, size_t size)
Hexdump a byte buffer.
void mpix_print_op(struct mpix_base_op *op)
Print details about a signle operation.
void mpix_print_ctrls(int32_t *ctrls[])
Print a summary of available controls an their value.
void mpix_print_stats(struct mpix_stats *stats)
Print a representation of the statistics in the console for debug purpose.
void mpix_print_buf(const uint8_t *src, size_t size, const struct mpix_format *fmt, bool truecolor)
Print a buffer using terminal escape codes.
void mpix_print_rgb_hist(const uint16_t *r_hist, const uint16_t *g_hist, const uint16_t *b_hist, size_t size, uint16_t height)
Printing RGB histograms to the terminal.
void mpix_hexdump_buf(const uint8_t *buf, size_t size, const struct mpix_format *fmt)
Hexdump a buffer in the specified format.
void mpix_print_2_rows(const uint8_t *top, const uint8_t *bot, int16_t width, uint32_t fourcc, bool truecolor)
Print 2 rows of pixels using terminal escape codes.
void mpix_print_y_hist(const uint16_t *y8hist, size_t size, uint16_t height)
Printing Y histograms to the terminal.
One step of a line operation pipeline.
Definition types.h:111
Image format description.
Definition types.h:72
Definition types.h:168