text:
#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* this ALWAYS GENERATED file contains the definitions for the interfaces */

 /* File created by MIDL compiler version 6.00.0357 */
/* Compiler settings for mediaobj.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data
    VC __declspec() decoration level:
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __mediaobj_h__
#define __mediaobj_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */

#ifndef __IMediaBuffer_FWD_DEFINED__
#define __IMediaBuffer_FWD_DEFINED__
typedef interface IMediaBuffer IMediaBuffer;
#endif 	/* __IMediaBuffer_FWD_DEFINED__ */

#ifndef __IMediaObject_FWD_DEFINED__
#define __IMediaObject_FWD_DEFINED__
typedef interface IMediaObject IMediaObject;
#endif 	/* __IMediaObject_FWD_DEFINED__ */

#ifndef __IEnumDMO_FWD_DEFINED__
#define __IEnumDMO_FWD_DEFINED__
typedef interface IEnumDMO IEnumDMO;
#endif 	/* __IEnumDMO_FWD_DEFINED__ */

#ifndef __IMediaObjectInPlace_FWD_DEFINED__
#define __IMediaObjectInPlace_FWD_DEFINED__
typedef interface IMediaObjectInPlace IMediaObjectInPlace;
#endif 	/* __IMediaObjectInPlace_FWD_DEFINED__ */

#ifndef __IDMOQualityControl_FWD_DEFINED__
#define __IDMOQualityControl_FWD_DEFINED__
typedef interface IDMOQualityControl IDMOQualityControl;
#endif 	/* __IDMOQualityControl_FWD_DEFINED__ */

#ifndef __IDMOVideoOutputOptimizations_FWD_DEFINED__
#define __IDMOVideoOutputOptimizations_FWD_DEFINED__
typedef interface IDMOVideoOutputOptimizations IDMOVideoOutputOptimizations;
#endif 	/* __IDMOVideoOutputOptimizations_FWD_DEFINED__ */

/* header files for imported files */
#include "unknwn.h"
#include "objidl.h"

#ifdef __cplusplus
extern "C"{
#endif

void * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void * );

/* interface __MIDL_itf_mediaobj_0000 */
/* [local] */

#ifdef __strmif_h__
typedef AM_MEDIA_TYPE DMO_MEDIA_TYPE;
#else
typedef struct _DMOMediaType
    {
    GUID majortype;
    GUID subtype;
    BOOL bFixedSizeSamples;
    BOOL bTemporalCompression;
    ULONG lSampleSize;
    GUID formattype;
    IUnknown *pUnk;
    ULONG cbFormat;
    /* [size_is] */ BYTE *pbFormat;
    } 	DMO_MEDIA_TYPE;

typedef LONGLONG REFERENCE_TIME;

#endif

enum _DMO_INPUT_DATA_BUFFER_FLAGS
    {	DMO_INPUT_DATA_BUFFERF_SYNCPOINT	= 0x1,
	DMO_INPUT_DATA_BUFFERF_TIME	= 0x2,
	DMO_INPUT_DATA_BUFFERF_TIMELENGTH	= 0x4
    } ;

enum _DMO_OUTPUT_DATA_BUFFER_FLAGS
    {	DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT	= 0x1,
	DMO_OUTPUT_DATA_BUFFERF_TIME	= 0x2,
	DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH	= 0x4,
	DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE	= 0x1000000
    } ;

enum _DMO_INPUT_STATUS_FLAGS
    {	DMO_INPUT_STATUSF_ACCEPT_DATA	= 0x1
    } ;

enum _DMO_INPUT_STREAM_INFO_FLAGS
    {	DMO_INPUT_STREAMF_WHOLE_SAMPLES	= 0x1,
	DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER	= 0x2,
	DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE	= 0x4,
	DMO_INPUT_STREAMF_HOLDS_BUFFERS	= 0x8
    } ;

enum _DMO_OUTPUT_STREAM_INFO_FLAGS
    {	DMO_OUTPUT_STREAMF_WHOLE_SAMPLES	= 0x1,
	DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER	= 0x2,
	DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE	= 0x4,
	DMO_OUTPUT_STREAMF_DISCARDABLE	= 0x8,
	DMO_OUTPUT_STREAMF_OPTIONAL	= 0x10
    } ;

enum _DMO_SET_TYPE_FLAGS
    {	DMO_SET_TYPEF_TEST_ONLY	= 0x1,
	DMO_SET_TYPEF_CLEAR	= 0x2
    } ;

enum _DMO_PROCESS_OUTPUT_FLAGS
    {	DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER	= 0x1
    } ;

extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0000_v0_0_s_ifspec;

#ifndef __IMediaBuffer_INTERFACE_DEFINED__
#define __IMediaBuffer_INTERFACE_DEFINED__

/* interface IMediaBuffer */
/* [uuid][object] */

EXTERN_C const IID IID_IMediaBuffer;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("59eff8b9-938c-4a26-82f2-95cb84cdc837")
    IMediaBuffer : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE SetLength(
            DWORD cbLength) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetMaxLength(
            /* [out] */ DWORD *pcbMaxLength) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetBufferAndLength(
            /* [out] */ BYTE **ppBuffer,
            /* [out] */ DWORD *pcbLength) = 0;

    };

#else 	/* C style interface */

    typedef struct IMediaBufferVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IMediaBuffer * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IMediaBuffer * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IMediaBuffer * This);

        HRESULT ( STDMETHODCALLTYPE *SetLength )(
            IMediaBuffer * This,
            DWORD cbLength);

        HRESULT ( STDMETHODCALLTYPE *GetMaxLength )(
            IMediaBuffer * This,
            /* [out] */ DWORD *pcbMaxLength);

        HRESULT ( STDMETHODCALLTYPE *GetBufferAndLength )(
            IMediaBuffer * This,
            /* [out] */ BYTE **ppBuffer,
            /* [out] */ DWORD *pcbLength);

        END_INTERFACE
    } IMediaBufferVtbl;

    interface IMediaBuffer
    {
        CONST_VTBL struct IMediaBufferVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IMediaBuffer_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IMediaBuffer_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IMediaBuffer_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IMediaBuffer_SetLength(This,cbLength)	\
    (This)->lpVtbl -> SetLength(This,cbLength)

#define IMediaBuffer_GetMaxLength(This,pcbMaxLength)	\
    (This)->lpVtbl -> GetMaxLength(This,pcbMaxLength)

#define IMediaBuffer_GetBufferAndLength(This,ppBuffer,pcbLength)	\
    (This)->lpVtbl -> GetBufferAndLength(This,ppBuffer,pcbLength)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IMediaBuffer_SetLength_Proxy(
    IMediaBuffer * This,
    DWORD cbLength);

void __RPC_STUB IMediaBuffer_SetLength_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaBuffer_GetMaxLength_Proxy(
    IMediaBuffer * This,
    /* [out] */ DWORD *pcbMaxLength);

void __RPC_STUB IMediaBuffer_GetMaxLength_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaBuffer_GetBufferAndLength_Proxy(
    IMediaBuffer * This,
    /* [out] */ BYTE **ppBuffer,
    /* [out] */ DWORD *pcbLength);

void __RPC_STUB IMediaBuffer_GetBufferAndLength_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IMediaBuffer_INTERFACE_DEFINED__ */

/* interface __MIDL_itf_mediaobj_0090 */
/* [local] */

typedef struct _DMO_OUTPUT_DATA_BUFFER
    {
    IMediaBuffer *pBuffer;
    DWORD dwStatus;
    REFERENCE_TIME rtTimestamp;
    REFERENCE_TIME rtTimelength;
    } 	DMO_OUTPUT_DATA_BUFFER;

typedef struct _DMO_OUTPUT_DATA_BUFFER *PDMO_OUTPUT_DATA_BUFFER;

extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0090_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0090_v0_0_s_ifspec;

#ifndef __IMediaObject_INTERFACE_DEFINED__
#define __IMediaObject_INTERFACE_DEFINED__

/* interface IMediaObject */
/* [uuid][object] */

EXTERN_C const IID IID_IMediaObject;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("d8ad0f58-5494-4102-97c5-ec798e59bcf4")
    IMediaObject : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE GetStreamCount(
            /* [out] */ DWORD *pcInputStreams,
            /* [out] */ DWORD *pcOutputStreams) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetInputStreamInfo(
            DWORD dwInputStreamIndex,
            /* [out] */ DWORD *pdwFlags) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetOutputStreamInfo(
            DWORD dwOutputStreamIndex,
            /* [out] */ DWORD *pdwFlags) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetInputType(
            DWORD dwInputStreamIndex,
            DWORD dwTypeIndex,
            /* [out] */ DMO_MEDIA_TYPE *pmt) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetOutputType(
            DWORD dwOutputStreamIndex,
            DWORD dwTypeIndex,
            /* [out] */ DMO_MEDIA_TYPE *pmt) = 0;

        virtual HRESULT STDMETHODCALLTYPE SetInputType(
            DWORD dwInputStreamIndex,
            /* [in] */ const DMO_MEDIA_TYPE *pmt,
            DWORD dwFlags) = 0;

        virtual HRESULT STDMETHODCALLTYPE SetOutputType(
            DWORD dwOutputStreamIndex,
            /* [in] */ const DMO_MEDIA_TYPE *pmt,
            DWORD dwFlags) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetInputCurrentType(
            DWORD dwInputStreamIndex,
            /* [out] */ DMO_MEDIA_TYPE *pmt) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetOutputCurrentType(
            DWORD dwOutputStreamIndex,
            /* [out] */ DMO_MEDIA_TYPE *pmt) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetInputSizeInfo(
            DWORD dwInputStreamIndex,
            /* [out] */ DWORD *pcbSize,
            /* [out] */ DWORD *pcbMaxLookahead,
            /* [out] */ DWORD *pcbAlignment) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetOutputSizeInfo(
            DWORD dwOutputStreamIndex,
            /* [out] */ DWORD *pcbSize,
            /* [out] */ DWORD *pcbAlignment) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetInputMaxLatency(
            DWORD dwInputStreamIndex,
            /* [out] */ REFERENCE_TIME *prtMaxLatency) = 0;

        virtual HRESULT STDMETHODCALLTYPE SetInputMaxLatency(
            DWORD dwInputStreamIndex,
            REFERENCE_TIME rtMaxLatency) = 0;

        virtual HRESULT STDMETHODCALLTYPE Flush( void) = 0;

        virtual HRESULT STDMETHODCALLTYPE Discontinuity(
            DWORD dwInputStreamIndex) = 0;

        virtual HRESULT STDMETHODCALLTYPE AllocateStreamingResources( void) = 0;

        virtual HRESULT STDMETHODCALLTYPE FreeStreamingResources( void) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetInputStatus(
            DWORD dwInputStreamIndex,
            /* [out] */ DWORD *dwFlags) = 0;

        virtual HRESULT STDMETHODCALLTYPE ProcessInput(
            DWORD dwInputStreamIndex,
            IMediaBuffer *pBuffer,
            DWORD dwFlags,
            REFERENCE_TIME rtTimestamp,
            REFERENCE_TIME rtTimelength) = 0;

        virtual HRESULT STDMETHODCALLTYPE ProcessOutput(
            DWORD dwFlags,
            DWORD cOutputBufferCount,
            /* [size_is][out][in] */ DMO_OUTPUT_DATA_BUFFER *pOutputBuffers,
            /* [out] */ DWORD *pdwStatus) = 0;

        virtual HRESULT STDMETHODCALLTYPE Lock(
            LONG bLock) = 0;

    };

