3ds Max C++ API Reference
hotcheck.h File Reference
#include "coreexp.h"

Macros

#define VID_NTSC   0
 
#define VID_PAL   1
 
#define HOT_FLAG   0
 
#define HOT_SCALE_LUM   1
 
#define HOT_SCALE_SAT   2
 

Functions

CoreExport void BuildHotTable (int video_type=VID_NTSC)
 
CoreExport int HotLimit (Color48 *thepix, int method=HOT_SCALE_LUM)
 This method is called to perform the video color check for each pixel. More...
 

Macro Definition Documentation

◆ VID_NTSC

#define VID_NTSC   0

◆ VID_PAL

#define VID_PAL   1

◆ HOT_FLAG

#define HOT_FLAG   0

◆ HOT_SCALE_LUM

#define HOT_SCALE_LUM   1

◆ HOT_SCALE_SAT

#define HOT_SCALE_SAT   2

Function Documentation

◆ BuildHotTable()

CoreExport void BuildHotTable ( int  video_type = VID_NTSC)

◆ HotLimit()

CoreExport int HotLimit ( Color48 thepix,
int  method = HOT_SCALE_LUM 
)

This method is called to perform the video color check for each pixel.

This function can be used to correct a pixel with RGB values that will give "unsafe" values of chrominance signal or composite signal amplitude when encoded into an NTSC or PAL color signal. This happens for certain high-intensity high-saturation colors that are rare in real scenes, but can be present in computer generated images.

Parameters
thepixThe pixel to check and correct if necessary.
methodOne of these values:
  • HOT_FLAG: Flag the pixel as black.
  • HOT_SCALE_LUM: Correct by scaling the luminance.
  • HOT_SCALE_SAT: Correct by scaling the saturation.
Returns
A non-zero value if the color is corrected. Otherwise, zero.