PyNvCodec.SurfacePlane¶
- class PyNvCodec.SurfacePlane¶
- __init__(*args, **kwargs)¶
Methods
ElemSize
(self)Get element size in bytes
Export
(*args, **kwargs)Overloaded function.
GpuMem
(self)Get CUdeviceptr of memory object
Height
(self)Get height in pixels
HostFrameSize
(self)Get amount of host memory needed to store this SurfacePlane
Import
(*args, **kwargs)Overloaded function.
Pitch
(self)Get pitch in bytes
Width
(self)Get width in pixels
__init__
(*args, **kwargs)- ElemSize(self: PyNvCodec._PyNvCodec.SurfacePlane) int ¶
Get element size in bytes
- Export(*args, **kwargs)¶
Overloaded function.
Export(self: PyNvCodec._PyNvCodec.SurfacePlane, dst: int, dst_pitch: int, gpu_id: int) -> None
Export to another SurfacePlane
- param dst:
destination SurfacePlane
- param dst_pitch:
destination SurfacePlane pitch in bytes
- param gpu_id:
GPU to use
Export(self: PyNvCodec._PyNvCodec.SurfacePlane, dst: int, dst_pitch: int, context: int, stream: int) -> None
Export to another SurfacePlane
- param dst:
destination SurfacePlane
- param dst_pitch:
destination SurfacePlane pitch in bytes
- param context:
CUDA context to use
- param stream:
CUDA stream to use
- GpuMem(self: PyNvCodec._PyNvCodec.SurfacePlane) int ¶
Get CUdeviceptr of memory object
- Height(self: PyNvCodec._PyNvCodec.SurfacePlane) int ¶
Get height in pixels
- HostFrameSize(self: PyNvCodec._PyNvCodec.SurfacePlane) int ¶
Get amount of host memory needed to store this SurfacePlane
- Import(*args, **kwargs)¶
Overloaded function.
Import(self: PyNvCodec._PyNvCodec.SurfacePlane, src: int, src_pitch: int, gpu_id: int) -> None
Import from another SurfacePlane
- param src:
source SurfacePlane
- param src_pitch:
source SurfacePlane pitch in bytes
- param gpu_id:
GPU to use
Import(self: PyNvCodec._PyNvCodec.SurfacePlane, src: int, src_pitch: int, context: int, stream: int) -> None
Import from another SurfacePlane
- param src:
source SurfacePlane
- param src_pitch:
source SurfacePlane pitch in bytes
- param context:
CUDA context to use
- param stream:
CUDA stream to use
- Pitch(self: PyNvCodec._PyNvCodec.SurfacePlane) int ¶
Get pitch in bytes
- Width(self: PyNvCodec._PyNvCodec.SurfacePlane) int ¶
Get width in pixels