#else 	/* C style interface */

    typedef struct IMediaObjectVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IMediaObject * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IMediaObject * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IMediaObject * This);

        HRESULT ( STDMETHODCALLTYPE *GetStreamCount )(
            IMediaObject * This,
            /* [out] */ DWORD *pcInputStreams,
            /* [out] */ DWORD *pcOutputStreams);

        HRESULT ( STDMETHODCALLTYPE *GetInputStreamInfo )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            /* [out] */ DWORD *pdwFlags);

        HRESULT ( STDMETHODCALLTYPE *GetOutputStreamInfo )(
            IMediaObject * This,
            DWORD dwOutputStreamIndex,
            /* [out] */ DWORD *pdwFlags);

        HRESULT ( STDMETHODCALLTYPE *GetInputType )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            DWORD dwTypeIndex,
            /* [out] */ DMO_MEDIA_TYPE *pmt);

        HRESULT ( STDMETHODCALLTYPE *GetOutputType )(
            IMediaObject * This,
            DWORD dwOutputStreamIndex,
            DWORD dwTypeIndex,
            /* [out] */ DMO_MEDIA_TYPE *pmt);

        HRESULT ( STDMETHODCALLTYPE *SetInputType )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            /* [in] */ const DMO_MEDIA_TYPE *pmt,
            DWORD dwFlags);

        HRESULT ( STDMETHODCALLTYPE *SetOutputType )(
            IMediaObject * This,
            DWORD dwOutputStreamIndex,
            /* [in] */ const DMO_MEDIA_TYPE *pmt,
            DWORD dwFlags);

        HRESULT ( STDMETHODCALLTYPE *GetInputCurrentType )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            /* [out] */ DMO_MEDIA_TYPE *pmt);

        HRESULT ( STDMETHODCALLTYPE *GetOutputCurrentType )(
            IMediaObject * This,
            DWORD dwOutputStreamIndex,
            /* [out] */ DMO_MEDIA_TYPE *pmt);

        HRESULT ( STDMETHODCALLTYPE *GetInputSizeInfo )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            /* [out] */ DWORD *pcbSize,
            /* [out] */ DWORD *pcbMaxLookahead,
            /* [out] */ DWORD *pcbAlignment);

        HRESULT ( STDMETHODCALLTYPE *GetOutputSizeInfo )(
            IMediaObject * This,
            DWORD dwOutputStreamIndex,
            /* [out] */ DWORD *pcbSize,
            /* [out] */ DWORD *pcbAlignment);

        HRESULT ( STDMETHODCALLTYPE *GetInputMaxLatency )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            /* [out] */ REFERENCE_TIME *prtMaxLatency);

        HRESULT ( STDMETHODCALLTYPE *SetInputMaxLatency )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            REFERENCE_TIME rtMaxLatency);

        HRESULT ( STDMETHODCALLTYPE *Flush )(
            IMediaObject * This);

        HRESULT ( STDMETHODCALLTYPE *Discontinuity )(
            IMediaObject * This,
            DWORD dwInputStreamIndex);

        HRESULT ( STDMETHODCALLTYPE *AllocateStreamingResources )(
            IMediaObject * This);

        HRESULT ( STDMETHODCALLTYPE *FreeStreamingResources )(
            IMediaObject * This);

        HRESULT ( STDMETHODCALLTYPE *GetInputStatus )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            /* [out] */ DWORD *dwFlags);

        HRESULT ( STDMETHODCALLTYPE *ProcessInput )(
            IMediaObject * This,
            DWORD dwInputStreamIndex,
            IMediaBuffer *pBuffer,
            DWORD dwFlags,
            REFERENCE_TIME rtTimestamp,
            REFERENCE_TIME rtTimelength);

        HRESULT ( STDMETHODCALLTYPE *ProcessOutput )(
            IMediaObject * This,
            DWORD dwFlags,
            DWORD cOutputBufferCount,
            /* [size_is][out][in] */ DMO_OUTPUT_DATA_BUFFER *pOutputBuffers,
            /* [out] */ DWORD *pdwStatus);

        HRESULT ( STDMETHODCALLTYPE *Lock )(
            IMediaObject * This,
            LONG bLock);

        END_INTERFACE
    } IMediaObjectVtbl;

    interface IMediaObject
    {
        CONST_VTBL struct IMediaObjectVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IMediaObject_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IMediaObject_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IMediaObject_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IMediaObject_GetStreamCount(This,pcInputStreams,pcOutputStreams)	\
    (This)->lpVtbl -> GetStreamCount(This,pcInputStreams,pcOutputStreams)

#define IMediaObject_GetInputStreamInfo(This,dwInputStreamIndex,pdwFlags)	\
    (This)->lpVtbl -> GetInputStreamInfo(This,dwInputStreamIndex,pdwFlags)

#define IMediaObject_GetOutputStreamInfo(This,dwOutputStreamIndex,pdwFlags)	\
    (This)->lpVtbl -> GetOutputStreamInfo(This,dwOutputStreamIndex,pdwFlags)

#define IMediaObject_GetInputType(This,dwInputStreamIndex,dwTypeIndex,pmt)	\
    (This)->lpVtbl -> GetInputType(This,dwInputStreamIndex,dwTypeIndex,pmt)

#define IMediaObject_GetOutputType(This,dwOutputStreamIndex,dwTypeIndex,pmt)	\
    (This)->lpVtbl -> GetOutputType(This,dwOutputStreamIndex,dwTypeIndex,pmt)

#define IMediaObject_SetInputType(This,dwInputStreamIndex,pmt,dwFlags)	\
    (This)->lpVtbl -> SetInputType(This,dwInputStreamIndex,pmt,dwFlags)

#define IMediaObject_SetOutputType(This,dwOutputStreamIndex,pmt,dwFlags)	\
    (This)->lpVtbl -> SetOutputType(This,dwOutputStreamIndex,pmt,dwFlags)

#define IMediaObject_GetInputCurrentType(This,dwInputStreamIndex,pmt)	\
    (This)->lpVtbl -> GetInputCurrentType(This,dwInputStreamIndex,pmt)

#define IMediaObject_GetOutputCurrentType(This,dwOutputStreamIndex,pmt)	\
    (This)->lpVtbl -> GetOutputCurrentType(This,dwOutputStreamIndex,pmt)

#define IMediaObject_GetInputSizeInfo(This,dwInputStreamIndex,pcbSize,pcbMaxLookahead,pcbAlignment)	\
    (This)->lpVtbl -> GetInputSizeInfo(This,dwInputStreamIndex,pcbSize,pcbMaxLookahead,pcbAlignment)

#define IMediaObject_GetOutputSizeInfo(This,dwOutputStreamIndex,pcbSize,pcbAlignment)	\
    (This)->lpVtbl -> GetOutputSizeInfo(This,dwOutputStreamIndex,pcbSize,pcbAlignment)

#define IMediaObject_GetInputMaxLatency(This,dwInputStreamIndex,prtMaxLatency)	\
    (This)->lpVtbl -> GetInputMaxLatency(This,dwInputStreamIndex,prtMaxLatency)

#define IMediaObject_SetInputMaxLatency(This,dwInputStreamIndex,rtMaxLatency)	\
    (This)->lpVtbl -> SetInputMaxLatency(This,dwInputStreamIndex,rtMaxLatency)

#define IMediaObject_Flush(This)	\
    (This)->lpVtbl -> Flush(This)

#define IMediaObject_Discontinuity(This,dwInputStreamIndex)	\
    (This)->lpVtbl -> Discontinuity(This,dwInputStreamIndex)

#define IMediaObject_AllocateStreamingResources(This)	\
    (This)->lpVtbl -> AllocateStreamingResources(This)

#define IMediaObject_FreeStreamingResources(This)	\
    (This)->lpVtbl -> FreeStreamingResources(This)

#define IMediaObject_GetInputStatus(This,dwInputStreamIndex,dwFlags)	\
    (This)->lpVtbl -> GetInputStatus(This,dwInputStreamIndex,dwFlags)

#define IMediaObject_ProcessInput(This,dwInputStreamIndex,pBuffer,dwFlags,rtTimestamp,rtTimelength)	\
    (This)->lpVtbl -> ProcessInput(This,dwInputStreamIndex,pBuffer,dwFlags,rtTimestamp,rtTimelength)

#define IMediaObject_ProcessOutput(This,dwFlags,cOutputBufferCount,pOutputBuffers,pdwStatus)	\
    (This)->lpVtbl -> ProcessOutput(This,dwFlags,cOutputBufferCount,pOutputBuffers,pdwStatus)

#define IMediaObject_Lock(This,bLock)	\
    (This)->lpVtbl -> Lock(This,bLock)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IMediaObject_GetStreamCount_Proxy(
    IMediaObject * This,
    /* [out] */ DWORD *pcInputStreams,
    /* [out] */ DWORD *pcOutputStreams);

void __RPC_STUB IMediaObject_GetStreamCount_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetInputStreamInfo_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    /* [out] */ DWORD *pdwFlags);

void __RPC_STUB IMediaObject_GetInputStreamInfo_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetOutputStreamInfo_Proxy(
    IMediaObject * This,
    DWORD dwOutputStreamIndex,
    /* [out] */ DWORD *pdwFlags);

void __RPC_STUB IMediaObject_GetOutputStreamInfo_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetInputType_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    DWORD dwTypeIndex,
    /* [out] */ DMO_MEDIA_TYPE *pmt);

void __RPC_STUB IMediaObject_GetInputType_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetOutputType_Proxy(
    IMediaObject * This,
    DWORD dwOutputStreamIndex,
    DWORD dwTypeIndex,
    /* [out] */ DMO_MEDIA_TYPE *pmt);

void __RPC_STUB IMediaObject_GetOutputType_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_SetInputType_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    /* [in] */ const DMO_MEDIA_TYPE *pmt,
    DWORD dwFlags);

