3 #include "ISimpleSubPic.h"
5 struct IXySubRenderFrame
;
7 class SimpleSubpic
: public CUnknown
, public ISimpleSubPic
10 SimpleSubpic(IXySubRenderFrame
*sub_render_frame
, int alpha_blt_dst_type
);
14 STDMETHODIMP
NonDelegatingQueryInterface(REFIID riid
, void** ppv
);
16 STDMETHODIMP
AlphaBlt(SubPicDesc
* target
);
25 XyPlannerFormatExtra extra
;
28 SimpleSubpic(const SimpleSubpic
&);
29 void operator=(const SimpleSubpic
&)const;
31 HRESULT
AlphaBltAnv12_P010( SubPicDesc
* target
, const Bitmap
& src
);
32 HRESULT
AlphaBltAnv12_Nv12(SubPicDesc
* target
, const Bitmap
& src
);
33 HRESULT
AlphaBlt(SubPicDesc
* target
, const Bitmap
& src
);
34 HRESULT
ConvertColorSpace();
35 void SubsampleAndInterlace(int index
, Bitmap
*bitmap
, bool u_first
);
37 CComPtr
<IXySubRenderFrame
> m_sub_render_frame
;
39 CAtlArray
<Bitmap
> m_bitmap
;
40 CAtlArray
<BYTE
*> m_buffers
;
43 int m_alpha_blt_dst_type
;