src/Foundation/Media/Gimela.Media.Video.VFW/Win32.cs
/// <summary>
/// .NET replacement of mmioFOURCC macros. Converts four characters to code.
/// </summary>
/// 
/// <param name="str">Four characters string.</param>
/// 
/// <returns>Returns the code created from provided characters.</returns>
/// 
.NET replacement of mmioFOURCC macros. Converts four characters to code.
. NET replacement of mmioFOURCC macros . Converts four characters to code .
public static int mmioFOURCC(string str)
    {
      return (
          ((int)(byte)(str[0])) |
          ((int)(byte)(str[1]) << 8) |
          ((int)(byte)(str[2]) << 16) |
          ((int)(byte)(str[3]) << 24));
    }
public static int mmioFOURCC ( string str ) { return ( ( ( int ) ( byte ) ( str [ 0 ] ) ) | ( ( int ) ( byte ) ( str [ 1 ] ) << 8 ) | ( ( int ) ( byte ) ( str [ 2 ] ) << 16 ) | ( ( int ) ( byte ) ( str [ 3 ] ) << 24 ) ) ; }
.NET replacement of mmioFOURCC macros.
. NET replacement of mmioFOURCC macros .
Returns the code created from provided characters.
Returns the code created from provided characters .
str
string
Four characters string.
Four characters string .