Changeset aa0572e5198d28364a8e49730df98843bd702441
- Timestamp:
- 04/02/08 21:51:34
(5 months ago)
- Author:
- Antoine Cellerier <dionoea@videolan.org>
- git-committer:
- Antoine Cellerier <dionoea@videolan.org> 1207165894 +0200
- git-parent:
[6675c2badad10a96f95a6d64dc8296ec4441f267]
- git-author:
- Antoine Cellerier <dionoea@videolan.org> 1207165894 +0200
- Message:
We can do integer math ... as long as sizes are smaller than 2**16 we should be ok :)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r6675c2b |
raa0572e |
|
| 725 | 725 | if( fmt_out.i_width == 0 && fmt_out.i_height > 0 ) |
|---|
| 726 | 726 | { |
|---|
| 727 | | float f = (float)fmt_in.i_height / fmt_out.i_height; |
|---|
| 728 | | fmt_out.i_width = fmt_in.i_width / f; |
|---|
| | 727 | fmt_out.i_width = (fmt_in.i_width * fmt_out.i_height) / fmt_in.i_height; |
|---|
| 729 | 728 | } |
|---|
| 730 | 729 | else if( fmt_out.i_height == 0 && fmt_out.i_width > 0 ) |
|---|
| 731 | 730 | { |
|---|
| 732 | | float f = (float)fmt_in.i_width / fmt_out.i_width; |
|---|
| 733 | | fmt_out.i_height = fmt_in.i_height / f; |
|---|
| | 731 | fmt_out.i_height = (fmt_in.i_height * fmt_out.i_width) / fmt_in.i_width; |
|---|
| 734 | 732 | } |
|---|
| 735 | 733 | else |
|---|