History

Document vpx_img_set_rect() more precisely

Document the side effects and return value of vpx_img_set_rect() more precisely.

Wan-Teh Chang committed 5 years ago

Commit df7dc311 parent 826d7ca1 file · +3 −2Browse files

Unified · Split

vpx/vpx_image.h+3−2
@@ -171,7 +171,8 @@ vpx_image_t *vpx_img_wrap(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w, · 170 unmodified lines
171171 /*!\brief Set the rectangle identifying the displayed portion of the image
172172 *
173173 * Updates the displayed rectangle (aka viewport) on the image surface to
174− * match the specified coordinates and size.
174+ * match the specified coordinates and size. Specifically, sets img->d_w,
175+ * img->d_h, and elements of the img->planes[] array.
175176 *
176177 * \param[in] img Image descriptor
177178 * \param[in] x leftmost column
@@ -179,7 +180,7 @@ vpx_image_t *vpx_img_wrap(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w, · 1 unmodified line
179180 * \param[in] w width
180181 * \param[in] h height
181182 *
182− * \return 0 if the requested rectangle is valid, nonzero otherwise.
183+ * \return 0 if the requested rectangle is valid, nonzero (-1) otherwise.
183184 */
184185 int vpx_img_set_rect(vpx_image_t *img, unsigned int x, unsigned int y,
185186 unsigned int w, unsigned int h);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t