JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 3: Multimedia Library Functions     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Multimedia Library Functions - Part 1

Multimedia Library Functions - Part 2

Multimedia Library Functions - Part 3

Multimedia Library Functions - Part 4

Multimedia Library Functions - Part 5

Multimedia Library Functions - Part 6

Multimedia Library Functions - Part 7

mlib_VideoColorABGR2RGB(3MLIB)

mlib_VideoColorABGRint_to_ARGBint(3MLIB)

mlib_VideoColorARGB2JFIFYCC420(3MLIB)

mlib_VideoColorARGB2JFIFYCC422(3MLIB)

mlib_VideoColorARGB2JFIFYCC444(3MLIB)

mlib_VideoColorARGB2RGB(3MLIB)

mlib_VideoColorBGR2JFIFYCC420(3MLIB)

mlib_VideoColorBGR2JFIFYCC422(3MLIB)

mlib_VideoColorBGR2JFIFYCC444(3MLIB)

mlib_VideoColorBGR2JFIFYCC444_S16(3MLIB)

mlib_VideoColorBGRAint_to_ABGRint(3MLIB)

mlib_VideoColorBGRint_to_ABGRint(3MLIB)

mlib_VideoColorBlendABGR(3MLIB)

mlib_VideoColorBlendABGR_Inp(3MLIB)

mlib_VideoColorBlendABGR_ResetAlpha(3MLIB)

mlib_VideoColorBlendABGR_ResetAlpha_Inp(3MLIB)

mlib_VideoColorCMYK2JFIFYCCK444(3MLIB)

mlib_VideoColorJFIFYCC2ABGR444(3MLIB)

mlib_VideoColorJFIFYCC2ARGB444(3MLIB)

mlib_VideoColorJFIFYCC2RGB420(3MLIB)

mlib_VideoColorJFIFYCC2RGB420_Nearest(3MLIB)

mlib_VideoColorJFIFYCC2RGB422(3MLIB)

mlib_VideoColorJFIFYCC2RGB422_Nearest(3MLIB)

mlib_VideoColorJFIFYCC2RGB444(3MLIB)

mlib_VideoColorJFIFYCC2RGB444_S16(3MLIB)

mlib_VideoColorJFIFYCCK2CMYK444(3MLIB)

mlib_VideoColorMerge2(3MLIB)

mlib_VideoColorMerge2_S16(3MLIB)

mlib_VideoColorMerge3(3MLIB)

mlib_VideoColorMerge3_S16(3MLIB)

mlib_VideoColorMerge4(3MLIB)

mlib_VideoColorMerge4_S16(3MLIB)

mlib_VideoColorResizeABGR(3MLIB)

mlib_VideoColorRGB2ABGR(3MLIB)

mlib_VideoColorRGB2ARGB(3MLIB)

mlib_VideoColorRGB2JFIFYCC420(3MLIB)

mlib_VideoColorRGB2JFIFYCC422(3MLIB)

mlib_VideoColorRGB2JFIFYCC444(3MLIB)

mlib_VideoColorRGB2JFIFYCC444_S16(3MLIB)

mlib_VideoColorRGBAint_to_ABGRint(3MLIB)

mlib_VideoColorRGBint_to_ABGRint(3MLIB)

mlib_VideoColorRGBint_to_BGRAint(3MLIB)

mlib_VideoColorRGBseq_to_ABGRint(3MLIB)

mlib_VideoColorRGBXint_to_ABGRint(3MLIB)

mlib_VideoColorRGBXint_to_ARGBint(3MLIB)

mlib_VideoColorSplit2(3MLIB)

mlib_VideoColorSplit2_S16(3MLIB)

mlib_VideoColorSplit3(3MLIB)

mlib_VideoColorSplit3_S16(3MLIB)

mlib_VideoColorSplit4(3MLIB)

mlib_VideoColorSplit4_S16(3MLIB)

mlib_VideoColorUYV444int_to_ABGRint(3MLIB)

mlib_VideoColorUYV444int_to_ARGBint(3MLIB)