void __RPC_STUB IMediaObject_SetInputType_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_SetOutputType_Proxy(
    IMediaObject * This,
    DWORD dwOutputStreamIndex,
    /* [in] */ const DMO_MEDIA_TYPE *pmt,
    DWORD dwFlags);

void __RPC_STUB IMediaObject_SetOutputType_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetInputCurrentType_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    /* [out] */ DMO_MEDIA_TYPE *pmt);

void __RPC_STUB IMediaObject_GetInputCurrentType_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetOutputCurrentType_Proxy(
    IMediaObject * This,
    DWORD dwOutputStreamIndex,
    /* [out] */ DMO_MEDIA_TYPE *pmt);

void __RPC_STUB IMediaObject_GetOutputCurrentType_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetInputSizeInfo_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    /* [out] */ DWORD *pcbSize,
    /* [out] */ DWORD *pcbMaxLookahead,
    /* [out] */ DWORD *pcbAlignment);

void __RPC_STUB IMediaObject_GetInputSizeInfo_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetOutputSizeInfo_Proxy(
    IMediaObject * This,
    DWORD dwOutputStreamIndex,
    /* [out] */ DWORD *pcbSize,
    /* [out] */ DWORD *pcbAlignment);

void __RPC_STUB IMediaObject_GetOutputSizeInfo_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetInputMaxLatency_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    /* [out] */ REFERENCE_TIME *prtMaxLatency);

void __RPC_STUB IMediaObject_GetInputMaxLatency_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_SetInputMaxLatency_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    REFERENCE_TIME rtMaxLatency);

void __RPC_STUB IMediaObject_SetInputMaxLatency_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_Flush_Proxy(
    IMediaObject * This);

void __RPC_STUB IMediaObject_Flush_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_Discontinuity_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex);

void __RPC_STUB IMediaObject_Discontinuity_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_AllocateStreamingResources_Proxy(
    IMediaObject * This);

void __RPC_STUB IMediaObject_AllocateStreamingResources_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_FreeStreamingResources_Proxy(
    IMediaObject * This);

void __RPC_STUB IMediaObject_FreeStreamingResources_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_GetInputStatus_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    /* [out] */ DWORD *dwFlags);

void __RPC_STUB IMediaObject_GetInputStatus_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_ProcessInput_Proxy(
    IMediaObject * This,
    DWORD dwInputStreamIndex,
    IMediaBuffer *pBuffer,
    DWORD dwFlags,
    REFERENCE_TIME rtTimestamp,
    REFERENCE_TIME rtTimelength);

void __RPC_STUB IMediaObject_ProcessInput_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_ProcessOutput_Proxy(
    IMediaObject * This,
    DWORD dwFlags,
    DWORD cOutputBufferCount,
    /* [size_is][out][in] */ DMO_OUTPUT_DATA_BUFFER *pOutputBuffers,
    /* [out] */ DWORD *pdwStatus);

void __RPC_STUB IMediaObject_ProcessOutput_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObject_Lock_Proxy(
    IMediaObject * This,
    LONG bLock);

void __RPC_STUB IMediaObject_Lock_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IMediaObject_INTERFACE_DEFINED__ */

#ifndef __IEnumDMO_INTERFACE_DEFINED__
#define __IEnumDMO_INTERFACE_DEFINED__

/* interface IEnumDMO */
/* [uuid][object] */

EXTERN_C const IID IID_IEnumDMO;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("2c3cd98a-2bfa-4a53-9c27-5249ba64ba0f")
    IEnumDMO : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE Next(
            DWORD cItemsToFetch,
            /* [length_is][size_is][out] */ CLSID *pCLSID,
            /* [string][length_is][size_is][out] */ WCHAR **Names,
            /* [out] */ DWORD *pcItemsFetched) = 0;

        virtual HRESULT STDMETHODCALLTYPE Skip(
            DWORD cItemsToSkip) = 0;

        virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;

        virtual HRESULT STDMETHODCALLTYPE Clone(
            /* [out] */ IEnumDMO **ppEnum) = 0;

    };

#else 	/* C style interface */

    typedef struct IEnumDMOVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IEnumDMO * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IEnumDMO * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IEnumDMO * This);

        HRESULT ( STDMETHODCALLTYPE *Next )(
            IEnumDMO * This,
            DWORD cItemsToFetch,
            /* [length_is][size_is][out] */ CLSID *pCLSID,
            /* [string][length_is][size_is][out] */ WCHAR **Names,
            /* [out] */ DWORD *pcItemsFetched);

        HRESULT ( STDMETHODCALLTYPE *Skip )(
            IEnumDMO * This,
            DWORD cItemsToSkip);

        HRESULT ( STDMETHODCALLTYPE *Reset )(
            IEnumDMO * This);

        HRESULT ( STDMETHODCALLTYPE *Clone )(
            IEnumDMO * This,
            /* [out] */ IEnumDMO **ppEnum);

        END_INTERFACE
    } IEnumDMOVtbl;

    interface IEnumDMO
    {
        CONST_VTBL struct IEnumDMOVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IEnumDMO_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IEnumDMO_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IEnumDMO_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IEnumDMO_Next(This,cItemsToFetch,pCLSID,Names,pcItemsFetched)	\
    (This)->lpVtbl -> Next(This,cItemsToFetch,pCLSID,Names,pcItemsFetched)

#define IEnumDMO_Skip(This,cItemsToSkip)	\
    (This)->lpVtbl -> Skip(This,cItemsToSkip)

#define IEnumDMO_Reset(This)	\
    (This)->lpVtbl -> Reset(This)

#define IEnumDMO_Clone(This,ppEnum)	\
    (This)->lpVtbl -> Clone(This,ppEnum)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IEnumDMO_Next_Proxy(
    IEnumDMO * This,
    DWORD cItemsToFetch,
    /* [length_is][size_is][out] */ CLSID *pCLSID,
    /* [string][length_is][size_is][out] */ WCHAR **Names,
    /* [out] */ DWORD *pcItemsFetched);

void __RPC_STUB IEnumDMO_Next_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IEnumDMO_Skip_Proxy(
    IEnumDMO * This,
    DWORD cItemsToSkip);

void __RPC_STUB IEnumDMO_Skip_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IEnumDMO_Reset_Proxy(
    IEnumDMO * This);

void __RPC_STUB IEnumDMO_Reset_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IEnumDMO_Clone_Proxy(
    IEnumDMO * This,
    /* [out] */ IEnumDMO **ppEnum);

void __RPC_STUB IEnumDMO_Clone_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IEnumDMO_INTERFACE_DEFINED__ */

/* interface __MIDL_itf_mediaobj_0092 */
/* [local] */

enum _DMO_INPLACE_PROCESS_FLAGS
    {	DMO_INPLACE_NORMAL	= 0,
	DMO_INPLACE_ZERO	= 0x1
    } ;

extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0092_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0092_v0_0_s_ifspec;

#ifndef __IMediaObjectInPlace_INTERFACE_DEFINED__
#define __IMediaObjectInPlace_INTERFACE_DEFINED__

/* interface IMediaObjectInPlace */
/* [uuid][object] */

EXTERN_C const IID IID_IMediaObjectInPlace;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("651b9ad0-0fc7-4aa9-9538-d89931010741")
    IMediaObjectInPlace : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE Process(
            /* [in] */ ULONG ulSize,
            /* [size_is][out][in] */ BYTE *pData,
            /* [in] */ REFERENCE_TIME refTimeStart,
            /* [in] */ DWORD dwFlags) = 0;

        virtual HRESULT STDMETHODCALLTYPE Clone(
            /* [out] */ IMediaObjectInPlace **ppMediaObject) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetLatency(
            /* [out] */ REFERENCE_TIME *pLatencyTime) = 0;

    };

#else 	/* C style interface */

    typedef struct IMediaObjectInPlaceVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IMediaObjectInPlace * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IMediaObjectInPlace * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IMediaObjectInPlace * This);

        HRESULT ( STDMETHODCALLTYPE *Process )(
            IMediaObjectInPlace * This,
            /* [in] */ ULONG ulSize,
            /* [size_is][out][in] */ BYTE *pData,
            /* [in] */ REFERENCE_TIME refTimeStart,
            /* [in] */ DWORD dwFlags);

        HRESULT ( STDMETHODCALLTYPE *Clone )(
            IMediaObjectInPlace * This,
            /* [out] */ IMediaObjectInPlace **ppMediaObject);

        HRESULT ( STDMETHODCALLTYPE *GetLatency )(
            IMediaObjectInPlace * This,
            /* [out] */ REFERENCE_TIME *pLatencyTime);

        END_INTERFACE
    } IMediaObjectInPlaceVtbl;

    interface IMediaObjectInPlace
    {
        CONST_VTBL struct IMediaObjectInPlaceVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IMediaObjectInPlace_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IMediaObjectInPlace_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IMediaObjectInPlace_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IMediaObjectInPlace_Process(This,ulSize,pData,refTimeStart,dwFlags)	\
    (This)->lpVtbl -> Process(This,ulSize,pData,refTimeStart,dwFlags)

#define IMediaObjectInPlace_Clone(This,ppMediaObject)	\
    (This)->lpVtbl -> Clone(This,ppMediaObject)

#define IMediaObjectInPlace_GetLatency(This,pLatencyTime)	\
    (This)->lpVtbl -> GetLatency(This,pLatencyTime)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IMediaObjectInPlace_Process_Proxy(
    IMediaObjectInPlace * This,
    /* [in] */ ULONG ulSize,
    /* [size_is][out][in] */ BYTE *pData,
    /* [in] */ REFERENCE_TIME refTimeStart,
    /* [in] */ DWORD dwFlags);

void __RPC_STUB IMediaObjectInPlace_Process_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObjectInPlace_Clone_Proxy(
    IMediaObjectInPlace * This,
    /* [out] */ IMediaObjectInPlace **ppMediaObject);

void __RPC_STUB IMediaObjectInPlace_Clone_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IMediaObjectInPlace_GetLatency_Proxy(
    IMediaObjectInPlace * This,
    /* [out] */ REFERENCE_TIME *pLatencyTime);

void __RPC_STUB IMediaObjectInPlace_GetLatency_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IMediaObjectInPlace_INTERFACE_DEFINED__ */

/* interface __MIDL_itf_mediaobj_0093 */
/* [local] */

enum _DMO_QUALITY_STATUS_FLAGS
    {	DMO_QUALITY_STATUS_ENABLED	= 0x1
    } ;

extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0093_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0093_v0_0_s_ifspec;

#ifndef __IDMOQualityControl_INTERFACE_DEFINED__
#define __IDMOQualityControl_INTERFACE_DEFINED__

/* interface IDMOQualityControl */
/* [uuid][object] */

EXTERN_C const IID IID_IDMOQualityControl;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("65abea96-cf36-453f-af8a-705e98f16260")
    IDMOQualityControl : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE SetNow(
            /* [in] */ REFERENCE_TIME rtNow) = 0;

        virtual HRESULT STDMETHODCALLTYPE SetStatus(
            /* [in] */ DWORD dwFlags) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetStatus(
            /* [out] */ DWORD *pdwFlags) = 0;

    };

