The open imaging DSP library
Loading...
Searching...
No Matches
Functions
mpix/zephyr.h

Zephyr-specific functions. More...

Functions

static void mpix_zephyr_set_format (struct mpix_image *img, struct video_format *vfmt)
 Initialize an image with Zephyr native types.
 
static void mpix_image_from_vbuf (struct mpix_image *img, struct video_buffer *vbuf, struct video_format *vfmt)
 Initialize an image from a zephyr video buffer.
 
static int mpix_image_to_vbuf (struct mpix_image *img, struct video_buffer *vbuf)
 Initialize an image from a memory buffer.
 

Detailed Description

Zephyr-specific functions.

SPDX-License-Identifier: Apache-2.0

Function Documentation

◆ mpix_image_from_vbuf()

static void mpix_image_from_vbuf ( struct mpix_image img,
struct video_buffer *  vbuf,
struct video_format *  vfmt 
)
inlinestatic

Initialize an image from a zephyr video buffer.

Parameters
imgImage to initialize.
vbufVideo buffer that contains the image data to process.
fmtVideo format describing the buffer.

◆ mpix_image_to_vbuf()

static int mpix_image_to_vbuf ( struct mpix_image img,
struct video_buffer *  vbuf 
)
inlinestatic

Initialize an image from a memory buffer.

Parameters
imgImage being processed.
vbufVideo buffer that receives the image data.
Returns
0 on success or negative error code.

◆ mpix_zephyr_set_format()

static void mpix_zephyr_set_format ( struct mpix_image img,
struct video_format *  vfmt 
)
inlinestatic

Initialize an image with Zephyr native types.

Parameters
imgImage to initialize.
vbufVideo buffer that contains the image data to process.
fmtVideo format describing the buffer.