mlib_VideoColorUYV444int_to_UYVY422int(3MLIB)

mlib_VideoColorUYV444int_to_YUYV422int(3MLIB)

mlib_VideoColorUYVY422int_to_ABGRint(3MLIB)

mlib_VideoColorUYVY422int_to_ARGBint(3MLIB)

mlib_VideoColorXRGBint_to_ABGRint(3MLIB)

mlib_VideoColorXRGBint_to_ARGBint(3MLIB)

mlib_VideoColorYUV2ABGR411(3MLIB)

mlib_VideoColorYUV2ABGR420(3MLIB)

mlib_VideoColorYUV2ABGR420_W(3MLIB)

mlib_VideoColorYUV2ABGR420_WX2(3MLIB)

mlib_VideoColorYUV2ABGR420_WX3(3MLIB)

mlib_VideoColorYUV2ABGR420_X2(3MLIB)

mlib_VideoColorYUV2ABGR420_X3(3MLIB)

mlib_VideoColorYUV2ABGR422(3MLIB)

mlib_VideoColorYUV2ABGR444(3MLIB)

mlib_VideoColorYUV2ARGB411(3MLIB)

mlib_VideoColorYUV2ARGB420(3MLIB)

mlib_VideoColorYUV2ARGB422(3MLIB)

mlib_VideoColorYUV2ARGB444(3MLIB)

mlib_VideoColorYUV2RGB411(3MLIB)

mlib_VideoColorYUV2RGB420(3MLIB)

mlib_VideoColorYUV2RGB422(3MLIB)

mlib_VideoColorYUV2RGB444(3MLIB)

mlib_VideoColorYUV411seq_to_ABGRint(3MLIB)

mlib_VideoColorYUV411seq_to_ARGBint(3MLIB)

mlib_VideoColorYUV411seq_to_UYVY422int(3MLIB)

mlib_VideoColorYUV411seq_to_YUYV422int(3MLIB)

mlib_VideoColorYUV420seq_to_ABGRint(3MLIB)

mlib_VideoColorYUV420seq_to_ARGBint(3MLIB)

mlib_VideoColorYUV420seq_to_UYVY422int(3MLIB)

mlib_VideoColorYUV420seq_to_YUYV422int(3MLIB)

mlib_VideoColorYUV422seq_to_ABGRint(3MLIB)

mlib_VideoColorYUV422seq_to_ARGBint(3MLIB)

mlib_VideoColorYUV422seq_to_UYVY422int(3MLIB)

mlib_VideoColorYUV422seq_to_YUYV422int(3MLIB)

mlib_VideoColorYUV444int_to_ABGRint(3MLIB)

mlib_VideoColorYUV444int_to_ARGBint(3MLIB)

mlib_VideoColorYUV444int_to_UYVY422int(3MLIB)

mlib_VideoColorYUV444int_to_YUYV422int(3MLIB)

mlib_VideoColorYUV444seq_to_ABGRint(3MLIB)

mlib_VideoColorYUV444seq_to_ARGBint(3MLIB)

mlib_VideoColorYUV444seq_to_UYVY422int(3MLIB)

mlib_VideoColorYUV444seq_to_YUYV422int(3MLIB)

mlib_VideoColorYUYV422int_to_ABGRint(3MLIB)

mlib_VideoColorYUYV422int_to_ARGBint(3MLIB)

mlib_VideoCopyRefAve_U8_U8_16x16(3MLIB)

mlib_VideoCopyRefAve_U8_U8_16x8(3MLIB)

mlib_VideoCopyRefAve_U8_U8(3MLIB)

mlib_VideoCopyRefAve_U8_U8_8x16(3MLIB)

mlib_VideoCopyRefAve_U8_U8_8x4(3MLIB)

mlib_VideoCopyRefAve_U8_U8_8x8(3MLIB)

mlib_VideoCopyRef_S16_U8_16x16(3MLIB)

mlib_VideoCopyRef_S16_U8_16x8(3MLIB)

mlib_VideoCopyRef_S16_U8(3MLIB)