#else 	/* C style interface */

    typedef struct IDMOQualityControlVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IDMOQualityControl * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IDMOQualityControl * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IDMOQualityControl * This);

        HRESULT ( STDMETHODCALLTYPE *SetNow )(
            IDMOQualityControl * This,
            /* [in] */ REFERENCE_TIME rtNow);

        HRESULT ( STDMETHODCALLTYPE *SetStatus )(
            IDMOQualityControl * This,
            /* [in] */ DWORD dwFlags);

        HRESULT ( STDMETHODCALLTYPE *GetStatus )(
            IDMOQualityControl * This,
            /* [out] */ DWORD *pdwFlags);

        END_INTERFACE
    } IDMOQualityControlVtbl;

    interface IDMOQualityControl
    {
        CONST_VTBL struct IDMOQualityControlVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IDMOQualityControl_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IDMOQualityControl_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IDMOQualityControl_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IDMOQualityControl_SetNow(This,rtNow)	\
    (This)->lpVtbl -> SetNow(This,rtNow)

#define IDMOQualityControl_SetStatus(This,dwFlags)	\
    (This)->lpVtbl -> SetStatus(This,dwFlags)

#define IDMOQualityControl_GetStatus(This,pdwFlags)	\
    (This)->lpVtbl -> GetStatus(This,pdwFlags)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IDMOQualityControl_SetNow_Proxy(
    IDMOQualityControl * This,
    /* [in] */ REFERENCE_TIME rtNow);

void __RPC_STUB IDMOQualityControl_SetNow_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IDMOQualityControl_SetStatus_Proxy(
    IDMOQualityControl * This,
    /* [in] */ DWORD dwFlags);

void __RPC_STUB IDMOQualityControl_SetStatus_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IDMOQualityControl_GetStatus_Proxy(
    IDMOQualityControl * This,
    /* [out] */ DWORD *pdwFlags);

void __RPC_STUB IDMOQualityControl_GetStatus_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IDMOQualityControl_INTERFACE_DEFINED__ */

/* interface __MIDL_itf_mediaobj_0094 */
/* [local] */

enum _DMO_VIDEO_OUTPUT_STREAM_FLAGS
    {	DMO_VOSF_NEEDS_PREVIOUS_SAMPLE	= 0x1
    } ;

extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0094_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_mediaobj_0094_v0_0_s_ifspec;

#ifndef __IDMOVideoOutputOptimizations_INTERFACE_DEFINED__
#define __IDMOVideoOutputOptimizations_INTERFACE_DEFINED__

/* interface IDMOVideoOutputOptimizations */
/* [uuid][object] */

EXTERN_C const IID IID_IDMOVideoOutputOptimizations;

#if defined(__cplusplus) && !defined(CINTERFACE)

    MIDL_INTERFACE("be8f4f4e-5b16-4d29-b350-7f6b5d9298ac")
    IDMOVideoOutputOptimizations : public IUnknown
    {
    public:
        virtual HRESULT STDMETHODCALLTYPE QueryOperationModePreferences(
            ULONG ulOutputStreamIndex,
            DWORD *pdwRequestedCapabilities) = 0;

        virtual HRESULT STDMETHODCALLTYPE SetOperationMode(
            ULONG ulOutputStreamIndex,
            DWORD dwEnabledFeatures) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetCurrentOperationMode(
            ULONG ulOutputStreamIndex,
            DWORD *pdwEnabledFeatures) = 0;

        virtual HRESULT STDMETHODCALLTYPE GetCurrentSampleRequirements(
            ULONG ulOutputStreamIndex,
            DWORD *pdwRequestedFeatures) = 0;

    };

#else 	/* C style interface */

    typedef struct IDMOVideoOutputOptimizationsVtbl
    {
        BEGIN_INTERFACE

        HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
            IDMOVideoOutputOptimizations * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);

        ULONG ( STDMETHODCALLTYPE *AddRef )(
            IDMOVideoOutputOptimizations * This);

        ULONG ( STDMETHODCALLTYPE *Release )(
            IDMOVideoOutputOptimizations * This);

        HRESULT ( STDMETHODCALLTYPE *QueryOperationModePreferences )(
            IDMOVideoOutputOptimizations * This,
            ULONG ulOutputStreamIndex,
            DWORD *pdwRequestedCapabilities);

        HRESULT ( STDMETHODCALLTYPE *SetOperationMode )(
            IDMOVideoOutputOptimizations * This,
            ULONG ulOutputStreamIndex,
            DWORD dwEnabledFeatures);

        HRESULT ( STDMETHODCALLTYPE *GetCurrentOperationMode )(
            IDMOVideoOutputOptimizations * This,
            ULONG ulOutputStreamIndex,
            DWORD *pdwEnabledFeatures);

        HRESULT ( STDMETHODCALLTYPE *GetCurrentSampleRequirements )(
            IDMOVideoOutputOptimizations * This,
            ULONG ulOutputStreamIndex,
            DWORD *pdwRequestedFeatures);

        END_INTERFACE
    } IDMOVideoOutputOptimizationsVtbl;

    interface IDMOVideoOutputOptimizations
    {
        CONST_VTBL struct IDMOVideoOutputOptimizationsVtbl *lpVtbl;
    };

#ifdef COBJMACROS

#define IDMOVideoOutputOptimizations_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define IDMOVideoOutputOptimizations_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define IDMOVideoOutputOptimizations_Release(This)	\
    (This)->lpVtbl -> Release(This)

#define IDMOVideoOutputOptimizations_QueryOperationModePreferences(This,ulOutputStreamIndex,pdwRequestedCapabilities)	\
    (This)->lpVtbl -> QueryOperationModePreferences(This,ulOutputStreamIndex,pdwRequestedCapabilities)

#define IDMOVideoOutputOptimizations_SetOperationMode(This,ulOutputStreamIndex,dwEnabledFeatures)	\
    (This)->lpVtbl -> SetOperationMode(This,ulOutputStreamIndex,dwEnabledFeatures)

#define IDMOVideoOutputOptimizations_GetCurrentOperationMode(This,ulOutputStreamIndex,pdwEnabledFeatures)	\
    (This)->lpVtbl -> GetCurrentOperationMode(This,ulOutputStreamIndex,pdwEnabledFeatures)

#define IDMOVideoOutputOptimizations_GetCurrentSampleRequirements(This,ulOutputStreamIndex,pdwRequestedFeatures)	\
    (This)->lpVtbl -> GetCurrentSampleRequirements(This,ulOutputStreamIndex,pdwRequestedFeatures)

#endif /* COBJMACROS */

#endif 	/* C style interface */

HRESULT STDMETHODCALLTYPE IDMOVideoOutputOptimizations_QueryOperationModePreferences_Proxy(
    IDMOVideoOutputOptimizations * This,
    ULONG ulOutputStreamIndex,
    DWORD *pdwRequestedCapabilities);

void __RPC_STUB IDMOVideoOutputOptimizations_QueryOperationModePreferences_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IDMOVideoOutputOptimizations_SetOperationMode_Proxy(
    IDMOVideoOutputOptimizations * This,
    ULONG ulOutputStreamIndex,
    DWORD dwEnabledFeatures);

void __RPC_STUB IDMOVideoOutputOptimizations_SetOperationMode_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IDMOVideoOutputOptimizations_GetCurrentOperationMode_Proxy(
    IDMOVideoOutputOptimizations * This,
    ULONG ulOutputStreamIndex,
    DWORD *pdwEnabledFeatures);

void __RPC_STUB IDMOVideoOutputOptimizations_GetCurrentOperationMode_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

HRESULT STDMETHODCALLTYPE IDMOVideoOutputOptimizations_GetCurrentSampleRequirements_Proxy(
    IDMOVideoOutputOptimizations * This,
    ULONG ulOutputStreamIndex,
    DWORD *pdwRequestedFeatures);

void __RPC_STUB IDMOVideoOutputOptimizations_GetCurrentSampleRequirements_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);

#endif 	/* __IDMOVideoOutputOptimizations_INTERFACE_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


text:
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright 2016 Adam Speakman
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:minHeight="?android:attr/listPreferredItemHeight"
    android:gravity="center_vertical"
    android:paddingEnd="?android:attr/scrollbarSize">
    <TextView
        android:id="@+id/preference_seekbar_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dip"
        android:layout_marginEnd="8dip"
        android:layout_marginTop="6dip"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="?android:textColorPrimary"
        tools:text="Minimum magnitude to display" />

    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dip"
        android:layout_marginEnd="8dip"
        android:layout_marginTop="6dip"
        android:layout_marginBottom="6dip"
        android:gravity="center_vertical">
        <TextView
            android:id="@+id/preference_seekbar_value_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textColor="?android:textColorPrimary"
            tools:text="4.5" />
        <SeekBar
            android:id="@+id/preference_seekbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
    </LinearLayout>
</LinearLayout>

redpajama_set_name: RedPajamaGithub


text:
package com.planet_ink.coffee_mud.Abilities.Properties;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;

import java.util.*;

public class Prop_HaveResister extends Property implements TriggeredAffect
{
	@Override public String ID() { return "Prop_HaveResister"; }
	@Override public String name(){ return "Resistance due to ownership";}
	@Override protected int canAffectCode(){return Ability.CAN_ITEMS;}
	@Override public boolean bubbleAffect(){return true;}
	protected CharStats adjCharStats=null;
	protected String maskString="";
	protected String parmString="";
	protected boolean ignoreCharStats=true;
	protected long lastProtection=0;
	protected int remainingProtection=0;

	@Override public long flags(){return Ability.FLAG_RESISTER;}

	@Override
	public int triggerMask()
	{
		return TriggeredAffect.TRIGGER_GET;
	}

	@Override
	public void setMiscText(String newText)
	{
		super.setMiscText(newText);
		adjCharStats=(CharStats)CMClass.getCommon("DefaultCharStats");
		ignoreCharStats=true;
		parmString=newText;
		final int maskindex=newText.toUpperCase().indexOf("MASK=");
		if(maskindex>0)
		{
			maskString=newText.substring(maskindex+5).trim();
			parmString=newText.substring(0,maskindex).trim();
		}
		for(final int i : CharStats.CODES.SAVING_THROWS())
		{
			if(parmString.toUpperCase().indexOf(CharStats.CODES.NAME(i))>=0)
				adjCharStats.setStat(i,getProtection(CharStats.CODES.NAME(i)));
			else
				adjCharStats.setStat(i,getProtection(CMStrings.limit(CharStats.CODES.NAME(i),4)));
			if(adjCharStats.getStat(i)!=0)
				ignoreCharStats=false;
		}
	}

