public class opencv_cudacodec extends opencv_cudacodec
Modifier and Type | Field and Description |
---|---|
static int |
H264
enum cv::cudacodec::Codec
|
static int |
H264_MVC
enum cv::cudacodec::Codec
|
static int |
H264_SVC
enum cv::cudacodec::Codec
|
static int |
HEVC
enum cv::cudacodec::Codec
|
static int |
JPEG
enum cv::cudacodec::Codec
|
static int |
Monochrome
enum cv::cudacodec::ChromaFormat
|
static int |
MPEG1
enum cv::cudacodec::Codec
|
static int |
MPEG2
enum cv::cudacodec::Codec
|
static int |
MPEG4
enum cv::cudacodec::Codec
|
static int |
NumCodecs
enum cv::cudacodec::Codec
|
static int |
NumFormats
enum cv::cudacodec::ChromaFormat
|
static int |
SF_BGR
enum cv::cudacodec::SurfaceFormat
|
static int |
SF_GRAY
enum cv::cudacodec::SurfaceFormat
|
static int |
SF_IYUV
enum cv::cudacodec::SurfaceFormat
|
static int |
SF_NV12
enum cv::cudacodec::SurfaceFormat
|
static int |
SF_UYVY
enum cv::cudacodec::SurfaceFormat
|
static int |
SF_YUY2
enum cv::cudacodec::SurfaceFormat
|
static int |
SF_YV12
enum cv::cudacodec::SurfaceFormat
|
static int |
Uncompressed_NV12
enum cv::cudacodec::Codec
|
static int |
Uncompressed_UYVY
enum cv::cudacodec::Codec
|
static int |
Uncompressed_YUV420
enum cv::cudacodec::Codec
|
static int |
Uncompressed_YUYV
enum cv::cudacodec::Codec
|
static int |
Uncompressed_YV12
enum cv::cudacodec::Codec
|
static int |
VC1
enum cv::cudacodec::Codec
|
static int |
VP8
enum cv::cudacodec::Codec
|
static int |
VP9
enum cv::cudacodec::Codec
|
static int |
YUV420
enum cv::cudacodec::ChromaFormat
|
static int |
YUV422
enum cv::cudacodec::ChromaFormat
|
static int |
YUV444
enum cv::cudacodec::ChromaFormat
|
Constructor and Description |
---|
opencv_cudacodec() |
Modifier and Type | Method and Description |
---|---|
static VideoReader |
createVideoReader(BytePointer filename)
\brief Creates video reader.
|
static VideoReader |
createVideoReader(RawVideoSource source)
\overload
|
static VideoReader |
createVideoReader(String filename) |
static VideoWriter |
createVideoWriter(BytePointer fileName,
Size frameSize,
double fps) |
static VideoWriter |
createVideoWriter(BytePointer fileName,
Size frameSize,
double fps,
EncoderParams params) |
static VideoWriter |
createVideoWriter(BytePointer fileName,
Size frameSize,
double fps,
EncoderParams params,
int format)
\overload
|
static VideoWriter |
createVideoWriter(BytePointer fileName,
Size frameSize,
double fps,
int format)
\brief Creates video writer.
|
static VideoWriter |
createVideoWriter(EncoderCallBack encoderCallback,
Size frameSize,
double fps) |
static VideoWriter |
createVideoWriter(EncoderCallBack encoderCallback,
Size frameSize,
double fps,
EncoderParams params) |
static VideoWriter |
createVideoWriter(EncoderCallBack encoderCallback,
Size frameSize,
double fps,
EncoderParams params,
int format)
\overload
|
static VideoWriter |
createVideoWriter(EncoderCallBack encoderCallback,
Size frameSize,
double fps,
int format)
\overload
|
static VideoWriter |
createVideoWriter(String fileName,
Size frameSize,
double fps) |
static VideoWriter |
createVideoWriter(String fileName,
Size frameSize,
double fps,
EncoderParams params) |
static VideoWriter |
createVideoWriter(String fileName,
Size frameSize,
double fps,
EncoderParams params,
int format) |
static VideoWriter |
createVideoWriter(String fileName,
Size frameSize,
double fps,
int format) |
map
public static final int SF_UYVY
public static final int SF_YUY2
public static final int SF_YV12
public static final int SF_NV12
public static final int SF_IYUV
public static final int SF_BGR
public static final int SF_GRAY
public static final int MPEG1
public static final int MPEG2
public static final int MPEG4
public static final int VC1
public static final int H264
public static final int JPEG
public static final int H264_SVC
public static final int H264_MVC
public static final int HEVC
public static final int VP8
public static final int VP9
public static final int NumCodecs
public static final int Uncompressed_YUV420
public static final int Uncompressed_YV12
public static final int Uncompressed_NV12
public static final int Uncompressed_YUYV
public static final int Uncompressed_UYVY
public static final int Monochrome
public static final int YUV420
public static final int YUV422
public static final int YUV444
public static final int NumFormats
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Str BytePointer fileName, @ByVal Size frameSize, double fps, @Cast(value="cv::cudacodec::SurfaceFormat") int format)
fileName
- Name of the output video file. Only AVI file format is supported.frameSize
- Size of the input video frames.fps
- Framerate of the created video stream.format
- Surface format of input frames ( SF_UYVY , SF_YUY2 , SF_YV12 , SF_NV12 ,
SF_IYUV , SF_BGR or SF_GRAY). BGR or gray frames will be converted to YV12 format before
encoding, frames with other formats will be used as is.
The constructors initialize video writer. FFMPEG is used to write videos. User can implement own multiplexing with cudacodec::EncoderCallBack .
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Str BytePointer fileName, @ByVal Size frameSize, double fps)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Str String fileName, @ByVal Size frameSize, double fps, @Cast(value="cv::cudacodec::SurfaceFormat") int format)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Str String fileName, @ByVal Size frameSize, double fps)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Str BytePointer fileName, @ByVal Size frameSize, double fps, @Const @ByRef EncoderParams params, @Cast(value="cv::cudacodec::SurfaceFormat") int format)
fileName
- Name of the output video file. Only AVI file format is supported.frameSize
- Size of the input video frames.fps
- Framerate of the created video stream.params
- Encoder parameters. See cudacodec::EncoderParams .format
- Surface format of input frames ( SF_UYVY , SF_YUY2 , SF_YV12 , SF_NV12 ,
SF_IYUV , SF_BGR or SF_GRAY). BGR or gray frames will be converted to YV12 format before
encoding, frames with other formats will be used as is.@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Str BytePointer fileName, @ByVal Size frameSize, double fps, @Const @ByRef EncoderParams params)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Str String fileName, @ByVal Size frameSize, double fps, @Const @ByRef EncoderParams params, @Cast(value="cv::cudacodec::SurfaceFormat") int format)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Str String fileName, @ByVal Size frameSize, double fps, @Const @ByRef EncoderParams params)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Ptr EncoderCallBack encoderCallback, @ByVal Size frameSize, double fps, @Cast(value="cv::cudacodec::SurfaceFormat") int format)
encoderCallback
- Callbacks for video encoder. See cudacodec::EncoderCallBack . Use it if you
want to work with raw video stream.frameSize
- Size of the input video frames.fps
- Framerate of the created video stream.format
- Surface format of input frames ( SF_UYVY , SF_YUY2 , SF_YV12 , SF_NV12 ,
SF_IYUV , SF_BGR or SF_GRAY). BGR or gray frames will be converted to YV12 format before
encoding, frames with other formats will be used as is.@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Ptr EncoderCallBack encoderCallback, @ByVal Size frameSize, double fps)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Ptr EncoderCallBack encoderCallback, @ByVal Size frameSize, double fps, @Const @ByRef EncoderParams params, @Cast(value="cv::cudacodec::SurfaceFormat") int format)
encoderCallback
- Callbacks for video encoder. See cudacodec::EncoderCallBack . Use it if you
want to work with raw video stream.frameSize
- Size of the input video frames.fps
- Framerate of the created video stream.params
- Encoder parameters. See cudacodec::EncoderParams .format
- Surface format of input frames ( SF_UYVY , SF_YUY2 , SF_YV12 , SF_NV12 ,
SF_IYUV , SF_BGR or SF_GRAY). BGR or gray frames will be converted to YV12 format before
encoding, frames with other formats will be used as is.@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoWriter createVideoWriter(@opencv_core.Ptr EncoderCallBack encoderCallback, @ByVal Size frameSize, double fps, @Const @ByRef EncoderParams params)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoReader createVideoReader(@opencv_core.Str BytePointer filename)
filename
- Name of the input video file.
FFMPEG is used to read videos. User can implement own demultiplexing with cudacodec::RawVideoSource
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoReader createVideoReader(@opencv_core.Str String filename)
@Namespace(value="cv::cudacodec") @opencv_core.Ptr public static VideoReader createVideoReader(@opencv_core.Ptr RawVideoSource source)
source
- RAW video source implemented by user.Copyright © 2020. All rights reserved.