ProxyVideoProducer.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public class ProxyVideoProducer extends ProxyPlugin {
  10. private long swigCPtr;
  11. protected ProxyVideoProducer(long cPtr, boolean cMemoryOwn) {
  12. super(tinyWRAPJNI.ProxyVideoProducer_SWIGUpcast(cPtr), cMemoryOwn);
  13. swigCPtr = cPtr;
  14. }
  15. protected static long getCPtr(ProxyVideoProducer obj) {
  16. return (obj == null) ? 0 : obj.swigCPtr;
  17. }
  18. protected void finalize() {
  19. delete();
  20. }
  21. public synchronized void delete() {
  22. if (swigCPtr != 0) {
  23. if (swigCMemOwn) {
  24. swigCMemOwn = false;
  25. tinyWRAPJNI.delete_ProxyVideoProducer(swigCPtr);
  26. }
  27. swigCPtr = 0;
  28. }
  29. super.delete();
  30. }
  31. public int getRotation() {
  32. return tinyWRAPJNI.ProxyVideoProducer_getRotation(swigCPtr, this);
  33. }
  34. public boolean setRotation(int nRot) {
  35. return tinyWRAPJNI.ProxyVideoProducer_setRotation(swigCPtr, this, nRot);
  36. }
  37. public boolean getMirror() {
  38. return tinyWRAPJNI.ProxyVideoProducer_getMirror(swigCPtr, this);
  39. }
  40. public boolean setMirror(boolean bMirror) {
  41. return tinyWRAPJNI.ProxyVideoProducer_setMirror(swigCPtr, this, bMirror);
  42. }
  43. public boolean setActualCameraOutputSize(long nWidth, long nHeight) {
  44. return tinyWRAPJNI.ProxyVideoProducer_setActualCameraOutputSize(swigCPtr, this, nWidth, nHeight);
  45. }
  46. public int push(java.nio.ByteBuffer pBuffer, long nSize) {
  47. return tinyWRAPJNI.ProxyVideoProducer_push(swigCPtr, this, pBuffer, nSize);
  48. }
  49. public void setCallback(ProxyVideoProducerCallback pCallback) {
  50. tinyWRAPJNI.ProxyVideoProducer_setCallback(swigCPtr, this, ProxyVideoProducerCallback.getCPtr(pCallback), pCallback);
  51. }
  52. public java.math.BigInteger getMediaSessionId() {
  53. return tinyWRAPJNI.ProxyVideoProducer_getMediaSessionId(swigCPtr, this);
  54. }
  55. public static boolean registerPlugin() {
  56. return tinyWRAPJNI.ProxyVideoProducer_registerPlugin();
  57. }
  58. public static void setDefaultChroma(tmedia_chroma_t eChroma) {
  59. tinyWRAPJNI.ProxyVideoProducer_setDefaultChroma(eChroma.swigValue());
  60. }
  61. }