123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
-
- #ifndef SWSCALE_CMS_H
- #define SWSCALE_CMS_H
- #include <stdbool.h>
- #include "libavutil/csp.h"
- #include "csputils.h"
- #include "swscale.h"
- #include "utils.h"
- #define PERCEPTUAL_KNEE_MIN 0.10f
- #define PERCEPTUAL_KNEE_MAX 0.80f
- #define PERCEPTUAL_KNEE_DEF 0.40f
- #define PERCEPTUAL_ADAPTATION 0.40f
- #define PERCEPTUAL_DEADZONE 0.30f
- #define PERCEPTUAL_CONTRAST 0.50f
- #define SLOPE_TUNING 1.50f
- #define SLOPE_OFFSET 0.20f
- #define PERCEPTUAL_STRENGTH 0.80f
- #define SOFTCLIP_KNEE 0.70f
- #define COLORIMETRIC_GAMMA 1.80f
- typedef struct SwsColorMap {
- SwsColor src;
- SwsColor dst;
- SwsIntent intent;
- } SwsColorMap;
- bool ff_sws_color_map_noop(const SwsColorMap *map);
- int ff_sws_color_map_generate_static(v3u16_t *lut, int size, const SwsColorMap *map);
- int ff_sws_color_map_generate_dynamic(v3u16_t *input, v3u16_t *output,
- int size_input, int size_I, int size_PT,
- const SwsColorMap *map);
- void ff_sws_tone_map_generate(v2u16_t *lut, int size, const SwsColorMap *map);
- #endif
|