001
002//
003// This file is auto-generated. Please don't modify it!
004//
005package org.opencv.videoio;
006
007import java.lang.String;
008import org.opencv.core.Mat;
009import org.opencv.core.Size;
010
011// C++: class VideoWriter
012//javadoc: VideoWriter
013public class VideoWriter {
014
015    protected final long nativeObj;
016    protected VideoWriter(long addr) { nativeObj = addr; }
017
018
019    //
020    // C++:   VideoWriter(String filename, int fourcc, double fps, Size frameSize, bool isColor = true)
021    //
022
023    //javadoc: VideoWriter::VideoWriter(filename, fourcc, fps, frameSize, isColor)
024    public   VideoWriter(String filename, int fourcc, double fps, Size frameSize, boolean isColor)
025    {
026        
027        nativeObj = VideoWriter_0(filename, fourcc, fps, frameSize.width, frameSize.height, isColor);
028        
029        return;
030    }
031
032    //javadoc: VideoWriter::VideoWriter(filename, fourcc, fps, frameSize)
033    public   VideoWriter(String filename, int fourcc, double fps, Size frameSize)
034    {
035        
036        nativeObj = VideoWriter_1(filename, fourcc, fps, frameSize.width, frameSize.height);
037        
038        return;
039    }
040
041
042    //
043    // C++:   VideoWriter()
044    //
045
046    //javadoc: VideoWriter::VideoWriter()
047    public   VideoWriter()
048    {
049        
050        nativeObj = VideoWriter_2();
051        
052        return;
053    }
054
055
056    //
057    // C++:  bool isOpened()
058    //
059
060    //javadoc: VideoWriter::isOpened()
061    public  boolean isOpened()
062    {
063        
064        boolean retVal = isOpened_0(nativeObj);
065        
066        return retVal;
067    }
068
069
070    //
071    // C++:  bool open(String filename, int fourcc, double fps, Size frameSize, bool isColor = true)
072    //
073
074    //javadoc: VideoWriter::open(filename, fourcc, fps, frameSize, isColor)
075    public  boolean open(String filename, int fourcc, double fps, Size frameSize, boolean isColor)
076    {
077        
078        boolean retVal = open_0(nativeObj, filename, fourcc, fps, frameSize.width, frameSize.height, isColor);
079        
080        return retVal;
081    }
082
083    //javadoc: VideoWriter::open(filename, fourcc, fps, frameSize)
084    public  boolean open(String filename, int fourcc, double fps, Size frameSize)
085    {
086        
087        boolean retVal = open_1(nativeObj, filename, fourcc, fps, frameSize.width, frameSize.height);
088        
089        return retVal;
090    }
091
092
093    //
094    // C++:  bool set(int propId, double value)
095    //
096
097    //javadoc: VideoWriter::set(propId, value)
098    public  boolean set(int propId, double value)
099    {
100        
101        boolean retVal = set_0(nativeObj, propId, value);
102        
103        return retVal;
104    }
105
106
107    //
108    // C++:  double get(int propId)
109    //
110
111    //javadoc: VideoWriter::get(propId)
112    public  double get(int propId)
113    {
114        
115        double retVal = get_0(nativeObj, propId);
116        
117        return retVal;
118    }
119
120
121    //
122    // C++: static int fourcc(char c1, char c2, char c3, char c4)
123    //
124
125    //javadoc: VideoWriter::fourcc(c1, c2, c3, c4)
126    public static int fourcc(char c1, char c2, char c3, char c4)
127    {
128        
129        int retVal = fourcc_0(c1, c2, c3, c4);
130        
131        return retVal;
132    }
133
134
135    //
136    // C++:  void release()
137    //
138
139    //javadoc: VideoWriter::release()
140    public  void release()
141    {
142        
143        release_0(nativeObj);
144        
145        return;
146    }
147
148
149    //
150    // C++:  void write(Mat image)
151    //
152
153    //javadoc: VideoWriter::write(image)
154    public  void write(Mat image)
155    {
156        
157        write_0(nativeObj, image.nativeObj);
158        
159        return;
160    }
161
162
163    @Override
164    protected void finalize() throws Throwable {
165        delete(nativeObj);
166    }
167
168
169
170    // C++:   VideoWriter(String filename, int fourcc, double fps, Size frameSize, bool isColor = true)
171    private static native long VideoWriter_0(String filename, int fourcc, double fps, double frameSize_width, double frameSize_height, boolean isColor);
172    private static native long VideoWriter_1(String filename, int fourcc, double fps, double frameSize_width, double frameSize_height);
173
174    // C++:   VideoWriter()
175    private static native long VideoWriter_2();
176
177    // C++:  bool isOpened()
178    private static native boolean isOpened_0(long nativeObj);
179
180    // C++:  bool open(String filename, int fourcc, double fps, Size frameSize, bool isColor = true)
181    private static native boolean open_0(long nativeObj, String filename, int fourcc, double fps, double frameSize_width, double frameSize_height, boolean isColor);
182    private static native boolean open_1(long nativeObj, String filename, int fourcc, double fps, double frameSize_width, double frameSize_height);
183
184    // C++:  bool set(int propId, double value)
185    private static native boolean set_0(long nativeObj, int propId, double value);
186
187    // C++:  double get(int propId)
188    private static native double get_0(long nativeObj, int propId);
189
190    // C++: static int fourcc(char c1, char c2, char c3, char c4)
191    private static native int fourcc_0(char c1, char c2, char c3, char c4);
192
193    // C++:  void release()
194    private static native void release_0(long nativeObj);
195
196    // C++:  void write(Mat image)
197    private static native void write_0(long nativeObj, long image_nativeObj);
198
199    // native support for java finalize()
200    private static native void delete(long nativeObj);
201
202}