src/Foundation/Media/Gimela.Media.Video.VFW/Win32.cs
/// <summary>
/// Inverse to <see cref="mmioFOURCC"/>. Converts code to fout characters string.
/// </summary>
/// 
/// <param name="code">Code to convert.</param>
/// 
/// <returns>Returns four characters string.</returns>
/// 
Inverse to

. Converts code to fout characters string.
Inverse to . Converts code to fout characters string .
public static string decode_mmioFOURCC(int code)
    {
      char[] chs = new char[4];
      for (int i = 0; i < 4; i++)
      {
        chs[i] = (char)(byte)((code >> (i << 3)) & 0xFF);
        if (!char.IsLetterOrDigit(chs[i]))
          chs[i] = ' ';
      }
      return new string(chs);
    }
public static string decode_mmioFOURCC ( int code ) { char [ ] chs = new char [ 4 ] ; for ( int i = 0 ; i < 4 ; i ++ ) { chs [ i ] = ( char ) ( byte ) ( ( code >> ( i << 3 ) ) & 0xFF ) ; if ( ! char . IsLetterOrDigit ( chs [ i ] ) ) chs [ i ] = ' ' ; } return new string ( chs ) ; }
Inverse to
Inverse to
Returns four characters string.
Returns four characters string .
code
int
Code to convert.
Code to convert .