VideoInputFOURCC

Description

Returns a Long value specifying the video input configuration in FOURCC format.

Syntax
object.VideoInputFOURCC

Remarks

FOURCC is an industry-standard format that describes a video or audio format. The number returned is 32 bits; each 8 bits represents a character, and the four characters together describe the format (note that the order of the characters is right to left). For example, if the hexadecimal value returned is 0x3336326D, this represents the Microsoft H.263 Video Codec (m263).

The following Visual Basic code example converts a FOURCC Long value to a human-readable string:


    HWH = (FOURCC And &HFFFF0000) / &H1000000
    HWL = (FOURCC And &HFF0000) / &H10000
    LWH = FOURCC - (FOURCC And &HFFFF0000)
    LWH = (LWH And &HFF00) / &H100
    LWL = FOURCC - (FOURCC And &HFFFF0000)
    LWL = LWL And &HFF
    FCCS = Chr(LWL) & Chr(LWH) & Chr(HWL) & Chr(HWH)

If 0 (zero) is returned, the format is standard RGB.

See Also

VideoCodecFOURCC

Return to Real-Time Encoder Automation Reference.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.