Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_scopes.c
| Context not available. | |||||
| #include "IMB_imbuf_types.h" | #include "IMB_imbuf_types.h" | ||||
| #include "IMB_imbuf.h" | #include "IMB_imbuf.h" | ||||
| #include "IMB_colormanagement.h" | |||||
| #include "sequencer_intern.h" | #include "sequencer_intern.h" | ||||
| Context not available. | |||||
| for (x = 0; x < ibuf->x; x++) { | for (x = 0; x < ibuf->x; x++) { | ||||
| const unsigned char *rgb = src + 4 * (ibuf->x * y + x); | const unsigned char *rgb = src + 4 * (ibuf->x * y + x); | ||||
| float v = (float)rgb_to_luma_byte(rgb) / 255.0f; | float v = (float)IMB_colormanagement_get_luminance_byte(rgb) / 255.0f; | ||||
| unsigned char *p = tgt; | unsigned char *p = tgt; | ||||
| p += 4 * (w * ((int) (v * (h - 3)) + 1) + x + 1); | p += 4 * (w * ((int) (v * (h - 3)) + 1) + x + 1); | ||||
| Context not available. | |||||
| for (x = 0; x < ibuf->x; x++) { | for (x = 0; x < ibuf->x; x++) { | ||||
| const float *rgb = src + 4 * (ibuf->x * y + x); | const float *rgb = src + 4 * (ibuf->x * y + x); | ||||
| float v = rgb_to_luma(rgb); | float v = IMB_colormanagement_get_luminance(rgb); | ||||
| unsigned char *p = tgt; | unsigned char *p = tgt; | ||||
| CLAMP(v, 0.0f, 1.0f); | CLAMP(v, 0.0f, 1.0f); | ||||
| Context not available. | |||||