mlib_VideoCopyRef_S16_U8_8x16(3MLIB)

mlib_VideoCopyRef_S16_U8_8x4(3MLIB)

mlib_VideoCopyRef_S16_U8_8x8(3MLIB)

mlib_VideoCopyRef_U8_U8_16x16(3MLIB)

mlib_VideoCopyRef_U8_U8_16x8(3MLIB)

mlib_VideoCopyRef_U8_U8(3MLIB)

mlib_VideoCopyRef_U8_U8_8x16(3MLIB)

mlib_VideoCopyRef_U8_U8_8x4(3MLIB)

mlib_VideoCopyRef_U8_U8_8x8(3MLIB)

mlib_VideoDCT16x16_S16_S16(3MLIB)

mlib_VideoDCT16x16_S16_S16_B10(3MLIB)

mlib_VideoDCT2x2_S16_S16(3MLIB)

mlib_VideoDCT4x4_S16_S16(3MLIB)

mlib_VideoDCT8x8Quantize_S16_S16_B12(3MLIB)

mlib_VideoDCT8x8Quantize_S16_S16_B12_NA(3MLIB)

mlib_VideoDCT8x8Quantize_S16_U8(3MLIB)

mlib_VideoDCT8x8Quantize_S16_U8_NA(3MLIB)

mlib_VideoDCT8x8_S16_S16(3MLIB)

mlib_VideoDCT8x8_S16_S16_B10(3MLIB)

mlib_VideoDCT8x8_S16_S16_B10_NA(3MLIB)

mlib_VideoDCT8x8_S16_S16_B12(3MLIB)

mlib_VideoDCT8x8_S16_S16_NA(3MLIB)

mlib_VideoDCT8x8_S16_U8(3MLIB)

mlib_VideoDCT8x8_S16_U8_NA(3MLIB)

mlib_VideoDeQuantizeIDCT8x8_S16_S16_B12(3MLIB)

mlib_VideoDeQuantizeIDCT8x8_S16_S16_B12_NA(3MLIB)

mlib_VideoDeQuantizeIDCT8x8_U8_S16(3MLIB)

mlib_VideoDeQuantizeIDCT8x8_U8_S16_NA(3MLIB)

mlib_VideoDeQuantizeInit_S16(3MLIB)

mlib_VideoDeQuantize_S16(3MLIB)

mlib_VideoDownSample420(3MLIB)

mlib_VideoDownSample420_S16(3MLIB)

mlib_VideoDownSample422(3MLIB)

mlib_VideoDownSample422_S16(3MLIB)

mlib_VideoH263OverlappedMC_S16_U8(3MLIB)

mlib_VideoH263OverlappedMC_U8_U8(3MLIB)

mlib_VideoIDCT8x8_S16_S16(3MLIB)

mlib_VideoIDCT8x8_S16_S16_B12(3MLIB)

mlib_VideoIDCT8x8_S16_S16_B12_NA(3MLIB)

mlib_VideoIDCT8x8_S16_S16_DC(3MLIB)

mlib_VideoIDCT8x8_S16_S16_NA(3MLIB)

mlib_VideoIDCT8x8_S16_S16_Q1(3MLIB)

mlib_VideoIDCT8x8_S16_S16_Q1_Mismatch(3MLIB)

mlib_VideoIDCT8x8_U8_S16(3MLIB)

mlib_VideoIDCT8x8_U8_S16_DC(3MLIB)

mlib_VideoIDCT8x8_U8_S16_NA(3MLIB)

mlib_VideoIDCT8x8_U8_S16_Q1(3MLIB)

mlib_VideoIDCT_IEEE_S16_S16(3MLIB)

mlib_VideoInterpAveX_U8_U8_16x16(3MLIB)

mlib_VideoInterpAveX_U8_U8_16x8(3MLIB)

mlib_VideoInterpAveX_U8_U8(3MLIB)

mlib_VideoInterpAveX_U8_U8_8x16(3MLIB)

