Class MFHelpers
Namespace: JeremyAnsel.DirectX.MediaFoundation
Assembly: JeremyAnsel.DirectX.MediaFoundation.dll
[SecurityCritical]
public static class MFHelpers
Methods
|
Edit this page
View Source
Declaration
public static void AverageTimePerFrameToFrameRate(ulong unAverageTimePerFrame, out uint punNumerator, out uint punDenominator)
Parameters
| Type |
Name |
Description |
| ulong |
unAverageTimePerFrame |
|
| uint |
punNumerator |
|
| uint |
punDenominator |
|
|
Edit this page
View Source
Declaration
public static uint CalculateImageSize(Guid guidSubtype, uint unWidth, uint unHeight)
Parameters
| Type |
Name |
Description |
| Guid |
guidSubtype |
|
| uint |
unWidth |
|
| uint |
unHeight |
|
Returns
|
Edit this page
View Source
Declaration
public static ulong FrameRateToAverageTimePerFrame(uint unNumerator, uint unDenominator)
Parameters
| Type |
Name |
Description |
| uint |
unNumerator |
|
| uint |
unDenominator |
|
Returns
|
Edit this page
View Source
Declaration
public static uint HI32(ulong unPacked)
Parameters
| Type |
Name |
Description |
| ulong |
unPacked |
|
Returns
|
Edit this page
View Source
Declaration
public static uint LO32(ulong unPacked)
Parameters
| Type |
Name |
Description |
| ulong |
unPacked |
|
Returns
|
Edit this page
View Source
Declaration
public static ulong Pack2UINT32AsUINT64(uint unHigh, uint unLow)
Parameters
| Type |
Name |
Description |
| uint |
unHigh |
|
| uint |
unLow |
|
Returns
|
Edit this page
View Source
Declaration
public static ulong PackRatio(int nNumerator, uint unDenominator)
Parameters
| Type |
Name |
Description |
| int |
nNumerator |
|
| uint |
unDenominator |
|
Returns
|
Edit this page
View Source
Declaration
public static ulong PackSize(uint unWidth, uint unHeight)
Parameters
| Type |
Name |
Description |
| uint |
unWidth |
|
| uint |
unHeight |
|
Returns
|
Edit this page
View Source
Declaration
public static void Unpack2UINT32AsUINT64(ulong unPacked, out uint punHigh, out uint punLow)
Parameters
|
Edit this page
View Source
Declaration
public static void UnpackRatio(ulong unPacked, out int pnNumerator, out uint punDenominator)
Parameters
| Type |
Name |
Description |
| ulong |
unPacked |
|
| int |
pnNumerator |
|
| uint |
punDenominator |
|
|
Edit this page
View Source
Declaration
public static void UnpackSize(ulong unPacked, out uint punWidth, out uint punHeight)
Parameters
| Type |
Name |
Description |
| ulong |
unPacked |
|
| uint |
punWidth |
|
| uint |
punHeight |
|