37struct _am7xxx_context;
176 unsigned int device_index);
221 unsigned int upscale,
222 unsigned int original_width,
223 unsigned int original_height,
224 unsigned int *scaled_width,
225 unsigned int *scaled_height);
246 unsigned char *image,
247 unsigned int image_size);
272 unsigned char *image,
273 unsigned int image_size);
am7xxx_zoom_mode
The display zoom modes.
@ AM7XXX_ZOOM_H
Zoom 1: H Scale (changes aspect ratio).
@ AM7XXX_ZOOM_ORIGINAL
Original Size, as retrieved via am7xxx_device_info.
@ AM7XXX_ZOOM_TELE
Zoom Tele: available on some PicoPix models.
@ AM7XXX_ZOOM_TEST
Zoom test screen, the firmware version is shown as well.
@ AM7XXX_ZOOM_H_V
Zoom 2: H/V Scale (changes aspect ratio).
am7xxx_log_level
The verbosity level of logging messages.
@ AM7XXX_LOG_ERROR
Error messages, typically they describe API functions failures.
@ AM7XXX_LOG_INFO
Informations about the device operations.
@ AM7XXX_LOG_DEBUG
Informations about the library internals.
@ AM7XXX_LOG_WARNING
Warnings about conditions worth mentioning to the user.
@ AM7XXX_LOG_FATAL
Fatal messages, the user application should stop if it gets one of this.
@ AM7XXX_LOG_TRACE
Verbose informations about the communication with the hardware.
int am7xxx_calc_scaled_image_dimensions(am7xxx_device *dev, unsigned int upscale, unsigned int original_width, unsigned int original_height, unsigned int *scaled_width, unsigned int *scaled_height)
Calculate the dimensions of an image to be shown on an am7xxx device.
am7xxx_power_mode
The device power modes.
@ AM7XXX_POWER_HIGH
More brightness, but more power consumption.
@ AM7XXX_POWER_OFF
Display is powered off, no image shown.
@ AM7XXX_POWER_TURBO
Max brightness and power consumption.
@ AM7XXX_POWER_LOW
Low power consumption but also low brightness.
@ AM7XXX_POWER_MIDDLE
Middle level of brightness.
int am7xxx_get_device_info(am7xxx_device *dev, am7xxx_device_info *device_info)
Get info about an am7xxx device.
int am7xxx_send_image_async(am7xxx_device *dev, am7xxx_image_format format, unsigned int width, unsigned int height, unsigned char *image, unsigned int image_size)
Queue transfer of an image for display on an am7xxx device and return immediately.
am7xxx_image_format
The image formats accepted by the device.
@ AM7XXX_IMAGE_FORMAT_JPEG
JPEG format.
@ AM7XXX_IMAGE_FORMAT_NV12
Raw YUV in the NV12 variant.
struct _am7xxx_context am7xxx_context
An opaque data type representing a context.
void am7xxx_shutdown(am7xxx_context *ctx)
Cleanup the library data structures and free the context.
void am7xxx_set_log_level(am7xxx_context *ctx, am7xxx_log_level log_level)
Set verbosity level of log messages.
int am7xxx_set_power_mode(am7xxx_device *dev, am7xxx_power_mode power)
Set the power mode of an am7xxx device.
int am7xxx_close_device(am7xxx_device *dev)
Close an am7xxx_device.
int am7xxx_set_zoom_mode(am7xxx_device *dev, am7xxx_zoom_mode zoom)
Set the zoom mode of an am7xxx device.
int am7xxx_init(am7xxx_context **ctx)
Initialize the library context and data structures, and scan for devices.
struct _am7xxx_device am7xxx_device
An opaque data type representing an am7xxx device.
int am7xxx_send_image(am7xxx_device *dev, am7xxx_image_format format, unsigned int width, unsigned int height, unsigned char *image, unsigned int image_size)
Send an image for display on an am7xxx device.
int am7xxx_open_device(am7xxx_context *ctx, am7xxx_device **dev, unsigned int device_index)
Open an am7xxx_device according to a index.
A struct describing device specific properties.
unsigned int native_height
The device native height.
unsigned int native_width
The device native width.