<commit_before>﻿using System;
using System.Runtime.InteropServices;

namespace stakx.WIC.Interop
{
    [ComImport]
    [Guid(IID.IWICImagingFactory)]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public unsafe interface IWICImagingFactory
    {
        unsafe void CreateDecoderFromFilename(
            [In, MarshalAs(UnmanagedType.LPWStr)] string wzFilename,
            [In] Guid* pguidVendor,
            [In] StreamAccessMode dwDesiredAccess,
            [In] WICDecodeOptions metadataOptions,
            [Out] out IWICBitmapDecoder ppIDecoder);

        unsafe void CreateDecoderFromStream(
            [In] IStream pIStream,
            [In] Guid* pguidVendor,
            [In] WICDecodeOptions metadataOptions,
            [Out] out IWICBitmapDecoder ppIDecoder);

        unsafe void CreateDecoderFromFileHandle(
            [In] IntPtr hFile,
            [In] Guid* pguidVendor,
            [In] WICDecodeOptions metadataOptions,
            [Out] out IWICBitmapDecoder ppIDecoder);

        void CreateComponentInfo(
            [In] Guid clsidComponent,
            [Out] out IWICComponentInfo ppIInfo);

        unsafe void CreateDecoder(
            [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidContainerFormat,
            [In] Guid* pguidVendor,
            [Out] out IWICBitmapDecoder ppIDecoder);

        unsafe void CreateEncoder(
            [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidContainerFormat,
            [In] Guid* pguidVendor,
            [Out] out IWICBitmapEncoder ppIEncoder);

        void CreatePalette(
            [Out] out IWICPalette ppIPalette);

        void CreateFormatConverter(
            [Out] out IWICFormatConverter ppIFormatConverter);

        void CreateBitmapScaler(
            [Out] out IWICBitmapScaler ppIBitmapScaler);

        void CreateBitmapClipper(
            [Out] out IWICBitmapClipper ppIBitmapClipper);

        void CreateBitmapFlipRotator(
            [Out] out IWICBitmapFlipRotator ppIBitmapFlipRotator);

        void CreateStream(
            [Out] out IWICStream ppIWICStream);

        void CreateColorContext(
            [Out] out IWICColorContext ppIWICColorContext);

        void CreateColorTransformer(
            [Out] out IWICColorTransform ppIWICColorTransform);

        void CreateBitmap(
            [In] int uiWidth,
            [In] int uiHeight,
            [In] Guid pixelFormat,
            [In] WICBitmapCreateCacheOption option,
            [Out] out IWICBitmap ppIBitmap);

        void CreateBitmapFromSource(
            [In] IWICBitmapSource pIBitmapSource,
            [In] WICBitmapCreateCacheOption option,
            [Out] out IWICBitmap ppIBitmap);

        void CreateBitmapFromSourceRect(
            [In] IWICBitmapSource pIBitmapSource,
            [In] int x,
            [In] int y,
            [In] int width,
            [In] int height,
            [Out] out IWICBitmap ppIBitmap);

        unsafe void CreateBitmapFromMemory(
            [In] int uiWidth,
            [In] int uiHeight,
            [In] Guid pixelFormat,
            [In] int cbStride,
            [In] int cbBufferSize,
            [In, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U1, SizeParamIndex = 4)] byte* pbBuffer,
            [Out] out IWICBitmap ppIBitmap);

        void CreateBitmapFromHBITMAP(
            [In] IntPtr hBitmap,<commit_msg>Fix more incorrect `REFGUID` marshalling declarations<commit_after>﻿using System;
using System.Runtime.InteropServices;

namespace stakx.WIC.Interop
{
    [ComImport]
    [Guid(IID.IWICImagingFactory)]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public unsafe interface IWICImagingFactory
    {
        unsafe void CreateDecoderFromFilename(
            [In, MarshalAs(UnmanagedType.LPWStr)] string wzFilename,
            [In] Guid* pguidVendor,
            [In] StreamAccessMode dwDesiredAccess,
            [In] WICDecodeOptions metadataOptions,
            [Out] out IWICBitmapDecoder ppIDecoder);

        unsafe void CreateDecoderFromStream(
            [In] IStream pIStream,
            [In] Guid* pguidVendor,
            [In] WICDecodeOptions metadataOptions,
            [Out] out IWICBitmapDecoder ppIDecoder);

        unsafe void CreateDecoderFromFileHandle(
            [In] IntPtr hFile,
            [In] Guid* pguidVendor,
            [In] WICDecodeOptions metadataOptions,
            [Out] out IWICBitmapDecoder ppIDecoder);

        void CreateComponentInfo(
            [In] Guid clsidComponent,
            [Out] out IWICComponentInfo ppIInfo);

        unsafe void CreateDecoder(
            [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidContainerFormat,
            [In] Guid* pguidVendor,
            [Out] out IWICBitmapDecoder ppIDecoder);

        unsafe void CreateEncoder(
            [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidContainerFormat,
            [In] Guid* pguidVendor,
            [Out] out IWICBitmapEncoder ppIEncoder);

        void CreatePalette(
            [Out] out IWICPalette ppIPalette);

        void CreateFormatConverter(
            [Out] out IWICFormatConverter ppIFormatConverter);

        void CreateBitmapScaler(
            [Out] out IWICBitmapScaler ppIBitmapScaler);

        void CreateBitmapClipper(
            [Out] out IWICBitmapClipper ppIBitmapClipper);

        void CreateBitmapFlipRotator(
            [Out] out IWICBitmapFlipRotator ppIBitmapFlipRotator);

        void CreateStream(
            [Out] out IWICStream ppIWICStream);

        void CreateColorContext(
            [Out] out IWICColorContext ppIWICColorContext);

        void CreateColorTransformer(
            [Out] out IWICColorTransform ppIWICColorTransform);

        void CreateBitmap(
            [In] int uiWidth,
            [In] int uiHeight,
            [In, MarshalAs(UnmanagedType.LPStruct)] Guid pixelFormat,
            [In] WICBitmapCreateCacheOption option,
            [Out] out IWICBitmap ppIBitmap);

        void CreateBitmapFromSource(
            [In] IWICBitmapSource pIBitmapSource,
            [In] WICBitmapCreateCacheOption option,
            [Out] out IWICBitmap ppIBitmap);

        void CreateBitmapFromSourceRect(
            [In] IWICBitmapSource pIBitmapSource,
            [In] int x,
            [In] int y,
            [In] int width,
            [In] int height,
            [Out] out IWICBitmap ppIBitmap);

        unsafe void CreateBitmapFromMemory(
            [In] int uiWidth,
            [In] int uiHeight,
            [In, MarshalAs(UnmanagedType.LPStruct)] Guid pixelFormat,
            [In] int cbStride,
            [In] int cbBufferSize,
            [In, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U1, SizeParamIndex = 4)] byte* pbBuffer,
            [Out] out IWICBitmap ppIBitmap);

        void CreateBitmapFromHBITMAP(
            [In] IntPtr hBitmap,
{'fraction_non_alphanumeric': 0.07159487776484284, 'fraction_numerical': 0.0005820721769499418, 'mean_word_length': 2.2481096408317582, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2362447', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1932, 'n_words': 478}