mlib_VideoInterpAveX_U8_U8_8x4(3MLIB)

mlib_VideoInterpAveX_U8_U8_8x8(3MLIB)

mlib_VideoInterpAveXY_U8_U8_16x16(3MLIB)

mlib_VideoInterpAveXY_U8_U8_16x8(3MLIB)

mlib_VideoInterpAveXY_U8_U8(3MLIB)

mlib_VideoInterpAveXY_U8_U8_8x16(3MLIB)

mlib_VideoInterpAveXY_U8_U8_8x4(3MLIB)

mlib_VideoInterpAveXY_U8_U8_8x8(3MLIB)

mlib_VideoInterpAveY_U8_U8_16x16(3MLIB)

mlib_VideoInterpAveY_U8_U8_16x8(3MLIB)

mlib_VideoInterpAveY_U8_U8(3MLIB)

mlib_VideoInterpAveY_U8_U8_8x16(3MLIB)

mlib_VideoInterpAveY_U8_U8_8x4(3MLIB)

mlib_VideoInterpAveY_U8_U8_8x8(3MLIB)

mlib_VideoInterpX_S16_U8_16x16(3MLIB)

mlib_VideoInterpX_S16_U8_16x8(3MLIB)

mlib_VideoInterpX_S16_U8(3MLIB)

mlib_VideoInterpX_S16_U8_8x16(3MLIB)

mlib_VideoInterpX_S16_U8_8x4(3MLIB)

mlib_VideoInterpX_S16_U8_8x8(3MLIB)

mlib_VideoInterpX_U8_U8_16x16(3MLIB)

mlib_VideoInterpX_U8_U8_16x8(3MLIB)

mlib_VideoInterpX_U8_U8(3MLIB)

mlib_VideoInterpX_U8_U8_8x16(3MLIB)

mlib_VideoInterpX_U8_U8_8x4(3MLIB)

mlib_VideoInterpX_U8_U8_8x8(3MLIB)

mlib_VideoInterpXY_S16_U8_16x16(3MLIB)

mlib_VideoInterpXY_S16_U8_16x8(3MLIB)

mlib_VideoInterpXY_S16_U8(3MLIB)

mlib_VideoInterpXY_S16_U8_8x16(3MLIB)

mlib_VideoInterpXY_S16_U8_8x4(3MLIB)

mlib_VideoInterpXY_S16_U8_8x8(3MLIB)

mlib_VideoInterpXY_U8_U8_16x16(3MLIB)

mlib_VideoInterpXY_U8_U8_16x8(3MLIB)

mlib_VideoInterpXY_U8_U8(3MLIB)

mlib_VideoInterpXY_U8_U8_8x16(3MLIB)

mlib_VideoInterpXY_U8_U8_8x4(3MLIB)

mlib_VideoInterpXY_U8_U8_8x8(3MLIB)

mlib_VideoInterpX_Y_XY_U8_U8(3MLIB)

mlib_VideoInterpY_S16_U8_16x16(3MLIB)

mlib_VideoInterpY_S16_U8_16x8(3MLIB)

mlib_VideoInterpY_S16_U8(3MLIB)

mlib_VideoInterpY_S16_U8_8x16(3MLIB)

mlib_VideoInterpY_S16_U8_8x4(3MLIB)

mlib_VideoInterpY_S16_U8_8x8(3MLIB)

mlib_VideoInterpY_U8_U8_16x16(3MLIB)

mlib_VideoInterpY_U8_U8_16x8(3MLIB)

mlib_VideoInterpY_U8_U8(3MLIB)

mlib_VideoInterpY_U8_U8_8x16(3MLIB)

mlib_VideoInterpY_U8_U8_8x4(3MLIB)

mlib_VideoInterpY_U8_U8_8x8(3MLIB)

mlib_VideoP64Decimate_U8_U8(3MLIB)

mlib_VideoP64Loop_S16_U8(3MLIB)

mlib_VideoP64Loop_U8_U8(3MLIB)

mlib_VideoQuantizeInit_S16(3MLIB)

