@@ -161,7 +161,11 @@ cdef extern from 'driver_types.h':
161161 pass
162162 ctypedef cudaGraphicsResource* cudaGraphicsResource_t ' cudaGraphicsResource_t'
163163
164- cdef extern from " " :
164+ cdef extern from * :
165+ """
166+ struct CUeglStreamConnection_st;
167+ typedef struct CUeglStreamConnection_st *cudaEglStreamConnection;
168+ """
165169 cdef struct CUeglStreamConnection_st ' CUeglStreamConnection_st' :
166170 pass
167171 ctypedef CUeglStreamConnection_st* cudaEglStreamConnection ' cudaEglStreamConnection'
@@ -1835,16 +1839,15 @@ cdef struct cuda_bindings_runtime__anon_pod5:
18351839 size_t height
18361840 size_t pitchInBytes
18371841
1838- cdef extern from ' ' :
1839- cdef struct cudaEglPlaneDesc_st:
1840- unsigned int width
1841- unsigned int height
1842- unsigned int depth
1843- unsigned int pitch
1844- unsigned int numChannels
1845- cudaChannelFormatDesc channelDesc
1846- unsigned int reserved[4 ]
1847- ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc
1842+ cdef struct cudaEglPlaneDesc_st:
1843+ unsigned int width
1844+ unsigned int height
1845+ unsigned int depth
1846+ unsigned int pitch
1847+ unsigned int numChannels
1848+ cudaChannelFormatDesc channelDesc
1849+ unsigned int reserved[4 ]
1850+ ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc
18481851
18491852cdef extern from ' ' :
18501853 cdef struct cudaArraySparseProperties:
@@ -1981,14 +1984,13 @@ cdef union cuda_bindings_runtime__anon_pod1:
19811984 cuda_bindings_runtime__anon_pod5 pitch2D
19821985 cuda_bindings_runtime__anon_pod6 reserved
19831986
1984- cdef extern from ' ' :
1985- cdef struct cudaEglFrame_st:
1986- cuda_bindings_runtime__anon_pod35 frame
1987- cudaEglPlaneDesc planeDesc[3 ]
1988- unsigned int planeCount
1989- cudaEglFrameType frameType
1990- cudaEglColorFormat eglColorFormat
1991- ctypedef cudaEglFrame_st cudaEglFrame
1987+ cdef struct cudaEglFrame_st:
1988+ cuda_bindings_runtime__anon_pod35 frame
1989+ cudaEglPlaneDesc planeDesc[3 ]
1990+ unsigned int planeCount
1991+ cudaEglFrameType frameType
1992+ cudaEglColorFormat eglColorFormat
1993+ ctypedef cudaEglFrame_st cudaEglFrame
19921994
19931995cdef extern from ' ' :
19941996 cdef struct cudaMemcpyNodeParams:
@@ -2640,148 +2642,6 @@ cdef extern from 'library_types.h':
26402642 MINOR_VERSION
26412643 PATCH_LEVEL
26422644
2643- # Enum aliases using C tag names, required by lowpp layer (runtime.pxd) which uses
2644- # the legacy_cython_gen naming convention of enum_name_enum for the C tag.
2645- cdef extern from ' driver_types.h' :
2646- ctypedef enum cudaGraphDependencyType_enum ' cudaGraphDependencyType_enum' :
2647- cudaGraphDependencyTypeDefault
2648- cudaGraphDependencyTypeProgrammatic
2649-
2650- cdef extern from ' driver_types.h' :
2651- ctypedef enum cudaAsyncNotificationType_enum ' cudaAsyncNotificationType_enum' :
2652- cudaAsyncNotificationTypeOverBudget
2653-
2654- cdef extern from ' driver_types.h' :
2655- ctypedef enum CUDAlogLevel_enum ' CUDAlogLevel_enum' :
2656- cudaLogLevelError
2657- cudaLogLevelWarning
2658-
2659- cdef extern from " " :
2660- ctypedef enum cudaEglFrameType_enum ' cudaEglFrameType_enum' :
2661- cudaEglFrameTypeArray
2662- cudaEglFrameTypePitch
2663-
2664- cdef extern from " " :
2665- ctypedef enum cudaEglResourceLocationFlags_enum ' cudaEglResourceLocationFlags_enum' :
2666- cudaEglResourceLocationSysmem
2667- cudaEglResourceLocationVidmem
2668-
2669- cdef extern from " " :
2670- ctypedef enum cudaEglColorFormat_enum ' cudaEglColorFormat_enum' :
2671- cudaEglColorFormatYUV420Planar
2672- cudaEglColorFormatYUV420SemiPlanar
2673- cudaEglColorFormatYUV422Planar
2674- cudaEglColorFormatYUV422SemiPlanar
2675- cudaEglColorFormatARGB
2676- cudaEglColorFormatRGBA
2677- cudaEglColorFormatL
2678- cudaEglColorFormatR
2679- cudaEglColorFormatYUV444Planar
2680- cudaEglColorFormatYUV444SemiPlanar
2681- cudaEglColorFormatYUYV422
2682- cudaEglColorFormatUYVY422
2683- cudaEglColorFormatABGR
2684- cudaEglColorFormatBGRA
2685- cudaEglColorFormatA
2686- cudaEglColorFormatRG
2687- cudaEglColorFormatAYUV
2688- cudaEglColorFormatYVU444SemiPlanar
2689- cudaEglColorFormatYVU422SemiPlanar
2690- cudaEglColorFormatYVU420SemiPlanar
2691- cudaEglColorFormatY10V10U10_444SemiPlanar
2692- cudaEglColorFormatY10V10U10_420SemiPlanar
2693- cudaEglColorFormatY12V12U12_444SemiPlanar
2694- cudaEglColorFormatY12V12U12_420SemiPlanar
2695- cudaEglColorFormatVYUY_ER
2696- cudaEglColorFormatUYVY_ER
2697- cudaEglColorFormatYUYV_ER
2698- cudaEglColorFormatYVYU_ER
2699- cudaEglColorFormatYUVA_ER
2700- cudaEglColorFormatAYUV_ER
2701- cudaEglColorFormatYUV444Planar_ER
2702- cudaEglColorFormatYUV422Planar_ER
2703- cudaEglColorFormatYUV420Planar_ER
2704- cudaEglColorFormatYUV444SemiPlanar_ER
2705- cudaEglColorFormatYUV422SemiPlanar_ER
2706- cudaEglColorFormatYUV420SemiPlanar_ER
2707- cudaEglColorFormatYVU444Planar_ER
2708- cudaEglColorFormatYVU422Planar_ER
2709- cudaEglColorFormatYVU420Planar_ER
2710- cudaEglColorFormatYVU444SemiPlanar_ER
2711- cudaEglColorFormatYVU422SemiPlanar_ER
2712- cudaEglColorFormatYVU420SemiPlanar_ER
2713- cudaEglColorFormatBayerRGGB
2714- cudaEglColorFormatBayerBGGR
2715- cudaEglColorFormatBayerGRBG
2716- cudaEglColorFormatBayerGBRG
2717- cudaEglColorFormatBayer10RGGB
2718- cudaEglColorFormatBayer10BGGR
2719- cudaEglColorFormatBayer10GRBG
2720- cudaEglColorFormatBayer10GBRG
2721- cudaEglColorFormatBayer12RGGB
2722- cudaEglColorFormatBayer12BGGR
2723- cudaEglColorFormatBayer12GRBG
2724- cudaEglColorFormatBayer12GBRG
2725- cudaEglColorFormatBayer14RGGB
2726- cudaEglColorFormatBayer14BGGR
2727- cudaEglColorFormatBayer14GRBG
2728- cudaEglColorFormatBayer14GBRG
2729- cudaEglColorFormatBayer20RGGB
2730- cudaEglColorFormatBayer20BGGR
2731- cudaEglColorFormatBayer20GRBG
2732- cudaEglColorFormatBayer20GBRG
2733- cudaEglColorFormatYVU444Planar
2734- cudaEglColorFormatYVU422Planar
2735- cudaEglColorFormatYVU420Planar
2736- cudaEglColorFormatBayerIspRGGB
2737- cudaEglColorFormatBayerIspBGGR
2738- cudaEglColorFormatBayerIspGRBG
2739- cudaEglColorFormatBayerIspGBRG
2740- cudaEglColorFormatBayerBCCR
2741- cudaEglColorFormatBayerRCCB
2742- cudaEglColorFormatBayerCRBC
2743- cudaEglColorFormatBayerCBRC
2744- cudaEglColorFormatBayer10CCCC
2745- cudaEglColorFormatBayer12BCCR
2746- cudaEglColorFormatBayer12RCCB
2747- cudaEglColorFormatBayer12CRBC
2748- cudaEglColorFormatBayer12CBRC
2749- cudaEglColorFormatBayer12CCCC
2750- cudaEglColorFormatY
2751- cudaEglColorFormatYUV420SemiPlanar_2020
2752- cudaEglColorFormatYVU420SemiPlanar_2020
2753- cudaEglColorFormatYUV420Planar_2020
2754- cudaEglColorFormatYVU420Planar_2020
2755- cudaEglColorFormatYUV420SemiPlanar_709
2756- cudaEglColorFormatYVU420SemiPlanar_709
2757- cudaEglColorFormatYUV420Planar_709
2758- cudaEglColorFormatYVU420Planar_709
2759- cudaEglColorFormatY10V10U10_420SemiPlanar_709
2760- cudaEglColorFormatY10V10U10_420SemiPlanar_2020
2761- cudaEglColorFormatY10V10U10_422SemiPlanar_2020
2762- cudaEglColorFormatY10V10U10_422SemiPlanar
2763- cudaEglColorFormatY10V10U10_422SemiPlanar_709
2764- cudaEglColorFormatY_ER
2765- cudaEglColorFormatY_709_ER
2766- cudaEglColorFormatY10_ER
2767- cudaEglColorFormatY10_709_ER
2768- cudaEglColorFormatY12_ER
2769- cudaEglColorFormatY12_709_ER
2770- cudaEglColorFormatYUVA
2771- cudaEglColorFormatYVYU
2772- cudaEglColorFormatVYUY
2773- cudaEglColorFormatY10V10U10_420SemiPlanar_ER
2774- cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER
2775- cudaEglColorFormatY10V10U10_444SemiPlanar_ER
2776- cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER
2777- cudaEglColorFormatY12V12U12_420SemiPlanar_ER
2778- cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER
2779- cudaEglColorFormatY12V12U12_444SemiPlanar_ER
2780- cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER
2781- cudaEglColorFormatUYVY709
2782- cudaEglColorFormatUYVY709_ER
2783- cudaEglColorFormatUYVY2020
2784-
27852645
27862646# Static inline helpers from driver_functions.h — wrapped as cdef so the lowpp layer can cimport them.
27872647cdef cudaPitchedPtr make_cudaPitchedPtr(void * d, size_t p, size_t xsz, size_t ysz) except * nogil
0 commit comments