	protected void ensureStarted()
	{
		if(adjCharStats==null)
			setMiscText(text());
	}

	@Override
	public void affectCharStats(MOB affectedMOB, CharStats affectedStats)
	{
		ensureStarted();
		if((!ignoreCharStats)
		&&(canResist(affectedMOB))
		&&((maskString.length()==0)||(CMLib.masking().maskCheck(maskString,affectedMOB,false))))
			for(final int i : CharStats.CODES.SAVING_THROWS())
				affectedStats.setStat(i,affectedStats.getStat(i)+adjCharStats.getStat(i));
		super.affectCharStats(affectedMOB,affectedStats);
	}

	public boolean checkProtection(String protType){ return getProtection(protType)!=0;}

	public int getProtection(String protType)
	{
		final String nonMask=parmString.toUpperCase();
		final int z=nonMask.indexOf(protType.toUpperCase());
		if(z<0)
			return 0;
		int x=nonMask.indexOf('%',z+protType.length());
		if(x<0)
			return 50;
		int mul=1;
		int tot=0;
		while((--x)>=0)
		{
			if(Character.isDigit(nonMask.charAt(x)))
				tot+=CMath.s_int(""+nonMask.charAt(x))*mul;
			else
			{
				if(nonMask.charAt(x)=='-')
					mul=mul*-1;
				x=-1;
			}
			mul=mul*10;
		}
		return tot;
	}

	protected int weaponProtection(String kind, int damage, int myLevel, int hisLevel)
	{
		int protection=remainingProtection;
		if((System.currentTimeMillis()-lastProtection)>=CMProps.getTickMillis())
		{    protection=(getProtection(kind)+(myLevel-hisLevel)); lastProtection=System.currentTimeMillis();}
		if(protection<=0) return damage;
		remainingProtection=protection-100;
		if(protection>=100){ return 0;}
		return (int)Math.round(CMath.mul(damage,1.0-CMath.div(protection,100.0)));
	}

	public void resistAffect(CMMsg msg, MOB mob, Ability me, String maskString)
	{
		if(mob.location()==null) return;
		if(mob.amDead()) return;
		if(!msg.amITarget(mob)) return;

		if((msg.targetMinor()==CMMsg.TYP_DAMAGE)
		&&((msg.value())>0)
		&&(msg.tool()!=null)
		&&(msg.tool() instanceof Weapon))
		{
			if(checkProtection("weapons"))
			{
				if((maskString.length()==0)||(CMLib.masking().maskCheck(maskString,mob,false)))
					msg.setValue(weaponProtection("weapons",msg.value(),mob.phyStats().level(),msg.source().phyStats().level()));
			}
			else
			{
				final Weapon W=(Weapon)msg.tool();
				if((W.weaponType()==Weapon.TYPE_BASHING)
				&&(checkProtection("blunt"))
				&&((maskString.length()==0)||(CMLib.masking().maskCheck(maskString,mob,false))))
					msg.setValue(weaponProtection("blunt",msg.value(),mob.phyStats().level(),msg.source().phyStats().level()));
				if((W.weaponType()==Weapon.TYPE_PIERCING)
				&&(checkProtection("pierce"))
				&&((maskString.length()==0)||(CMLib.masking().maskCheck(maskString,mob,false))))
					msg.setValue(weaponProtection("pierce",msg.value(),mob.phyStats().level(),msg.source().phyStats().level()));
				if((W.weaponType()==Weapon.TYPE_SLASHING)
				&&(checkProtection("slash"))
				&&((maskString.length()==0)||(CMLib.masking().maskCheck(maskString,mob,false))))
					msg.setValue(weaponProtection("slash",msg.value(),mob.phyStats().level(),msg.source().phyStats().level()));
			}
			return;
		}
	}

	@Override
	public String accountForYourself()
	{ return "The owner gains resistances: "+describeResistance(text());}

	public boolean isOk(CMMsg msg, Ability me, MOB mob, String maskString)
	{
		if(CMath.bset(msg.targetMajor(),CMMsg.MASK_MAGIC))
		{
			if(msg.tool() instanceof Ability)
			{
				final Ability A=(Ability)msg.tool();
				if(CMath.bset(A.flags(),Ability.FLAG_TRANSPORTING))
				{
					if((checkProtection("teleport"))
					&&((maskString.length()==0)||(CMLib.masking().maskCheck(maskString,mob,false))))
					{
						msg.source().tell(_("You can't seem to fixate on '@x1'.",mob.name()));
						return false;
					}
				}
				else
				if(!CMath.bset(msg.targetMajor(),CMMsg.MASK_MALICIOUS))
					return true;
				else
				if(((A.classificationCode()&Ability.ALL_ACODES)==Ability.ACODE_PRAYER)
				&&(CMath.bset(A.flags(),Ability.FLAG_HOLY))
				&&(!CMath.bset(A.flags(),Ability.FLAG_UNHOLY)))
				{
					if((checkProtection("holy"))
					&&((maskString.length()==0)||(CMLib.masking().maskCheck(maskString,mob,false))))
					{
						mob.location().show(msg.source(),mob,CMMsg.MSG_OK_VISUAL,_("Holy energies from <S-NAME> are repelled from <T-NAME>."));
						return false;
					}
				}
			}
		}
		return true;
	}

	public String describeResistance(String text)
	{
		String id=parmString+".";
		if(maskString.length()>0)
			id+="  Restrictions: "+CMLib.masking().maskDesc(maskString)+".";
		return id;
	}

	public boolean canResist(Environmental E)
	{
		if((affected instanceof Item)
		&&(E instanceof MOB)
		&&(!((Item)affected).amDestroyed())
		&&(E==((Item)affected).owner()))
			return true;
		return false;
	}

	@Override
	public boolean okMessage(final Environmental myHost, final CMMsg msg)
	{
		if((canResist(msg.target()))
		&&(msg.target() instanceof MOB)
		&&(((MOB)msg.target()).location()!=null))
		{
			if((msg.value()<=0)&&(!isOk(msg,this,(MOB)msg.target(),maskString)))
				return false;
			resistAffect(msg,(MOB)msg.target(),this,maskString);
		}
		return true;
	}
}


text:
from __future__ import unicode_literals, division, absolute_import
from builtins import *  # pylint: disable=unused-import, redefined-builtin
from future.moves.urllib.parse import urlparse

import logging

from requests import RequestException

from flexget import plugin
from flexget.event import event
from flexget.entry import Entry

log = logging.getLogger('sickbeard')

class Sickbeard(object):
    schema = {
        'type': 'object',
        'properties': {
            'base_url': {'type': 'string'},
            'port': {'type': 'number', 'default': 80},
            'api_key': {'type': 'string'},
            'include_ended': {'type': 'boolean', 'default': True},
            'only_monitored': {'type': 'boolean', 'default': False},
            'include_data': {'type': 'boolean', 'default': False}
        },
        'required': ['api_key', 'base_url'],
        'additionalProperties': False
    }

    def quality_requirement_builder(self, quality_list):
        """
        Translates sickbeards' qualities into format used by Flexget
        """
        sb_to_fg = {'sdtv': 'sdtv',
                    'sddvd': 'dvdrip',
                    'hdtv': '720p hdtv',
                    'rawhdtv': '1080p hdtv',
                    'fullhdtv': '1080p hdtv',
                    'hdwebdl': '720p webdl',
                    'fullhdwebdl': '1080p webdl',
                    'hdbluray': '720p bluray',
                    'fullhdbluray': '1080p bluray',
                    'unknown': 'any'}

        return [sb_to_fg[quality] for quality in quality_list]

    def on_task_input(self, task, config):
        """
        This plugin returns ALL of the shows monitored by Sickbeard.
        This includes both ongoing and ended.
        Syntax:

        sickbeard:
          base_url=<value>
          port=<value>
          api_key=<value>

        Options base_url and api_key are required.

        Use with input plugin like discover and/or configure_series.
        Example:

        download-tv-task:
          configure_series:
            settings:
              quality:
                - 720p
            from:
              sickbeard:
                base_url: http://localhost
                port: 8531
                api_key: MYAPIKEY1123
          discover:
            what:
              - next_series_episodes: yes
            from:
              torrentz: any
          download:
            /download/tv

        Note that when using the configure_series plugin with Sickbeard
        you are basically synced to it, so removing a show in Sickbeard will
        remove it in flexget as well, which could be positive or negative,
        depending on your usage.
        """
        parsedurl = urlparse(config.get('base_url'))
        url = '%s://%s:%s%s/api/%s/?cmd=shows' % (parsedurl.scheme, parsedurl.netloc,
                                                  config.get('port'), parsedurl.path, config.get('api_key'))
        try:
            json = task.requests.get(url).json()
        except RequestException as e:
            raise plugin.PluginError('Unable to connect to Sickbeard at %s://%s:%s%s. Error: %s'
                                     % (parsedurl.scheme, parsedurl.netloc, config.get('port'), parsedurl.path, e))
        entries = []
        for _, show in list(json['data'].items()):
            fg_qualities = ''  # Initializes the quality parameter
            if show['paused'] and config.get('only_monitored'):
                continue
            if show['status'] == 'Ended' and not config.get('include_ended'):
                continue
            if config.get('include_data'):
                show_url = '%s:%s/api/%s/?cmd=show&tvdbid=%s' % (config['base_url'], config['port'],
                                                                 config['api_key'], show['tvdbid'])
                show_json = task.requests.get(show_url).json()
                fg_qualities = self.quality_requirement_builder(show_json['data']['quality_details']['initial'])
            entry = Entry(title=show['show_name'],
                          url='',
                          series_name=show['show_name'],
                          tvdb_id=show.get('tvdbid'),
                          tvrage_id=show.get('tvrage_id'))
            if len(fg_qualities) > 1:
                entry['configure_series_qualities'] = fg_qualities
            elif len(fg_qualities) == 1:
                entry['configure_series_quality'] = fg_qualities[0]
            else:
                entry['configure_series_quality'] = fg_qualities
            if entry.isvalid():
                entries.append(entry)
            else:
                log.error('Invalid entry created? %s' % entry)
                continue
            # Test mode logging
            if task.options.test:
                log.info("Test mode. Entry includes:")
                for key, value in list(entry.items()):
                    log.info('     {}: {}'.format(key.capitalize(), value))

        return entries

@event('plugin.register')
def register_plugin():
    plugin.register(Sickbeard, 'sickbeard', api_ver=2)


