<commit_before>#
# Copyright (c) 2012-2016 <NAME>
#
# This file is part of VapourSynth.
#
# VapourSynth is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# VapourSynth 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with VapourSynth; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#

from libc.stdint cimport uint8_t, uint32_t, int64_t, uintptr_t

cdef extern from "include/VapourSynth.h" nogil:
    ctypedef struct VSFrameRef:
        pass
    ctypedef struct VSNodeRef:
        pass
    ctypedef struct VSFuncRef:
        pass
    ctypedef struct VSCore:
        pass
    ctypedef struct VSPlugin:
        pass
    ctypedef struct VSNode:
        pass
    ctypedef struct VSMap:
        pass
    ctypedef struct VSFrameContext:
        pass

    cdef enum VSColorFamily:
        cmGray  = 1000000
        cmRGB   = 2000000
        cmYUV   = 3000000
        cmYCoCg = 4000000
        cmCompat= 9000000

    cdef enum VSSampleType:
        stInteger = 0
        stFloat   = 1

    cdef enum VSPresetFormat:
        pfNone = 0

        pfGray8 = cmGray + 10
        pfGray16

        pfGrayH
        pfGrayS

        pfYUV420P8 = cmYUV + 10
        pfYUV422P8
        pfYUV444P8
        pfYUV410P8
        pfYUV411P8
        pfYUV440P8

        pfYUV420P9
        pfYUV422P9
        pfYUV444P9

        pfYUV420P10
        pfYUV422P10
        pfYUV444P10

        pfYUV420P16
        pfYUV422P16
        pfYUV444P16

        pfYUV444PH
        pfYUV444PS

        pfRGB24 = cmRGB + 10
        pfRGB27
        pfRGB30
        pfRGB48

        pfRGBH
        pfRGBS

        pfCompatBGR32 = cmCompat + 10
        pfCompatYUY2

    cdef enum VSFilterMode:
        fmParallel = 100
        fmParallelRequestsOnly = 200
        fmSerialUnordered = 300
        fmSerial = 400

    ctypedef struct VSFormat:
        char name[32]
        int id
        int colorFamily
        int sampleType
        int bytesPerSample
        int bitsPerSample
        int subSamplingW
        int subSamplingH
        int numPlanes

    cdef enum VSNodeFlags:
        nfNoCache    = 1
        nfIsCache    = 2
        nfMakeLinear = 4

    cdef enum VSGetPropErrors:
        peUnset = 1<commit_msg>Fix old typo<commit_after>#
# Copyright (c) 2012-2016 <NAME>
#
# This file is part of VapourSynth.
#
# VapourSynth is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# VapourSynth 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with VapourSynth; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#

from libc.stdint cimport uint8_t, uint32_t, int64_t, uintptr_t

cdef extern from "include/VapourSynth.h" nogil:
    ctypedef struct VSFrameRef:
        pass
    ctypedef struct VSNodeRef:
        pass
    ctypedef struct VSFuncRef:
        pass
    ctypedef struct VSCore:
        pass
    ctypedef struct VSPlugin:
        pass
    ctypedef struct VSNode:
        pass
    ctypedef struct VSMap:
        pass
    ctypedef struct VSFrameContext:
        pass

    cdef enum VSColorFamily:
        cmGray  = 1000000
        cmRGB   = 2000000
        cmYUV   = 3000000
        cmYCoCg = 4000000
        cmCompat= 9000000

    cdef enum VSSampleType:
        stInteger = 0
        stFloat   = 1

    cdef enum VSPresetFormat:
        pfNone = 0

        pfGray8 = cmGray + 10
        pfGray16

        pfGrayH
        pfGrayS

        pfYUV420P8 = cmYUV + 10
        pfYUV422P8
        pfYUV444P8
        pfYUV410P8
        pfYUV411P8
        pfYUV440P8

        pfYUV420P9
        pfYUV422P9
        pfYUV444P9

        pfYUV420P10
        pfYUV422P10
        pfYUV444P10

        pfYUV420P16
        pfYUV422P16
        pfYUV444P16

        pfYUV444PH
        pfYUV444PS

        pfRGB24 = cmRGB + 10
        pfRGB27
        pfRGB30
        pfRGB48

        pfRGBH
        pfRGBS

        pfCompatBGR32 = cmCompat + 10
        pfCompatYUY2

    cdef enum VSFilterMode:
        fmParallel = 100
        fmParallelRequestsOnly = 200
        fmUnordered = 300
        fmSerial = 400

    ctypedef struct VSFormat:
        char name[32]
        int id
        int colorFamily
        int sampleType
        int bytesPerSample
        int bitsPerSample
        int subSamplingW
        int subSamplingH
        int numPlanes

    cdef enum VSNodeFlags:
        nfNoCache    = 1
        nfIsCache    = 2
        nfMakeLinear = 4

    cdef enum VSGetPropErrors:
        peUnset = 1
{'fraction_non_alphanumeric': 0.03661919733678565, 'fraction_numerical': 0.06510079526539671, 'mean_word_length': 1.94393032117583, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1849705', 'n_tokens_mistral': 2069, 'n_tokens_neox': 1652, 'n_words': 553}