diff options
Diffstat (limited to 'thirdparties/win32/include/directshow/mtype.h')
-rwxr-xr-x | thirdparties/win32/include/directshow/mtype.h | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/thirdparties/win32/include/directshow/mtype.h b/thirdparties/win32/include/directshow/mtype.h index 9402f06..0a5d189 100755 --- a/thirdparties/win32/include/directshow/mtype.h +++ b/thirdparties/win32/include/directshow/mtype.h @@ -15,7 +15,8 @@ types etc. Has same data members as the struct AM_MEDIA_TYPE defined in the streams IDL file, but also has (non-virtual) functions */ -class CMediaType : public _AMMediaType { +class CMediaType : public _AMMediaType +{ public: @@ -36,13 +37,21 @@ public: BOOL IsValid() const; - const GUID *Type() const { return &majortype;} ; + const GUID *Type() const { + return &majortype; + } ; void SetType(const GUID *); - const GUID *Subtype() const { return &subtype;} ; + const GUID *Subtype() const { + return &subtype; + } ; void SetSubtype(const GUID *); - BOOL IsFixedSize() const {return bFixedSizeSamples; }; - BOOL IsTemporalCompressed() const {return bTemporalCompression; }; + BOOL IsFixedSize() const { + return bFixedSizeSamples; + }; + BOOL IsTemporalCompressed() const { + return bTemporalCompression; + }; ULONG GetSampleSize() const; void SetSampleSize(ULONG sz); @@ -52,11 +61,17 @@ public: // read/write pointer to format - can't change length without // calling SetFormat, AllocFormatBuffer or ReallocFormatBuffer - BYTE* Format() const {return pbFormat; }; - ULONG FormatLength() const { return cbFormat; }; + BYTE* Format() const { + return pbFormat; + }; + ULONG FormatLength() const { + return cbFormat; + }; void SetFormatType(const GUID *); - const GUID *FormatType() const {return &formattype; }; + const GUID *FormatType() const { + return &formattype; + }; BOOL SetFormat(__in_bcount(length) BYTE *pFormat, ULONG length); void ResetFormatBuffer(); BYTE* AllocFormatBuffer(ULONG length); |