text:
"""
A race is the core unit of Necrobot functionality. A race is a number of discord users, its racers, playing the game
in tandem. Typically the goal is to finish a specific task (e.g. the game) as fast as possible, but support is planned
for less time-based taskes (such as score runs), which will likely use much of the code in this module. At the end of
a race the racers are ranked in some fashion and their results recorded to the necrobot's MySQL database.

Package Requirements
--------------------
botbase
database
util
user

Module Overview
---------------
`race`.`Race` is the class representing the race itself. Information about `Race` objects is recorded to the databse
when races are finalized, to the table `races`, but there is not a 1-1 correspondence with database information (unlike
in the case of `Match`, `League`, and `NecroUser`). A `Race` object is run under the auspice of some `parent`, passed
to its constructor; a `parent` is an abstract interface which implements the coroutines `process`, for processing
`RaceEvent`s, and `write`, for outputting text that the racers can see.

The currently implemented `Race` parent classes are `race.publicrace.raceroom`, `race.privaterace.privateraceroom`, and
`match.matchroom`. (Note that these are all BotChannels, which is not strictly required but is the design I have in
mind.)

`race`.`RaceEvent` is a class representing events that can happen during a race (e.g. RACE_END, RACER_FINISH). This is
so that various parent-type objects can react to such events. The `RaceEvent` pattern is Observer-Subject, in contrast
to the Publish-Subscribe pattern used in the `necroevent` sub-package.

`Racer` represents an individual racer in some particular race. It thus contains data like finish time or death level.
The data from this class is written to the `race_runs` table when the race is finalized.

`RaceInfo` stores information about the type of race; much of this information is itself stored in `race_types`, and
the rest in `races`. (Which table it's stored in depends on how race-specific the information is; for instance, seeds
are stored in `races`, but whether a race is seeded is part of the "type" of a race, which is stored in `race_types`.)

`RaceConfig` stores information about the variables in the way races are run (countdown length, time between completion
and recording, whether to auto-forfeit the last racer when all others have finished).

`racetime` has functions for converting different time-data storage (ints as hundredths of a second and XX:XX.xx
format).

`cmd_race` and `cmd_racemake` have typical race-related commands.

Dependencies
------------
cmd_race
    exception
    botbase/
        commandtype
    util/
        racetime
        necrodancer/
            level
cmd_racemake
    exception
    botbase/
        commandtype
    race/
        raceinfo
        raceutil
        privaterace/
            privateraceinfo
            privateraceroom
race
    config
    race/
        raceconfig
        raceinfo
        racer
    util/
        console
        racetime
        ordinal
        necrodancer/
            level
            seedgen
raceconfig
    config
racedb
    database/
        dbconnect
        dbutil
    race/
        race
        raceinfo
raceinfo
    exception
    util/
        parse/
            matchparse
        necrodancer/
            seedgen
            character
racer
    race/
        racerstatus
    user/
        userlib
        necrouser
    util/
        racetime
        necrodancer/
            level
racerstatus
raceutil
    config
    botbase/
        necrobot
    race/
        publicrace/
            raceroom
    user/
        userdb
        userprefs
    util/
        console
        server
"""


text:
ETHERPADDIR="$(cd "$(dirname "$0")/.."; pwd)"
#source "$ETHERPADDIR/bin/exports.sh"
#source "/etc/sysconfig/etherpad"

# Rebuild jar
( cd "$ETHERPADDIR"/infrastructure; ./bin/makejar.sh; )
( cd "$ETHERPADDIR"/infrastructure/ace; bin/make normal etherpad; )
cp "$ETHERPADDIR"/infrastructure/build/appjet.jar $ETHERPADDIR/etherpad/appjet-eth-dev.jar
rm -rf "$ETHERPADDIR"/infrastructure/{appjet,build,buildjs,buildcache}

# Rebuild modules
if [[ $(uname -s) != CYGWIN* ]]; then
(
  cd "$ETHERPADDIR"
  ls etherpad/src/plugins/ | while read name; do
    (
      cd "$ETHERPADDIR/etherpad/src/plugins/$name"
      if [ -e "build.sh" ]; then
        ./build.sh
      fi
    )
  done
)
fi


text:
package org.killbill.billing.events;

import java.math.BigDecimal;
import java.util.UUID;

import org.joda.time.DateTime;
import org.killbill.billing.catalog.api.Currency;

public interface InvoiceNotificationInternalEvent extends InvoiceInternalEvent {

    public BigDecimal getAmountOwed();

    public Currency getCurrency();

    public DateTime getTargetDate();

}


text:
   #include <boost/interprocess/sync/posix/mutex.hpp>
   #define BOOST_INTERPROCESS_MUTEX_USE_POSIX
#elif !defined(BOOST_INTERPROCESS_FORCE_GENERIC_EMULATION) && defined (BOOST_INTERPROCESS_WINDOWS)
   //Experimental...
   #define BOOST_INTERPROCESS_MUTEX_USE_WINAPI
   #include <boost/interprocess/sync/windows/mutex.hpp>
#else
   //spin_mutex is used
   #include <boost/interprocess/sync/spin/mutex.hpp>
   namespace boost {
   namespace interprocess {
   namespace ipcdetail{
   namespace robust_emulation_helpers {

   template<class T>
   class mutex_traits;

   }}}}
#endif

#endif   //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED

//!\file
//!Describes a mutex class that can be placed in memory shared by
//!several processes.

namespace boost {
namespace interprocess {

class interprocess_condition;

//!Wraps a interprocess_mutex that can be placed in shared memory and can be
//!shared between processes. Allows timed lock tries
class interprocess_mutex
{
   #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
   //Non-copyable
   interprocess_mutex(const interprocess_mutex &);
   interprocess_mutex &operator=(const interprocess_mutex &);
   friend class interprocess_condition;

   public:
   #if defined(BOOST_INTERPROCESS_MUTEX_USE_POSIX)
      typedef ipcdetail::posix_mutex internal_mutex_type;
   #elif defined(BOOST_INTERPROCESS_MUTEX_USE_WINAPI)
      typedef ipcdetail::winapi_mutex internal_mutex_type;
   #else
      typedef ipcdetail::spin_mutex internal_mutex_type;
      private:
      friend class ipcdetail::robust_emulation_helpers::mutex_traits<interprocess_mutex>;
      void take_ownership(){ m_mutex.take_ownership(); }
      public:
   #endif

   #endif   //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
   public:

   //!Constructor.
   //!Throws interprocess_exception on error.
   interprocess_mutex();

   //!Destructor. If any process uses the mutex after the destructor is called
   //!the result is undefined. Does not throw.
   ~interprocess_mutex();

   //!Requires: The calling thread does not own the mutex.
   //!
   //!Effects: The calling thread tries to obtain ownership of the mutex, and
   //!   if another thread has ownership of the mutex, it waits until it can
   //!   obtain the ownership. If a thread takes ownership of the mutex the
   //!   mutex must be unlocked by the same mutex.
   //!Throws: interprocess_exception on error.
   //!
   //!Note: A program may deadlock if the thread that has ownership calls
   //!   this function. If the implementation can detect the deadlock,
   //!   an exception could be thrown.
   void lock();

   //!Requires: The calling thread does not own the mutex.
   //!
   //!Effects: The calling thread tries to obtain ownership of the mutex, and
   //!   if another thread has ownership of the mutex returns immediately.
   //!Returns: If the thread acquires ownership of the mutex, returns true, if
   //!   the another thread has ownership of the mutex, returns false.
   //!Throws: interprocess_exception on error.
   //!
   //!Note: A program may deadlock if the thread that has ownership calls
   //!   this function. If the implementation can detect the deadlock,
   //!   an exception could be thrown.
   bool try_lock();

   //!Requires: The calling thread does not own the mutex.
   //!
   //!Effects: The calling thread will try to obtain exclusive ownership of the
   //!   mutex if it can do so in until the specified time is reached. If the
   //!   mutex supports recursive locking, the mutex must be unlocked the same
   //!   number of times it is locked.
   //!Returns: If the thread acquires ownership of the mutex, returns true, if
   //!   the timeout expires returns false.
   //!Throws: interprocess_exception on error.
   //!
   //!Note: A program may deadlock if the thread that has ownership calls
   //!   this function. If the implementation can detect the deadlock,
   //!   an exception could be thrown.
   template<class TimePoint>
   bool timed_lock(const TimePoint &abs_time);

   //!Effects: The calling thread releases the exclusive ownership of the mutex.
   //!Throws: interprocess_exception on error.
   void unlock();

   #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
   internal_mutex_type &internal_mutex()
   {  return m_mutex;   }

   const internal_mutex_type &internal_mutex() const
   {  return m_mutex;   }

   private:
   internal_mutex_type m_mutex;
   #endif   //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
};

}  //namespace interprocess {
}  //namespace boost {

namespace boost {
namespace interprocess {

inline interprocess_mutex::interprocess_mutex(){}

inline interprocess_mutex::~interprocess_mutex(){}

inline void interprocess_mutex::lock()
{  ipcdetail::timeout_when_locking_aware_lock(m_mutex);  }

inline bool interprocess_mutex::try_lock()
{ return m_mutex.try_lock(); }

template <class TimePoint>
inline bool interprocess_mutex::timed_lock(const TimePoint &abs_time)
{ return m_mutex.timed_lock(abs_time); }

inline void interprocess_mutex::unlock()
{ m_mutex.unlock(); }

}  //namespace interprocess {
}  //namespace boost {

#include <boost/interprocess/detail/config_end.hpp>

#endif   //BOOST_INTERPROCESS_MUTEX_HPP


text:
package wasteDisposal.processors;

import wasteDisposal.annotations.Disposable;
import wasteDisposal.strategies.GarbageDisposalStrategy;
import wasteDisposal.waste.Waste;
import wasteDisposal.processData.ProcessingData;
import wasteDisposal.strategies.holders.StrategyHolder;

import java.lang.annotation.Annotation;

public class DefaultGarbageProcessor implements GarbageProcessor {

    private StrategyHolder strategyHolder;

    public DefaultGarbageProcessor(StrategyHolder strategyHolder){
        this.setStrategyHolder(strategyHolder);
    }

    private void setStrategyHolder(StrategyHolder strategyHolder) {
        this.strategyHolder = strategyHolder;
    }

    @Override
    public StrategyHolder getStrategyHolder() {
        return this.strategyHolder;
    }

    @Override
    public ProcessingData processWaste(Waste garbage) {

        Class type = garbage.getClass();
        Annotation[] garbageAnnotations = type.getAnnotations();
        Class disposableAnnotation = null;
        for (Annotation annotation : garbageAnnotations) {
            if (annotation.annotationType().isAnnotationPresent(Disposable.class)) {
                disposableAnnotation = annotation.annotationType();
                break;
            }
        }

        GarbageDisposalStrategy currentStrategy;
        if (disposableAnnotation == null || !this.getStrategyHolder().getDisposalStrategies().containsKey(disposableAnnotation))
        {
            throw new IllegalArgumentException(
                    "The passed in garbage does not implement an annotation implementing the Disposable meta-annotation or is not supported by the StrategyHolder.");
        }

        currentStrategy = this.getStrategyHolder().getDisposalStrategies().get(disposableAnnotation);
        return currentStrategy.processGarbage(garbage);
    }
}


text:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using Newtonsoft.Json;
using Tangent.CilGeneration;
using Tangent.Parsing;
using Tangent.Tokenization;

namespace Tangent.Cli
{
    public class Program
    {
        public static readonly string Usage = @"Tangent.Cli.exe <SourceFile> [SourceFile2..N] [DestFile]
Tangent.Cli.exe -f <CompilerInputFile>";

        public static void Main(string[] args)
        {
            var timer = Stopwatch.StartNew();
            if (args.Length == 0) {
                Console.Error.WriteLine(Usage);
                Environment.Exit(1);
            }

            var inputs = new CompilerInputs1();

            if (args[0] == "-f") {
                if (args.Length == 1) {
                    Console.Error.WriteLine(Usage);
                    Environment.Exit(1);
                }

                inputs = JsonConvert.DeserializeObject<CompilerInputs1>(File.ReadAllText(args[1]));
                inputs.DestinationFile = Path.GetFileNameWithoutExtension(inputs.DestinationFile);
                inputs = ProcessIncludes(inputs);
            } else {
                if (args.Length == 1) {
                    inputs.DestinationFile = Path.Combine(Path.GetDirectoryName(args[0]), Path.GetFileNameWithoutExtension(args[0]));
                } else {
                    inputs.DestinationFile = args[args.Length - 1];
                }

                for (int x = 0; x == 0 || x < args.Length - 1; ++x) {
                    inputs.SourceFiles.Add(args[x]);
                }
            }

            var profiler = new CompilerTimings();
            AppDomain.CurrentDomain.ProcessExit += (o, e) => File.WriteAllText(inputs.DestinationFile + ".times", profiler.ToCSV());

            IEnumerable<Token> tokenization = Enumerable.Empty<Token>();

            foreach (var sourceFile in inputs.SourceFiles) {
                tokenization = tokenization.Concat(Tokenize.ProgramFile(File.ReadAllText(sourceFile), sourceFile, profiler).ToList());
            }

            HashSet<string> tokenValues = new HashSet<string>(tokenization.Select(t => t.Value).Where(v => v != null));
            var intermediateProgram = Parse.TangentProgram(tokenization, Tangent.Intermediate.Interop.TangentImport.ImportAssemblies(inputs.DllImports.Select(f => Assembly.Load(f)), s => tokenValues.Contains(s), profiler), profiler);
            if (!intermediateProgram.Success) {
                Console.Error.WriteLine(intermediateProgram.Error); // TODO: make better.
                return;
            }

            NewCilCompiler.Compile(intermediateProgram.Result, inputs.DestinationFile, profiler);
            Debug.WriteLine("Compile Duration: " + timer.Elapsed);
        }

        private static CompilerInputs1 ProcessIncludes(CompilerInputs1 root)
        {
            var result = root;
            HashSet<string> processedIncludes = new HashSet<string>();
            HashSet<string> pendingIncludes = new HashSet<string>(root.Includes);
            while (pendingIncludes.Any()) {
                var workset = pendingIncludes.First();
                processedIncludes.Add(workset);
                pendingIncludes.Remove(workset);
                var contents = JsonConvert.DeserializeObject<CompilerInputs1>(workset);
                foreach (var include in contents.Includes) {
                    if (!processedIncludes.Contains(include)) {
                        pendingIncludes.Add(include);
                    }
                }

                result = result.Combine(contents);
            }

            return result;
        }
    }
}


text:
package cluster

import (
	"strings"

	extv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"

	k8syaml "k8s.io/apimachinery/pkg/util/yaml"

	"kubevirt.io/containerized-data-importer/pkg/operator/resources"
)

// NewCdiConfigCrd - provides CDIConfig CRD
func NewCdiConfigCrd() *extv1.CustomResourceDefinition {
	return createCDIConfigCRD()
}

// createCDIConfigCRD creates the CDIConfig schema
func createCDIConfigCRD() *extv1.CustomResourceDefinition {
	crd := extv1.CustomResourceDefinition{}
	_ = k8syaml.NewYAMLToJSONDecoder(strings.NewReader(resources.CDICRDs["cdiconfig"])).Decode(&crd)
	return &crd
}

// CreateConfigPropertiesSchema creates the CDIConfigSpec properties schema
func CreateConfigPropertiesSchema() map[string]extv1.JSONSchemaProps {
	crd := createCDIConfigCRD()
	for _, version := range crd.Spec.Versions {
		if version.Storage {
			return version.Schema.OpenAPIV3Schema.Properties["spec"].Properties
		}
	}
	return make(map[string]extv1.JSONSchemaProps)
}


text:
        Select Schema to Export

                            {{components.name}}

                                <input type="checkbox" data-ng-checked="component.__dfUI.selected" data-ng-model="component.__dfUI.selected" data-ng-disabled="!selectedApp"/>

                                {{component.record}}


text:
Redigo
======