mlib_VideoQuantize_S16(3MLIB)

mlib_VideoReversibleColorRGB2YUV_S16_S16(3MLIB)

mlib_VideoReversibleColorRGB2YUV_S16_U8(3MLIB)

mlib_VideoReversibleColorRGB2YUV_S32_S16(3MLIB)

mlib_VideoReversibleColorRGB2YUV_U8_U8(3MLIB)

mlib_VideoReversibleColorYUV2RGB_S16_S16(3MLIB)

mlib_VideoReversibleColorYUV2RGB_S16_S32(3MLIB)

mlib_VideoReversibleColorYUV2RGB_U8_S16(3MLIB)

mlib_VideoReversibleColorYUV2RGB_U8_U8(3MLIB)

mlib_VideoSignMagnitudeConvert_S16(3MLIB)

mlib_VideoSignMagnitudeConvert_S16_S16(3MLIB)

mlib_VideoSignMagnitudeConvert_S32(3MLIB)

mlib_VideoSignMagnitudeConvert_S32_S32(3MLIB)

mlib_VideoSumAbsDiff(3MLIB)

mlib_VideoUpSample420(3MLIB)

mlib_VideoUpSample420_Nearest(3MLIB)

mlib_VideoUpSample420_Nearest_S16(3MLIB)

mlib_VideoUpSample420_S16(3MLIB)

mlib_VideoUpSample422(3MLIB)

mlib_VideoUpSample422_Nearest(3MLIB)

mlib_VideoUpSample422_Nearest_S16(3MLIB)

mlib_VideoUpSample422_S16(3MLIB)

mlib_VideoWaveletForwardTwoTenTrans(3MLIB)

mlib_VideoWaveletForwardTwoTenTrans_S16_S16(3MLIB)

mlib_VideoWaveletForwardTwoTenTrans_S16_U8(3MLIB)

mlib_VideoWaveletForwardTwoTenTrans_S32_S16(3MLIB)

mlib_VideoWaveletForwardTwoTenTrans_S32_S32(3MLIB)

mlib_VideoWaveletInverseTwoTenTrans(3MLIB)

mlib_VideoWaveletInverseTwoTenTrans_S16_S16(3MLIB)

mlib_VideoWaveletInverseTwoTenTrans_S16_S32(3MLIB)

mlib_VideoWaveletInverseTwoTenTrans_S32_S32(3MLIB)

mlib_VideoWaveletInverseTwoTenTrans_U8_S16(3MLIB)

mlib_VolumeFindMaxBMask_S16(3MLIB)

mlib_VolumeFindMaxBMask_U8(3MLIB)

mlib_VolumeFindMaxCMask_S16(3MLIB)

mlib_VolumeFindMaxCMask_U8(3MLIB)

mlib_VolumeFindMax_S16(3MLIB)

mlib_VolumeFindMax_U8(3MLIB)

mlib_VolumeRayCast_Blocked(3MLIB)

mlib_VolumeRayCast_Blocked_Divergent_Nearest_S16_S16(3MLIB)

mlib_VolumeRayCast_Blocked_Divergent_Nearest_U8_U8(3MLIB)

mlib_VolumeRayCast_Blocked_Divergent_Trilinear_S16_S16(3MLIB)

mlib_VolumeRayCast_Blocked_Divergent_Trilinear_U8_U8(3MLIB)

mlib_VolumeRayCast_Blocked_Parallel_Nearest_S16_S16(3MLIB)

mlib_VolumeRayCast_Blocked_Parallel_Nearest_U8_U8(3MLIB)

mlib_VolumeRayCast_Blocked_Parallel_Trilinear_S16_S16(3MLIB)

mlib_VolumeRayCast_Blocked_Parallel_Trilinear_U8_U8(3MLIB)

mlib_VolumeRayCast_General(3MLIB)

mlib_VolumeRayCast_General_Divergent_Nearest_S16_S16(3MLIB)

mlib_VolumeRayCast_General_Divergent_Nearest_U8_Bit(3MLIB)

