Mercurial > mplayer.hg
comparison libvo/video_out.c @ 28591:7ca6dcad8cc0
Cropping parameter to calc_src_dst_rects is const
author | reimar |
---|---|
date | Tue, 17 Feb 2009 08:09:36 +0000 |
parents | 7d42a45c225d |
children | 4172d83194f2 |
comparison
equal
deleted
inserted
replaced
28590:d1ca19ff9b52 | 28591:7ca6dcad8cc0 |
---|---|
386 * get a correctly scaled picture, including pan-scan. | 386 * get a correctly scaled picture, including pan-scan. |
387 * Can be extended to take future cropping support into account. | 387 * Can be extended to take future cropping support into account. |
388 * | 388 * |
389 * \param crop specifies the cropping border size in the left, right, top and bottom members, may be NULL | 389 * \param crop specifies the cropping border size in the left, right, top and bottom members, may be NULL |
390 */ | 390 */ |
391 void calc_src_dst_rects(int src_width, int src_height, struct vo_rect *src, struct vo_rect *dst, struct vo_rect *crop) { | 391 void calc_src_dst_rects(int src_width, int src_height, struct vo_rect *src, struct vo_rect *dst, const struct vo_rect *crop) { |
392 static const struct vo_rect no_crop = {0, 0, 0, 0, 0, 0}; | 392 static const struct vo_rect no_crop = {0, 0, 0, 0, 0, 0}; |
393 int scaled_width = 0; | 393 int scaled_width = 0; |
394 int scaled_height = 0; | 394 int scaled_height = 0; |
395 if (!crop) crop = &no_crop; | 395 if (!crop) crop = &no_crop; |
396 src_width -= crop->left + crop->right; | 396 src_width -= crop->left + crop->right; |