[![Build Status](https://travis-ci.org/garyburd/redigo.svg?branch=master)](https://travis-ci.org/garyburd/redigo)

Redigo is a [Go](http://golang.org/) client for the [Redis](http://redis.io/) database.

Features
-------

* A [Print-like](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Executing_Commands) API with support for all Redis commands.
* [Pipelining](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Pipelining), including pipelined transactions.
* [Publish/Subscribe](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Publish_and_Subscribe).
* [Connection pooling](http://godoc.org/github.com/garyburd/redigo/redis#Pool).
* [Script helper type](http://godoc.org/github.com/garyburd/redigo/redis#Script) with optimistic use of EVALSHA.
* [Helper functions](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Reply_Helpers) for working with command replies.

Documentation
-------------

- [API Reference](http://godoc.org/github.com/garyburd/redigo/redis)
- [FAQ](https://github.com/garyburd/redigo/wiki/FAQ)

Installation
------------

Install Redigo using the "go get" command:

    go get github.com/garyburd/redigo/redis

The Go distribution is Redigo's only dependency.

Related Projects
----------------

- [rafaeljusto/redigomock](https://godoc.org/github.com/rafaeljusto/redigomock) - A mock library for Redigo.
- [chasex/redis-go-cluster](https://github.com/chasex/redis-go-cluster) - A Redis cluster client implementation.

Contributing
------------

Gary is looking for someone to take over maintenance of this project. If you are interested, contact Gary at the email address listed on his GitHub profile page.

PRs for major features will not be accepted until a new maintainer is found.  Bug reports and PRs for bug fixes are welcome.

License
-------

Redigo is available under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).


text:
package com.example.admin.utils;

import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;

/**
 * @author luzhenyu
 * @descrip <p>
 *          工具类
 *          </p>
 * */

public class Utils {
    /**
     * 获取屏幕分辨率
     *
     * @param context
     * @return [0] - width,[1] - height
     */
    public static int[] getScreenDispaly(Context context){
        WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
        DisplayMetrics displayMetrics = new DisplayMetrics();
        windowManager.getDefaultDisplay().getMetrics(displayMetrics);
        int width = displayMetrics.widthPixels;
        int height = displayMetrics.heightPixels;
        int[] result = {width, height};
        return result;
    }
}


text:
/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *  Authors:
 *  2003-12-01: Manuel Freire Moran
 *
 *  Changelog:
 *  2003-12-01: created file
 *  2004-10-21: added better pollIn behaviour
 *  2005-09-30: added DEBUG_SOCK flag and muestraDatos
 */

/*
 * sock.h
 *      cabeceras de una sencilla libreria de funciones para facilitar la
 *      el uso de sockets TCP
 */

#ifndef __SOCK_H_
#define __SOCK_H_

// si DEBUG_SOCK esta definido, todos los 'send' y 'receive' mostraran
// lo que envian o reciben por stdout, usando muestraDatos
//#define DEBUG_SOCK

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/timeb.h>
#include <sys/unistd.h>
#include <time.h>
#include <stdio.h>
#include <sys/poll.h>

/*
 * preparaEscucha
 *      Prepara un "socket" de servidor
 *      para recibir conexiones por un puerto dado
 *
 * entra: el identificador del puerto, num. max. de conexiones pendientes
 * sale: el descriptor de socket de escucha obtenido
 *       -1 si no se establece conexion
 */
int preparaEscucha(int puerto, int maxClientes);

/*
 * aceptaConexion
 *      Realiza un "accept" bloqueante sobre el socket de escucha dado
 *
 * entra: el socket sobre el que se esta escuchando
 * sale: el descriptor de socket de conexion obtenido
 *       -1 si no se establece conexion alguna.
 */
int aceptaConexion(int sockEscucha);

/*
 * recibe
 *      Recibe datos procedentes de un socket conectado.
 *
 * entra: el socket de conexion,
 *      buffer con espacio para los datos a recibir,
 *      el numero de bytes que, como maximo, se leeran del socket
 * sale: el numero de bytes recibidos
 *      -1 si error
 */
int recibe(int sockConexion, void *datos, int numDatos);

/*
 * recibeXtra
 *      Recibe datos con opciones extra. Por ejemplo, se puede usar
 *		MSG_PEEK.
 *
 * entra: el socket de conexion,
 *      buffer con los datos a enviar,
 *      el numero de bytes que, como maximo, se leeran del socket
 *      un entero para especificar opciones adicionales
 * sale: el numero de bytes recibidos
 *      -1 si error
 */
int recibeXtra(int sockConexion, void *datos, int numDatos, int xtra);

/*
 * envia
 *      Envia datos a traves de un socket conectado
 *
 * entra: el socket de conexion,
 *      buffer donde almacenar lo recibido,
 *      la longitud de mensaje a enviar
 * sale: el numero de bytes enviados
 *      -1 si error
 */
int envia(int sockConexion, void *datos, int nDatos);
/*
 * conecta
 *      Se conecta a un socket abierto por un servidor. La direccion se puede
 *      proporcionar en formato numerico o con nombre que se resuelve via DNS.
 *
 * entra:
 *      el nombre del servidor, y el puerto de conexiones
 * sale:
 *      el socket obtenido, o -1 si error
 */
int conecta(char *server, int port);

/*
 * pollIn
 *      Espera a que haya algo que leer de un socket dado, bloqueando
 *      el hilo en el punto desde el que se llama a esta funcion.
 *
 *
 * entra: el socket de conexion,
 *      timeout maximo en milisegundos
 * sale: 0 si algo recibido,
 *       1 si interrupcion recibida
 *      -1 si otro tipo de error
 */
int pollIn(int sock_num, int timeout);

/*
 * pollOut
 *      Espera a que se pueda escribir a un socket dado, bloqueando
 *      el hilo en el punto desde el que se llama a esta funcion.
 *
 * entra: el socket de conexion,
 *      timeout maximo en milisegundos
 * sale: 0 si algo recibido,
 *       1 si interrupcion recibida
 *      -1 si otro tipo de error
 */
int pollOut(int sock_num, int timeout);

/*
 * muestraDatos
 *      Muestra una serie de bytes en 2 columnas de a 8, una en formato
 *      hexadecimal y otra como texto
 * entra:
 *      un array con los datos
 *      el numero de bytes a representar dentro de este array
 * sale:
 *      nada, pero imprime cosas por stdout
 */
void muestraDatos(void *datos, int nDatos);

#endif // __SOCK_H_


text:
module GtmOnRails
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "Creates a GTM on Rails initializer to your application."

      def copy_initializer
        template "gtm_on_rails.rb", "config/initializers/gtm_on_rails.rb"
      end

      def insert_javascript_tag
        inject_into_file "app/views/layouts/application.html.erb", after: /<head[\s]?[^>]*>/ do
          "\n    <%= render_gtm_on_rails_tag_in_head %>\n"
        end
        inject_into_file "app/views/layouts/application.html.erb", after: /<body[\s]?[^>]*>/ do
          "\n    <%= render_gtm_on_rails_tag_in_body %>\n"
        end
      end
    end
  end
end


text:
using System;
using Kerberos.NET.Crypto;
using Kerberos.NET.Entities;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Tests.Kerberos.NET
{
    [TestClass]
    public class KrbKdcRepTests
    {
        [TestMethod]
        [ExpectedException(typeof(InvalidOperationException))]
        public void CreateServiceTicket_NullEncPartKey()
        {
            KrbKdcRep.GenerateServiceTicket<KrbTgsRep>(new ServiceTicketRequest
            {
                EncryptedPartKey = null
            });
        }

        [TestMethod]
        [ExpectedException(typeof(InvalidOperationException))]
        public void CreateServiceTicket_NullServicePrincipal()
        {
            var key = KrbEncryptionKey.Generate(EncryptionType.AES128_CTS_HMAC_SHA1_96).AsKey();

            KrbKdcRep.GenerateServiceTicket<KrbTgsRep>(new ServiceTicketRequest
            {
                EncryptedPartKey = key,
                ServicePrincipal = null
            });
        }

        [TestMethod]
        [ExpectedException(typeof(InvalidOperationException))]
        public void CreateServiceTicket_NullServicePrincipalKey()
        {
            var key = KrbEncryptionKey.Generate(EncryptionType.AES128_CTS_HMAC_SHA1_96).AsKey();

            KrbKdcRep.GenerateServiceTicket<KrbTgsRep>(new ServiceTicketRequest
            {
                EncryptedPartKey = key,
                ServicePrincipal = new FakeKerberosPrincipal("blah@blah.com")
            });
        }

        [TestMethod]
        [ExpectedException(typeof(InvalidOperationException))]
        public void CreateServiceTicket_NullPrincipal()
        {
            var key = KrbEncryptionKey.Generate(EncryptionType.AES128_CTS_HMAC_SHA1_96).AsKey();

            KrbKdcRep.GenerateServiceTicket<KrbTgsRep>(new ServiceTicketRequest
            {
                EncryptedPartKey = key,
                ServicePrincipal = new FakeKerberosPrincipal("blah@blah.com"),
                ServicePrincipalKey = key
            });
        }

        [TestMethod]
        public void CreateServiceTicket()
        {
            var key = KrbEncryptionKey.Generate(EncryptionType.AES128_CTS_HMAC_SHA1_96).AsKey();

            var ticket = KrbKdcRep.GenerateServiceTicket<KrbTgsRep>(new ServiceTicketRequest
            {
                EncryptedPartKey = key,
                ServicePrincipal = new FakeKerberosPrincipal("blah@blah.com"),
                ServicePrincipalKey = key,
                Principal = new FakeKerberosPrincipal("blah@blah2.com"),
                RealmName = "blah.com"
            });

            Assert.IsNotNull(ticket);
        }
    }
}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class BulkRenderingRequest
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class BulkRenderingRequest
   ">
    <meta name="generator" content="docfx 2.56.6.0">

    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">

              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                Toggle navigation

              </button>

              <form class="navbar-form navbar-right" role="search" id="search">

                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">

              </form>

          Show / Hide Table of Contents

Class BulkRenderingRequest

Represents a request to render many template files in bulk.

Inheritance

System.Object

BulkRenderingRequest

Inherited Members

      System.Object.Equals(System.Object)

      System.Object.Equals(System.Object, System.Object)

      System.Object.GetHashCode()

      System.Object.GetType()

      System.Object.MemberwiseClone()

      System.Object.ReferenceEquals(System.Object, System.Object)

      System.Object.ToString()

Namespace: ZptSharp.BulkRendering

Assembly: ZptSharp.Abstractions.dll

Syntax

public class BulkRenderingRequest

Properties

    |
    Improve this Doc

    View Source

ExcludedPaths

Gets or sets a collection of paths/glob patterns used to match files which should
be excluded from the operation.  The files matched by these exclusions
are subtracted from IncludedPaths before rendering begins.

Declaration

public ICollection<string> ExcludedPaths { get; set; }

Property Value

        Type
        Description

        System.Collections.Generic.ICollection<System.String>

The excluded paths.

    |
    Improve this Doc

    View Source

IncludedPaths

Gets or sets a collection of paths/glob patterns used to match valid input templates.

Declaration

public ICollection<string> IncludedPaths { get; set; }

Property Value

        Type
        Description

        System.Collections.Generic.ICollection<System.String>

The included paths where input templates are found.

    |
    Improve this Doc

    View Source

InputRootPath

Gets or sets a single directory path, used as reference for the 'root' input
directory.  This will be used to determine each input file's relative
path from the input.  This allows it to be written to the same relative
path for output.

Declaration

public string InputRootPath { get; set; }

Property Value

        Type
        Description

        System.String

The root path for the input files.

Remarks

If left null or empty, then the current working directory will be used as the root path.
Note that any input files which are not descendents of the root path will not
be included in the rendering operation.

    |
    Improve this Doc

    View Source

Model

Gets or sets the model object to be used when rendering the templates.

Declaration

public object Model { get; set; }

Property Value

        Type
        Description

        System.Object

The model.

    |
    Improve this Doc

    View Source

OutputFileExtension

If set, then output files will have their file extension replaced
with this extension, instead of their previous extension.

Declaration

public string OutputFileExtension { get; set; }

Property Value

        Type
        Description

        System.String

The output file extension.

    |
    Improve this Doc

    View Source

OutputPath

Gets the directory path to where the files shall be output once they are rendered.

Declaration

public string OutputPath { get; set; }

Property Value

        Type
        Description

        System.String

The output path.

    |
    Improve this Doc

    View Source

RenderingConfig

Gets or sets the rendering configuration to be used when rendering the templates.

Declaration

public RenderingConfig RenderingConfig { get; set; }

Property Value

        Type
        Description

        RenderingConfig

The rendering config.

                    Improve this Doc

                    View Source

In This Article

              Back to top

            Generated by DocFX


text:
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FellSky.Services
{
    public class ServiceLocator: IServiceProvider
    {
        private GameServiceContainer _services;
        private Dictionary<Type, Func<object>> _serviceGetters = new Dictionary<Type, Func<object>>();

        public static ServiceLocator Instance { get; private set; }

        public static void Initialize() => Instance = new ServiceLocator();
        public static void Initialize(GameServiceContainer gameServiceContainer) => Instance = new ServiceLocator(gameServiceContainer);

        public ServiceLocator(GameServiceContainer gameServiceContainer)
        {
            _services = gameServiceContainer;
        }

        public ServiceLocator()
        {
            _services = new GameServiceContainer();
        }

        public object GetService(Type serviceType) => _services.GetService(serviceType);

        public T GetService<T>() where T : class => _services.GetService<T>();

        public void RegisterService<T>()
            where T : class, new()
        {
            _serviceGetters[typeof(T)] = () => new T();
        }

        public void RegisterService<T>(Func<T> getter)
            where T : class
        {
            _serviceGetters[typeof(T)] = getter;
        }

        public void RegisterService<TInterface, TObject>()
            where TInterface : class
            where TObject: class, TInterface, new()
        {
            _serviceGetters[typeof(TInterface)] = () => new TObject();
        }

        public void RemoveService<T>() => _services.RemoveService(typeof(T));
        public void RemoveService(Type type) => _services.RemoveService(type);
    }

}


text:
@extends('admin.layouts.master')

@section('page_title')
	User Directory
@stop

@section('page_desc')

User Directory search for all active or inactive users

@stop

@section('breadcrumbs')
	{{ Breadcrumbs::render('users') }}
@stop

@section('content')
@yield('message')
	@if(Session::has('success'))

				<button type="button" class="close" data-dismiss="alert">×Close</button>

 {{ Session::get('success') }}

	@endif
	@if(Session::has('error'))

				<button type="button" class="close" data-dismiss="alert">×Close</button>

 {{ Session::get('error') }}

	@endif
	@if($errors->has())

			<button type="button" class="close" data-dismiss="alert">
				×Close
			</button>
		@foreach ($errors->all() as $error)

 {{ $error }}

		@endforeach

	@endif

Can't find a user?

Enter first or last in the search field and select to sort. Deleted? View the  Historical User Directory for deleted user

@if($users->getTotal() > VSA\Controllers\Admin\BaseController::$pagination_limits[0])

		<form role="form">

					Display

					<select name="per_page" id="pagination-per_page" class="form-control">
						@foreach(VSA\Controllers\Admin\BaseController::$pagination_limits as $limit)
							<option value="{{ $limit }}" {{ $recordlimit == $limit ? 'selected="selected"' : '' }}>{{ ucfirst($limit) }}</option>
						@endforeach
					</select>

		</form>

			{{ $users->appends(array('limit' => $recordlimit))->links() }}

@endif

								Photo
								Full Name
								Status
								Role
								Access
								Email
								Registered
								Phone
								Actions

							@if(count($users))
								@foreach($users as $user)

										avatar->url('medium') }}" alt="{{ $user->fname }}">
										{{{ $user->fname }}} {{{ $user->lname }}}

											@if(!$user->active)
												Inactive
											@else
												Active
											@endif

										{{{ $user->role->name }}}

											@if($user->admin)
												Administrator
											@else
												User
											@endif

										{{ $user->email }}
										{{ date('Y-M-d', strtotime($user->created_at)) }}
										{{ $user->profile->home_phone }}

								@endforeach
							@endif

			{{ $users->links() }}

@stop

@section('scripts')

@stop