File: aspect_ratio.h

package info (click to toggle)
jp2a 1.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,076 kB
  • sloc: ansic: 2,244; sh: 159; makefile: 51
file content (23 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*! \file
 * \noop Copyright 2006-2016 Christian Stigen Larsen
 * \noop Copyright 2020 Christoph Raitzig
 * 
 * \brief Function for calculating the output width or height.
 *
 * \author Christian Stigen Larsen
 * \author Christoph Raitzig
 * \copyright Distributed under the GNU General Public License (GPL) v2.
 */

#ifndef INC_JP2A_ASPECT_RATIO_H
#define INC_JP2A_ASPECT_RATIO_H

/*!
 * \brief Calculate the output width or height, but not both.
 *
 * \param jpeg_width,jpeg_height dimensions of the input image
 * \param switch_x_y whether to switch x and y dimensions, this is the case when the stored pixels differ from the displayed pixels due to a rotation
 */
void aspect_ratio(const int jpeg_width, const int jpeg_height, const int switch_x_y);

#endif