mlib_VolumeRayCast_General_Divergent_Nearest_U8_U8(3MLIB)

mlib_VolumeRayCast_General_Divergent_Trilinear_S16_S16(3MLIB)

mlib_VolumeRayCast_General_Divergent_Trilinear_U8_U8(3MLIB)

mlib_VolumeRayCast_General_Parallel_Nearest_S16_S16(3MLIB)

mlib_VolumeRayCast_General_Parallel_Nearest_U8_Bit(3MLIB)

mlib_VolumeRayCast_General_Parallel_Nearest_U8_U8(3MLIB)

mlib_VolumeRayCast_General_Parallel_Trilinear_S16_S16(3MLIB)

mlib_VolumeRayCast_General_Parallel_Trilinear_U8_U8(3MLIB)

mlib_VolumeWindowLevel(3MLIB)

mlib_VideoColorBlendABGR_Inp

, mlib_VideoColorBlendABGR_ResetAlpha_Inp

- in-place image blend

Synopsis

cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>

void mlib_VideoColorBlendABGR_Inp(mlib_u32 *src1dst, 
     const mlib_u32 *src2,mlib_s32 src1dst_w,
     mlib_s32 src1dst_h,mlib_s32 src2_w,
     mlib_s32 src2_h,mlib_s32 src2_x,
     mlib_s32 src2_y,mlib_s32 src1dst_lb,
     mlib_s32 src2_lb,mlib_blend src1dst_blend,
     mlib_blend src2_blend);
void mlib_VideoColorBlendABGR_ResetAlpha_Inp(mlib_u32 *src1dst,
     const mlib_u32 *src2, mlib_s32 src1dst_w,
     mlib_s32 src1dst_h, mlib_s32 src2_w,
     mlib_s32 src2_h, mlib_s32 src2_x,
     mlib_s32 src2_y, mlib_s32 src1dst_lb,
     mlib_s32 src2_lb, mlib_blend src1dst_blend,
     mlib_blend src2_blend);

Description

The functions use the following equation for blending images:

  src1dst = (src1dst * src1dst_blend) + (src2 * src2_blend)

The two multi-banded source images (src1dst and src2) are blended together and the result is stored in src1dst. src1dst_blend specifies the blend function to be applied to the src1dst image and src2_blend specifies the blend function to be applied to the src2 image. src2_x and src2_y specify position of src2 relative to the upper-left corner of src1dst. src2 is clipped to the boundaries of src1dst, if needed.

Possible blend functions are:

  MLIB_BLEND_ZERO
  MLIB_BLEND_ONE
  MLIB_BLEND_SRC_ALPHA
  MLIB_BLEND_ONE_MINUS_SRC_ALPHA
  MLIB_BLEND_DST_ALPHA
  MLIB_BLEND_ONE_MINUS_DST_ALPHA

MLIB_BLEND_DST_ALPHA is the alpha band of image src1 scaled to the range 0 to 1. MLIB_BLEND_SRC_ALPHA is the alpha band of image src2 scaled to the range 0 to 1. The output pixel bands are clamped to the range 0 to 255.

For the mlib_VideoColorBlendABGR_ResetAlpha_Inp() function, the alpha value of every pixel in destination image is set to 0 after blending is complete.

Parameters

Each of the functions takes the following arguments:

src1dst

Pointer to 1st input image (also dest. image).

src2

Pointer to 2nd input image.

src1dst_w

src1dst image width in pixels.

src1dst_h

src1dst image height in rows.

src2_w

src2 image width in pixels.

src2_h

src2 image height in rows.

src2_x

src2 horizontal displacement (in pixels), relative to the upper-left corner of src1dst.

src2_y

src2 vertical displacement (in rows), relative to the upper-left corner of src1dst.

src1dst_lb

Linebytes for src1dst image.

src2_lb

Linebytes for src2 image.

src1dst_blend

Blend function for src1dst image.

src2_blend

Blend function for src2 image.

Return Values

None.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe

See Also

mlib_VideoColorBlendABGR(3MLIB), attributes(5)