OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2001-2003 Michael Niedermayer <michaelni@gmx.at> | 2 * Copyright (C) 2001-2003 Michael Niedermayer <michaelni@gmx.at> |
3 * | 3 * |
4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
5 * | 5 * |
6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 /** | 24 /** |
25 * @file libswscale/swscale.h | 25 * @file libswscale/swscale.h |
26 * @brief | 26 * @brief |
27 * external api for the swscale stuff | 27 * external api for the swscale stuff |
28 */ | 28 */ |
29 | 29 |
30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
31 | 31 |
32 #define LIBSWSCALE_VERSION_MAJOR 0 | 32 #define LIBSWSCALE_VERSION_MAJOR 0 |
33 #define LIBSWSCALE_VERSION_MINOR 9 | 33 #define LIBSWSCALE_VERSION_MINOR 10 |
34 #define LIBSWSCALE_VERSION_MICRO 0 | 34 #define LIBSWSCALE_VERSION_MICRO 0 |
35 | 35 |
36 #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \ | 36 #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \ |
37 LIBSWSCALE_VERSION_MINOR, \ | 37 LIBSWSCALE_VERSION_MINOR, \ |
38 LIBSWSCALE_VERSION_MICRO) | 38 LIBSWSCALE_VERSION_MICRO) |
39 #define LIBSWSCALE_VERSION AV_VERSION(LIBSWSCALE_VERSION_MAJOR, \ | 39 #define LIBSWSCALE_VERSION AV_VERSION(LIBSWSCALE_VERSION_MAJOR, \ |
40 LIBSWSCALE_VERSION_MINOR, \ | 40 LIBSWSCALE_VERSION_MINOR, \ |
41 LIBSWSCALE_VERSION_MICRO) | 41 LIBSWSCALE_VERSION_MICRO) |
42 #define LIBSWSCALE_BUILD LIBSWSCALE_VERSION_INT | 42 #define LIBSWSCALE_BUILD LIBSWSCALE_VERSION_INT |
43 | 43 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 #define SWS_MAX_REDUCE_CUTOFF 0.002 | 96 #define SWS_MAX_REDUCE_CUTOFF 0.002 |
97 | 97 |
98 #define SWS_CS_ITU709 1 | 98 #define SWS_CS_ITU709 1 |
99 #define SWS_CS_FCC 4 | 99 #define SWS_CS_FCC 4 |
100 #define SWS_CS_ITU601 5 | 100 #define SWS_CS_ITU601 5 |
101 #define SWS_CS_ITU624 5 | 101 #define SWS_CS_ITU624 5 |
102 #define SWS_CS_SMPTE170M 5 | 102 #define SWS_CS_SMPTE170M 5 |
103 #define SWS_CS_SMPTE240M 7 | 103 #define SWS_CS_SMPTE240M 7 |
104 #define SWS_CS_DEFAULT 5 | 104 #define SWS_CS_DEFAULT 5 |
105 | 105 |
| 106 /** |
| 107 * Returns a pointer to yuv<->rgb coefficients for the given colorspace |
| 108 * suitable for sws_setColorspaceDetails(). |
| 109 * |
| 110 * @param colorspace One of the SWS_CS_* macros. If invalid, |
| 111 * SWS_CS_DEFAULT is used. |
| 112 */ |
| 113 const int *sws_getCoefficients(int colorspace); |
106 | 114 |
107 | 115 |
108 // when used for filters they must have an odd number of elements | 116 // when used for filters they must have an odd number of elements |
109 // coeffs cannot be shared between vectors | 117 // coeffs cannot be shared between vectors |
110 typedef struct { | 118 typedef struct { |
111 double *coeff; ///< pointer to the list of coefficients | 119 double *coeff; ///< pointer to the list of coefficients |
112 int length; ///< number of coefficients in the vector | 120 int length; ///< number of coefficients in the vector |
113 } SwsVector; | 121 } SwsVector; |
114 | 122 |
115 // vectors can be shared | 123 // vectors can be shared |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 * Be warned that srcFilter and dstFilter are not checked, they | 296 * Be warned that srcFilter and dstFilter are not checked, they |
289 * are assumed to remain the same. | 297 * are assumed to remain the same. |
290 */ | 298 */ |
291 struct SwsContext *sws_getCachedContext(struct SwsContext *context, | 299 struct SwsContext *sws_getCachedContext(struct SwsContext *context, |
292 int srcW, int srcH, enum PixelFormat src
Format, | 300 int srcW, int srcH, enum PixelFormat src
Format, |
293 int dstW, int dstH, enum PixelFormat dst
Format, | 301 int dstW, int dstH, enum PixelFormat dst
Format, |
294 int flags, SwsFilter *srcFilter, | 302 int flags, SwsFilter *srcFilter, |
295 SwsFilter *dstFilter, const double *para
m); | 303 SwsFilter *dstFilter, const double *para
m); |
296 | 304 |
297 #endif /* SWSCALE_SWSCALE_H */ | 305 #endif /* SWSCALE_SWSCALE_H */ |
OLD | NEW |