RockX  1.0.0
rockx_image_util.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * Copyright (c) 2017 - 2019 by Rockchip Corp. All rights reserved.
4 *
5 * The material in this file is confidential and contains trade secrets
6 * of Rockchip Corporation. This is proprietary information owned by
7 * Rockchip Corporation. No part of this work may be disclosed,
8 * reproduced, copied, transmitted, or used in any way for any purpose,
9 * without the express written permission of Rockchip Corporation.
10 *
11 *****************************************************************************/
12 
13 #ifndef _ROCKX_IMAGE_UTIL_H
14 #define _ROCKX_IMAGE_UTIL_H
15 
16 #include "rockx_type.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
28 
38 rockx_ret_t rockx_image_convert(rockx_image_t *src, rockx_image_t *dst, int dst_width, int dst_heigh,
39  rockx_pixel_format dst_pixel_format);
40 
53 rockx_ret_t rockx_image_convert_keep_ration(rockx_image_t *src, rockx_image_t *dst, int dst_width, int dst_heigh,
54  rockx_pixel_format dst_pixel_format, int pad_color, float *scale_w,
55  float *scale_h);
63 rockx_ret_t rockx_image_read(const char *img_path, rockx_image_t *image, int flag);
64 
71 rockx_ret_t rockx_image_write(const char *path, rockx_image_t *img);
72 
79 
86 
97  rockx_color_t color, int thickness);
98 
109  rockx_color_t color, int thickness);
110 
121  rockx_color_t color, int thickness);
122 
133  rockx_color_t color, int thickness);
134 
135 #ifdef __cplusplus
136 } //extern "C"
137 #endif
138 
139 #endif //_ROCKX_IMAGE_UTIL_H
rockx_type.h
rockx_color_t
Color.
Definition: rockx_type.h:132
rockx_image_convert_keep_ration
rockx_ret_t rockx_image_convert_keep_ration(rockx_image_t *src, rockx_image_t *dst, int dst_width, int dst_heigh, rockx_pixel_format dst_pixel_format, int pad_color, float *scale_w, float *scale_h)
rockx_image_get_channels
int rockx_image_get_channels(rockx_image_t *img)
rockx_ret_t
rockx_ret_t
Return Value of RockX functions.
Definition: rockx_type.h:36
rockx_image_release
rockx_ret_t rockx_image_release(rockx_image_t *img)
rockx_image_draw_circle
rockx_ret_t rockx_image_draw_circle(rockx_image_t *img, rockx_point_t point, int radius, rockx_color_t color, int thickness)
rockx_image_draw_text
rockx_ret_t rockx_image_draw_text(rockx_image_t *img, const char *text, rockx_point_t pt, rockx_color_t color, int thickness)
rockx_image_write
rockx_ret_t rockx_image_write(const char *path, rockx_image_t *img)
rockx_image_read
rockx_ret_t rockx_image_read(const char *img_path, rockx_image_t *image, int flag)
rockx_pixel_format
rockx_pixel_format
Image Pixel Format.
Definition: rockx_type.h:45
rockx_image_draw_line
rockx_ret_t rockx_image_draw_line(rockx_image_t *img, rockx_point_t pt1, rockx_point_t pt2, rockx_color_t color, int thickness)
rockx_point_t
Point.
Definition: rockx_type.h:86
rockx_image_t
Image.
Definition: rockx_type.h:122
rockx_image_clone
rockx_image_t * rockx_image_clone(rockx_image_t *img)
rockx_image_draw_rect
rockx_ret_t rockx_image_draw_rect(rockx_image_t *img, rockx_point_t pt1, rockx_point_t pt2, rockx_color_t color, int thickness)
rockx_image_convert
rockx_ret_t rockx_image_convert(rockx_image_t *src, rockx_image_t *dst, int dst_width, int dst_heigh, rockx_pixel_format dst_pixel_format)