add warnings about unofficial API

This commit is contained in:
Ben Fry
2013-06-03 15:44:56 -04:00
parent c22929e55e
commit 24e0ef10b4
2 changed files with 24 additions and 0 deletions
@@ -236,6 +236,8 @@ public class Capture extends PImage implements PConstants {
/**
* Disposes all the native resources associated to this capture device.
*
* NOTE: This is not official API and may/will be removed at any time.
*/
public void dispose() {
if (pipeline != null) {
@@ -1070,6 +1072,8 @@ public class Capture extends PImage implements PConstants {
* The color conversion mask is automatically set to the one required to
* copy the frames to OpenGL.
*
* NOTE: This is not official API and may/will be removed at any time.
*
* @param Object dest
*/
public void setBufferSink(Object sink) {
@@ -1080,6 +1084,8 @@ public class Capture extends PImage implements PConstants {
/**
* Sets the object to use as destination for the frames read from the stream.
*
* NOTE: This is not official API and may/will be removed at any time.
*
* @param Object dest
* @param String mask
@@ -1090,11 +1096,17 @@ public class Capture extends PImage implements PConstants {
}
/**
* NOTE: This is not official API and may/will be removed at any time.
*/
public boolean hasBufferSink() {
return bufferSink != null;
}
/**
* NOTE: This is not official API and may/will be removed at any time.
*/
public synchronized void disposeBuffer(Object buf) {
((Buffer)buf).dispose();
}
@@ -101,6 +101,8 @@ public class Movie extends PImage implements PConstants {
/**
* Disposes all the native resources associated to this movie.
*
* NOTE: This is not official API and may/will be removed at any time.
*/
public void dispose() {
if (playbin != null) {
@@ -834,6 +836,8 @@ public class Movie extends PImage implements PConstants {
* Sets the object to use as destination for the frames read from the stream.
* The color conversion mask is automatically set to the one required to
* copy the frames to OpenGL.
*
* NOTE: This is not official API and may/will be removed at any time.
*
* @param Object dest
*/
@@ -846,6 +850,8 @@ public class Movie extends PImage implements PConstants {
/**
* Sets the object to use as destination for the frames read from the stream.
*
* NOTE: This is not official API and may/will be removed at any time.
*
* @param Object dest
* @param String mask
*/
@@ -855,11 +861,17 @@ public class Movie extends PImage implements PConstants {
}
/**
* NOTE: This is not official API and may/will be removed at any time.
*/
public boolean hasBufferSink() {
return bufferSink != null;
}
/**
* NOTE: This is not official API and may/will be removed at any time.
*/
public synchronized void disposeBuffer(Object buf) {
((Buffer)buf).dispose();
}