Skip to content

Commit c43b35a

Browse files
committed
E2.2 API documentation
1 parent fdce6a4 commit c43b35a

File tree

3 files changed

+51
-6
lines changed

3 files changed

+51
-6
lines changed

include/shveu/shveu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ extern "C" {
8686

8787
/**
8888
* Open a VEU device.
89+
* \retval 0 Success
8990
*/
9091
int shveu_open(void);
9192

include/shveu/veu_colorspace.h

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,52 @@
1717
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
1818
*/
1919

20-
/* Image/Video processing: Scale, rotate, crop, color conversion */
20+
/** \file
21+
* Image/Video processing: Scale, rotate, crop, color conversion
22+
*/
2123

2224
#ifndef __VEU_COLORSPACE_H__
2325
#define __VEU_COLORSPACE_H__
2426

27+
/** Rotation */
2528
enum {
29+
/** No rotation */
2630
SHVEU_NO_ROT=0,
31+
32+
/** Rotate 90 degrees clockwise */
2733
SHVEU_ROT_90,
2834
};
2935

30-
/* Image formats */
36+
/** Image formats */
3137
enum {
38+
/** RGB565 */
3239
SHVEU_RGB565=0,
40+
41+
/** YCbCr 4:2:0 */
3342
SHVEU_YCbCr420,
43+
44+
/** YCbCr 4:2:2 */
3445
SHVEU_YCbCr422,
3546
};
3647

37-
/* Perform (scale|rotate) & crop between YCbCr 4:2:0 & RG565 surfaces */
48+
/** Perform (scale|rotate) & crop between YCbCr 4:2:0 & RG565 surfaces
49+
* \param veu_index Index of which VEU to use
50+
* \param src_py Pointer to Y or RGB plane of source image
51+
* \param src_pc Pointer to CbCr plane of source image (ignored for RGB)
52+
* \param src_width Width in pixels of source image
53+
* \param src_height Height in pixels of source image
54+
* \param src_pitch Line pitch of source image
55+
* \param src_format Format of source image
56+
* \param dst_py Pointer to Y or RGB plane of destination image
57+
* \param dst_pc Pointer to CbCr plane of destination image (ignored for RGB)
58+
* \param dst_width Width in pixels of destination image
59+
* \param dst_height Height in pixels of destination image
60+
* \param dst_pitch Line pitch of destination image
61+
* \param dst_fmt Format of destination image
62+
* \param rotate Rotation to apply
63+
* \retval 0 Success
64+
* \retval -1 Error: Attempt to perform simultaneous scaling and rotation
65+
*/
3866
int
3967
shveu_operation(
4068
unsigned int veu_index,
@@ -52,15 +80,31 @@ shveu_operation(
5280
int dst_fmt,
5381
int rotate);
5482

55-
/* Perform scale from RG565 to YCbCr 4:2:0 surface */
83+
/** Perform scale from RG565 to YCbCr 4:2:0 surface
84+
* \param rgb565_in Pointer to input RGB565 image
85+
* \param y_out Pointer to output Y plane
86+
* \param c_out Pointer to output CbCr plane
87+
* \param width Width in pixels of image
88+
* \param height Height in pixels of image
89+
* \retval 0 Success
90+
*/
5691
int shveu_rgb565_to_nv12(
5792
unsigned char *rgb565_in,
5893
unsigned char *y_out,
5994
unsigned char *c_out,
6095
unsigned long width,
6196
unsigned long height);
6297

63-
/* Perform color conversion & crop from YCbCr 4:2:0 to RG565 surface */
98+
/** Perform color conversion & crop from YCbCr 4:2:0 to RG565 surface
99+
* \param y_in Pointer to input Y plane
100+
* \param c_in Pointer to input CbCr plane
101+
* \param rgb565_out Pointer to output RGB565 image
102+
* \param width Width in pixels of image
103+
* \param height Height in pixels of image
104+
* \param pitch_in Line pitch of input image
105+
* \param pitch_out Line pitch of output image
106+
* \retval 0 Success
107+
*/
64108
int
65109
shveu_nv12_to_rgb565(
66110
unsigned char *y_in,

libshveu.plan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Project plan: libshveu
99

1010
E2. Make a re-usable library from the existing code
1111
E2.1 Unique symbol naming etc. (Conrad) DONE 2009-06-24
12-
E2.2 API documentation (Phil, Conrad)
12+
E2.2 API documentation (Phil, Conrad) DONE 2009-06-24
1313
E2.3 Simple file i/o example (??)
1414

1515
E3. AIO interface

0 commit comments

Comments
 (0)