Revision bf176f58 libavcore/imgutils.h

View differences:

libavcore/imgutils.h
50 50
int av_fill_image_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int height,
51 51
                           uint8_t *ptr, const int linesizes[4]);
52 52

  
53
/**
54
 * Check if the given dimension of an image is valid, meaning that all
55
 * bytes of the image can be addressed with a signed int.
56
 *
57
 * @param w the width of the picture
58
 * @param h the height of the picture
59
 * @param log_offset the offset to sum to the log level for logging with log_ctx
60
 * @param log_ctx the parent logging context, it may be NULL
61
 * @return >= 0 if valid, a negative error code otherwise
62
 */
63
int av_check_image_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx);
64

  
53 65
#endif /* AVCORE_IMGUTILS_H */

Also available in: Unified diff