The open imaging DSP library
Loading...
Searching...
No Matches
zephyr.h
1
7#ifndef MPIX_ZEPHYR_H
8#define MPIX_ZEPHYR_H
9
17static inline void mpix_image_from_vbuf(struct mpix_image *img, struct video_buffer *vbuf,
18 struct video_format *fmt)
19{
20 mpix_image_from_buf(img, vbuf->buffer, vbuf->size, fmt->width, fmt->height,
21 fmt->pixelformat);
22}
23
31static inline int mpix_image_to_vbuf(struct mpix_image *img, struct video_buffer *vbuf)
32{
33 int ret;
34
35 ret = mpix_image_to_buf(img, vbuf->buffer, vbuf->size);
36 vbuf->bytesused = img->size;
37
38 return ret;
39}
40
41#endif
int mpix_image_to_buf(struct mpix_image *img, uint8_t *buf, size_t size)
Initialize an image from a memory buffer.
void mpix_image_from_buf(struct mpix_image *img, uint8_t *buf, size_t size, uint16_t width, uint16_t height, uint32_t format)
Initialize an image from a memory buffer.
Represent the image currently being processed.
Definition image.h:18
size_t size
Definition image.h:35