ProxyVideoConsumer.java 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 ProxyVideoConsumer extends ProxyPlugin {
  10. private long swigCPtr;
  11. protected ProxyVideoConsumer(long cPtr, boolean cMemoryOwn) {
  12. super(tinyWRAPJNI.ProxyVideoConsumer_SWIGUpcast(cPtr), cMemoryOwn);
  13. swigCPtr = cPtr;
  14. }
  15. protected static long getCPtr(ProxyVideoConsumer 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_ProxyVideoConsumer(swigCPtr);
  26. }
  27. swigCPtr = 0;
  28. }
  29. super.delete();
  30. }
  31. public boolean setDisplaySize(long nWidth, long nHeight) {
  32. return tinyWRAPJNI.ProxyVideoConsumer_setDisplaySize(swigCPtr, this, nWidth, nHeight);
  33. }
  34. public long getDisplayWidth() {
  35. return tinyWRAPJNI.ProxyVideoConsumer_getDisplayWidth(swigCPtr, this);
  36. }
  37. public long getDisplayHeight() {
  38. return tinyWRAPJNI.ProxyVideoConsumer_getDisplayHeight(swigCPtr, this);
  39. }
  40. public long getDecodedWidth() {
  41. return tinyWRAPJNI.ProxyVideoConsumer_getDecodedWidth(swigCPtr, this);
  42. }
  43. public long getDecodedHeight() {
  44. return tinyWRAPJNI.ProxyVideoConsumer_getDecodedHeight(swigCPtr, this);
  45. }
  46. public void setCallback(ProxyVideoConsumerCallback pCallback) {
  47. tinyWRAPJNI.ProxyVideoConsumer_setCallback(swigCPtr, this, ProxyVideoConsumerCallback.getCPtr(pCallback), pCallback);
  48. }
  49. public boolean setAutoResizeDisplay(boolean bAutoResizeDisplay) {
  50. return tinyWRAPJNI.ProxyVideoConsumer_setAutoResizeDisplay(swigCPtr, this, bAutoResizeDisplay);
  51. }
  52. public boolean getAutoResizeDisplay() {
  53. return tinyWRAPJNI.ProxyVideoConsumer_getAutoResizeDisplay(swigCPtr, this);
  54. }
  55. public boolean setConsumeBuffer(java.nio.ByteBuffer pConsumeBufferPtr, long nConsumeBufferSize) {
  56. return tinyWRAPJNI.ProxyVideoConsumer_setConsumeBuffer(swigCPtr, this, pConsumeBufferPtr, nConsumeBufferSize);
  57. }
  58. public long pull(java.nio.ByteBuffer pOutput, long nSize) {
  59. return tinyWRAPJNI.ProxyVideoConsumer_pull(swigCPtr, this, pOutput, nSize);
  60. }
  61. public boolean reset() {
  62. return tinyWRAPJNI.ProxyVideoConsumer_reset(swigCPtr, this);
  63. }
  64. public java.math.BigInteger getMediaSessionId() {
  65. return tinyWRAPJNI.ProxyVideoConsumer_getMediaSessionId(swigCPtr, this);
  66. }
  67. public static boolean registerPlugin() {
  68. return tinyWRAPJNI.ProxyVideoConsumer_registerPlugin();
  69. }
  70. public static void setDefaultChroma(tmedia_chroma_t eChroma) {
  71. tinyWRAPJNI.ProxyVideoConsumer_setDefaultChroma(eChroma.swigValue());
  72. }
  73. public static void setDefaultAutoResizeDisplay(boolean bAutoResizeDisplay) {
  74. tinyWRAPJNI.ProxyVideoConsumer_setDefaultAutoResizeDisplay(bAutoResizeDisplay);
  75. }
  76. }