VirtualBox

Ignore:
Timestamp:
Oct 6, 2009 6:07:06 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: update to wine 1.1.30

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wincodec.idl

    r22496 r23571  
    6161} WICBitmapDecoderCapabilities;
    6262
     63typedef enum WICBitmapDitherType {
     64    WICBitmapDitherTypeNone = 0x00000000,
     65    WICBitmapDitherTypeSolid = 0x00000000,
     66    WICBitmapDitherTypeOrdered4x4 = 0x00000001,
     67    WICBitmapDitherTypeOrdered8x8 = 0x00000002,
     68    WICBitmapDitherTypeOrdered16x16 = 0x00000003,
     69    WICBitmapDitherTypeSpiral4x4 = 0x00000004,
     70    WICBitmapDitherTypeSpiral8x8 = 0x00000005,
     71    WICBitmapDitherTypeDualSpiral4x4 = 0x00000006,
     72    WICBitmapDitherTypeDualSpiral8x8 = 0x00000007,
     73    WICBitmapDitherTypeErrorDiffusion = 0x00000008,
     74    WICBITMAPDITHERTYPE_FORCE_DWORD = CODEC_FORCE_DWORD
     75} WICBitmapDitherType;
     76
     77typedef enum WICBitmapEncoderCacheOption {
     78    WICBitmapEncoderCacheInMemory = 0x00000000,
     79    WICBitmapEncoderCacheTempFile = 0x00000001,
     80    WICBitmapEncoderNoCache = 0x00000002,
     81    WICBITMAPENCODERCACHEOPTION_FORCE_DWORD = CODEC_FORCE_DWORD
     82} WICBitmapEncoderCacheOption;
     83
    6384typedef enum WICBitmapPaletteType {
    6485    WICBitmapPaletteTypeCustom = 0x00000000,
     
    115136cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppIndexed, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x04);")
    116137
     138cpp_quote("DEFINE_GUID(GUID_WICPixelFormatBlackWhite, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x05);")
     139cpp_quote("DEFINE_GUID(GUID_WICPixelFormat2bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x06);")
     140cpp_quote("DEFINE_GUID(GUID_WICPixelFormat4bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x07);")
     141cpp_quote("DEFINE_GUID(GUID_WICPixelFormat8bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x08);")
     142cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppGray, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0b);")
     143
    117144cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR555, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x09);")
     145cpp_quote("DEFINE_GUID(GUID_WICPixelFormat16bppBGR565, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0a);")
    118146cpp_quote("DEFINE_GUID(GUID_WICPixelFormat24bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0c);")
    119147cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGR, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0e);")
     148cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x0f);")
     149cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppPBGRA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x10);")
     150
     151cpp_quote("DEFINE_GUID(GUID_WICPixelFormat48bppRGB, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x15);")
     152cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppRGBA, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x16);")
    120153
    121154typedef struct WICRect {
     
    137170
    138171cpp_quote("#define WINCODEC_ERR_WRONGSTATE 0x88982f04")
     172cpp_quote("#define WINCODEC_ERR_NOTINITIALIZED 0x88982f0c")
    139173cpp_quote("#define WINCODEC_ERR_CODECNOTHUMBNAIL 0x88982f44")
    140174cpp_quote("#define WINCODEC_ERR_PALETTEUNAVAILABLE 0x88982f45")
    141175cpp_quote("#define WINCODEC_ERR_COMPONENTNOTFOUND 0x88982f50")
     176cpp_quote("#define WINCODEC_ERR_FRAMEMISSING 0x88982f62")
     177cpp_quote("#define WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT 0x88982f80")
    142178cpp_quote("#define WINCODEC_ERR_UNSUPPORTEDOPERATION 0x88982f81")
    143179cpp_quote("#define WINCODEC_ERR_INSUFFICIENTBUFFER 0x88982f8c")
    144180
    145181interface IWICBitmap;
    146 interface IWICBitmapEncoder;
    147182interface IWICPalette;
    148 interface IWICFormatConverter;
    149183interface IWICBitmapScaler;
    150184interface IWICBitmapClipper;
    151185interface IWICBitmapFlipRotator;
    152 interface IWICStream;
    153186interface IWICColorContext;
    154187interface IWICColorTransform;
     
    406439        [in] UINT index,
    407440        [out] IWICBitmapFrameDecode **ppIBitmapFrame);
     441}
     442
     443[
     444    object,
     445    uuid(00000105-a8f2-4877-ba0a-fd2b6645fb94)
     446]
     447interface IWICBitmapFrameEncode : IUnknown
     448{
     449    HRESULT Initialize(
     450        [in, unique] IPropertyBag2 *pIEncoderOptions);
     451
     452    HRESULT SetSize(
     453        [in] UINT uiWidth,
     454        [in] UINT uiHeight);
     455
     456    HRESULT SetResolution(
     457        [in] double dpiX,
     458        [in] double dpiY);
     459
     460    HRESULT SetPixelFormat(
     461        [in, out] WICPixelFormatGUID *pPixelFormat);
     462
     463    HRESULT SetColorContexts(
     464        [in] UINT cCount,
     465        [in, size_is(cCount)] IWICColorContext **ppIColorContext);
     466
     467    HRESULT SetPalette(
     468        [in] IWICPalette *pIPalette);
     469
     470    HRESULT SetThumbnail(
     471        [in] IWICBitmapSource *pIThumbnail);
     472
     473    HRESULT WritePixels(
     474        [in] UINT lineCount,
     475        [in] UINT cbStride,
     476        [in] UINT cbBufferSize,
     477        [in, size_is(cbBufferSize)] BYTE *pbPixels);
     478
     479    HRESULT WriteSource(
     480        [in] IWICBitmapSource *pIBitmapSource,
     481        [in, unique] WICRect *prc);
     482
     483    HRESULT Commit();
     484
     485    HRESULT GetMetadataQueryWriter(
     486        IWICMetadataQueryWriter **ppIMetadataQueryWriter);
     487}
     488
     489interface IWICBitmapEncoder;
     490
     491[
     492    object,
     493    uuid(94c9b4ee-a09f-4f92-8a1e-4a9bce7e76fb)
     494]
     495interface IWICBitmapEncoderInfo : IWICBitmapCodecInfo
     496{
     497    HRESULT CreateInstance(
     498        [out] IWICBitmapEncoder **ppIBitmapEncoder);
     499}
     500
     501[
     502    object,
     503    uuid(00000103-a8f2-4877-ba0a-fd2b6645fb94)
     504]
     505interface IWICBitmapEncoder : IUnknown
     506{
     507    HRESULT Initialize(
     508        [in] IStream *pIStream,
     509        [in] WICBitmapEncoderCacheOption cacheOption);
     510
     511    HRESULT GetContainerFormat(
     512        [out] GUID *pguidContainerFormat);
     513
     514    HRESULT GetEncoderInfo(
     515        [out] IWICBitmapEncoderInfo **ppIEncoderInfo);
     516
     517    HRESULT SetColorContexts(
     518        [in] UINT cCount,
     519        [in, size_is(cCount)] IWICColorContext **ppIColorContext);
     520
     521    HRESULT SetPalette(
     522        [in] IWICPalette *pIPalette);
     523
     524    HRESULT SetThumbnail(
     525        [in] IWICBitmapSource *pIThumbnail);
     526
     527    HRESULT SetPreview(
     528        [in] IWICBitmapSource *pIPreview);
     529
     530    HRESULT CreateNewFrame(
     531        [out] IWICBitmapFrameEncode **ppIFrameEncode,
     532        [in, out, unique] IPropertyBag2 **ppIEncoderOptions);
     533
     534    HRESULT Commit();
     535
     536    HRESULT GetMetadataQueryWriter(
     537        [out] IWICMetadataQueryWriter **ppIMetadataQueryWriter);
     538}
     539
     540[
     541    object,
     542    uuid(00000301-a8f2-4877-ba0a-fd2b6645fb94)
     543]
     544interface IWICFormatConverter : IWICBitmapSource
     545{
     546    HRESULT Initialize(
     547        [in] IWICBitmapSource *pISource,
     548        [in] REFWICPixelFormatGUID dstFormat,
     549        [in] WICBitmapDitherType dither,
     550        [in] IWICPalette *pIPalette,
     551        [in] double alphaThresholdPercent,
     552        [in] WICBitmapPaletteType paletteTranslate);
     553
     554    HRESULT CanConvert(
     555        [in] REFWICPixelFormatGUID srcPixelFormat,
     556        [in] REFWICPixelFormatGUID dstPixelFormat,
     557        [out] BOOL *pfCanConvert);
     558}
     559
     560[
     561    object,
     562    uuid(9f34fb65-13f4-4f15-bc57-3726b5e53d9f)
     563]
     564interface IWICFormatConverterInfo : IWICComponentInfo
     565{
     566    HRESULT GetPixelFormats(
     567        [in] UINT cFormats,
     568        [in, out, size_is(cFormats)] WICPixelFormatGUID *pPixelFormatGUIDs,
     569        [out] UINT *pcActual);
     570
     571    HRESULT CreateInstance(
     572        [out] IWICFormatConverter **ppIConverter);
     573}
     574
     575[
     576    object,
     577    uuid(135ff860-22b7-4ddf-b0f6-218f4f299a43)
     578]
     579interface IWICStream : IStream
     580{
     581    HRESULT InitializeFromIStream(
     582        [in] IStream *pIStream);
     583
     584    HRESULT InitializeFromFilename(
     585        [in] LPCWSTR wzFileName,
     586        [in] DWORD dwAccessMode);
     587
     588    HRESULT InitializeFromMemory(
     589        [in, size_is(cbBufferSize)] BYTE *pbBuffer,
     590        [in] DWORD cbBufferSize);
     591
     592    HRESULT InitializeFromIStreamRegion(
     593        [in] IStream *pIStream,
     594        [in] ULARGE_INTEGER ulOffset,
     595        [in] ULARGE_INTEGER ulMaxSize);
    408596}
    409597
     
    536724}
    537725
     726cpp_quote("HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitmapSource *pISrc, IWICBitmapSource **ppIDst);")
     727
    538728cpp_quote("DEFINE_GUID(CLSID_WICBmpDecoder, 0x6b462062,0x7cbf,0x400d,0x9f,0xdb,0x81,0x3d,0xd1,0x0f,0x27,0x78);")
    539729cpp_quote("DEFINE_GUID(CLSID_WICPngDecoder, 0x389ea17b,0x5078,0x4cde,0xb6,0xef,0x25,0xc1,0x51,0x75,0xc7,0x51);")
     
    544734cpp_quote("DEFINE_GUID(CLSID_WICWmpDecoder, 0xa26cec36,0x234c,0x4950,0xae,0x16,0xe3,0x4a,0xac,0xe7,0x1d,0x0d);")
    545735
     736cpp_quote("DEFINE_GUID(CLSID_WICBmpEncoder, 0x69be8bb4,0xd66d,0x47c8,0x86,0x5a,0xed,0x15,0x89,0x43,0x37,0x82);")
     737cpp_quote("DEFINE_GUID(CLSID_WICPngEncoder, 0x27949969,0x876a,0x41d7,0x94,0x47,0x56,0x8f,0x6a,0x35,0xa4,0xdc);")
     738cpp_quote("DEFINE_GUID(CLSID_WICJpegEncoder, 0x1a34f5c1,0x4a5a,0x46dc,0xb6,0x44,0x1f,0x45,0x67,0xe7,0xa6,0x76);")
     739cpp_quote("DEFINE_GUID(CLSID_WICGifEncoder, 0x114f5598,0x0b22,0x40a0,0x86,0xa1,0xc8,0x3e,0xa4,0x95,0xad,0xbd);")
     740cpp_quote("DEFINE_GUID(CLSID_WICTiffEncoder, 0x0131be10,0x2001,0x4c5f,0xa9,0xb0,0xcc,0x88,0xfa,0xb6,0x4c,0xe8);")
     741cpp_quote("DEFINE_GUID(CLSID_WICWmpEncoder, 0xac4ce3cb,0xe1c1,0x44cd,0x82,0x15,0x5a,0x16,0x65,0x50,0x9e,0xc2);")
     742
     743cpp_quote("DEFINE_GUID(CLSID_WICDefaultFormatConverter, 0x1a3f11dc,0xb514,0x4b17,0x8c,0x5f,0x21,0x54,0x51,0x38,0x52,0xf1);")
     744
    546745cpp_quote("DEFINE_GUID(GUID_ContainerFormatBmp, 0x0af1d87e,0xfcfe,0x4188,0xbd,0xeb,0xa7,0x90,0x64,0x71,0xcb,0xe3);")
    547746cpp_quote("DEFINE_GUID(GUID_ContainerFormatPng, 0x1b7cfaf4,0x713f,0x473c,0xbb,0xcd,0x61,0x37,0x42,0x5f,0xae,0xaf);")
     
    555754
    556755cpp_quote("DEFINE_GUID(CATID_WICBitmapDecoders, 0x7ed96837,0x96f0,0x4812,0xb2,0x11,0xf1,0x3c,0x24,0x11,0x7e,0xd3);")
     756cpp_quote("DEFINE_GUID(CATID_WICBitmapEncoders, 0xac757296,0x3522,0x4e11,0x98,0x62,0xc1,0x7b,0xe5,0xa1,0x76,0x7e);")
     757cpp_quote("DEFINE_GUID(CATID_WICFormatConverters, 0x7835eae8,0xbf14,0x49d1,0x93,0xce,0x53,0x3a,0x40,0x7b,0x22,0x48);")
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette