summaryrefslogtreecommitdiff
path: root/libswscale/swscale_internal.h
diff options
context:
space:
mode:
authorPedro Arthur <bygrandao@gmail.com>2015-04-17 17:08:42 -0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-23 20:34:51 +0200
commit2a7128f4ed00dbc9209d6f24501bb76a0c14b490 (patch)
tree3a739ba52c2afdac13319c1b90c111239c7d1ebf /libswscale/swscale_internal.h
parentd9555adf06d55f7311d0b8be5bbe52f056ccaac7 (diff)
Add gamma encodign/decoding before/after scaling in libswscale
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r--libswscale/swscale_internal.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 55f683f5be..fad33b2d41 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -307,9 +307,16 @@ typedef struct SwsContext {
* sequential steps, this is for example used to limit the maximum
* downscaling factor that needs to be supported in one scaler.
*/
- struct SwsContext *cascaded_context[2];
+ struct SwsContext *cascaded_context[3];
int cascaded_tmpStride[4];
uint8_t *cascaded_tmp[4];
+ int cascaded1_tmpStride[4];
+ uint8_t *cascaded1_tmp[4];
+
+ double gamma_value;
+ int gamma_flag;
+ uint16_t *gamma;
+ uint16_t *inv_gamma;
uint32_t pal_yuv[256];
uint32_t pal_rgb[256];