Skip to content

Commit e7453e3

Browse files
authored
Merge pull request #1576 from weanti/master
code documentation updates
2 parents 578c67b + cc6d0c8 commit e7453e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/openjp2/openjpeg.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ typedef void * opj_codec_t;
635635

636636
/*
637637
* Callback function prototype for read function
638+
* @return returns The number of bytes delivered into
639+
* \a p_buffer. -1 signals end of stream.
638640
*/
639641
typedef OPJ_SIZE_T(* opj_stream_read_fn)(void * p_buffer, OPJ_SIZE_T p_nb_bytes,
640642
void * p_user_data) ;
@@ -1239,7 +1241,6 @@ OPJ_API void OPJ_CALLCONV opj_stream_set_user_data(opj_stream_t* p_stream,
12391241

12401242
/**
12411243
* Sets the length of the user data for the stream.
1242-
*
12431244
* @param p_stream the stream to modify
12441245
* @param data_length length of the user_data.
12451246
*/
@@ -1437,6 +1438,8 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_set_decoded_components(opj_codec_t *p_codec,
14371438
* that is to say at the highest resolution level, even if requesting the image at lower
14381439
* resolution levels.
14391440
*
1441+
* Note: If p_start_x, p_start_y, p_end_x, p_end_y are all 0, then the whole image is decoded.
1442+
*
14401443
* Generally opj_set_decode_area() should be followed by opj_decode(), and the
14411444
* codec cannot be re-used.
14421445
* In the particular case of an image made of a single tile, several sequences of

0 commit comments

Comments
 (0)