sp500/letterbox.h Source File

sp500/letterbox.h Source File#

Mobilint REGULUS: sp500/letterbox.h Source File
Mobilint REGULUS v4.1
SP500 DSP API
letterbox.h
Go to the documentation of this file.
1
41#ifndef SP500_LETTERBOX_H
42#define SP500_LETTERBOX_H
43
44#include <sp500/dsp.h>
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
51enum
52{
57};
58
67{
68 int32_t src_w;
69 int32_t src_h;
70 int32_t dst_w;
71 int32_t dst_h;
72 int32_t channels;
73 int32_t interp;
74 uint8_t pad_value;
75 uint8_t center;
77 uint8_t scale_up;
79 uint8_t swap_rb;
81 uint32_t reserved[4];
83
86
89{
90 float scale;
91 int32_t pad_x;
92 int32_t pad_y;
93 double host_seconds;
94 uint32_t reserved[4];
96
116 const sp500_letterbox_params* params,
117 sp500_buffer* dst,
118 sp500_letterbox_result* result);
119
120#ifdef __cplusplus
121} /* extern "C" */
122#endif
123
124#endif /* SP500_LETTERBOX_H */
Mobilint SP500 DSP offload - status codes, lifecycle and shared memory.
int32_t sp500_status
Result of every sp500 call.
Definition dsp.h:83
void sp500_letterbox_params_init(sp500_letterbox_params *params)
Fill params with the defaults documented above.
@ SP500_RESIZE_NEAREST
Definition letterbox.h:53
@ SP500_RESIZE_BICUBIC
Definition letterbox.h:55
@ SP500_RESIZE_LANCZOS
Definition letterbox.h:56
@ SP500_RESIZE_BILINEAR
Definition letterbox.h:54
sp500_status sp500_letterbox(const sp500_buffer *src, const sp500_letterbox_params *params, sp500_buffer *dst, sp500_letterbox_result *result)
Letterbox an 8-bit HWC frame on the DSP.
A tensor handed to or received from the DSP.
Definition dsp.h:261
Letterbox geometry and options.
Definition letterbox.h:67
uint32_t reserved[4]
Definition letterbox.h:81
Values the DSP computed for a letterbox call.
Definition letterbox.h:89
uint32_t reserved[4]
Definition letterbox.h:94