ProxyVideoConsumer.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. namespace org.doubango.tinyWRAP {
  9. using System;
  10. using System.Runtime.InteropServices;
  11. public class ProxyVideoConsumer : ProxyPlugin {
  12. private HandleRef swigCPtr;
  13. internal ProxyVideoConsumer(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.ProxyVideoConsumer_SWIGUpcast(cPtr), cMemoryOwn) {
  14. swigCPtr = new HandleRef(this, cPtr);
  15. }
  16. internal static HandleRef getCPtr(ProxyVideoConsumer obj) {
  17. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. ~ProxyVideoConsumer() {
  20. Dispose();
  21. }
  22. public override void Dispose() {
  23. lock(this) {
  24. if (swigCPtr.Handle != IntPtr.Zero) {
  25. if (swigCMemOwn) {
  26. swigCMemOwn = false;
  27. tinyWRAPPINVOKE.delete_ProxyVideoConsumer(swigCPtr);
  28. }
  29. swigCPtr = new HandleRef(null, IntPtr.Zero);
  30. }
  31. GC.SuppressFinalize(this);
  32. base.Dispose();
  33. }
  34. }
  35. public bool setDisplaySize(uint nWidth, uint nHeight) {
  36. bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_setDisplaySize(swigCPtr, nWidth, nHeight);
  37. return ret;
  38. }
  39. public uint getDisplayWidth() {
  40. uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getDisplayWidth(swigCPtr);
  41. return ret;
  42. }
  43. public uint getDisplayHeight() {
  44. uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getDisplayHeight(swigCPtr);
  45. return ret;
  46. }
  47. public uint getDecodedWidth() {
  48. uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getDecodedWidth(swigCPtr);
  49. return ret;
  50. }
  51. public uint getDecodedHeight() {
  52. uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getDecodedHeight(swigCPtr);
  53. return ret;
  54. }
  55. public void setCallback(ProxyVideoConsumerCallback pCallback) {
  56. tinyWRAPPINVOKE.ProxyVideoConsumer_setCallback(swigCPtr, ProxyVideoConsumerCallback.getCPtr(pCallback));
  57. }
  58. public bool setAutoResizeDisplay(bool bAutoResizeDisplay) {
  59. bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_setAutoResizeDisplay(swigCPtr, bAutoResizeDisplay);
  60. return ret;
  61. }
  62. public bool getAutoResizeDisplay() {
  63. bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getAutoResizeDisplay(swigCPtr);
  64. return ret;
  65. }
  66. public bool setConsumeBuffer(IntPtr pConsumeBufferPtr, uint nConsumeBufferSize) {
  67. bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_setConsumeBuffer(swigCPtr, pConsumeBufferPtr, nConsumeBufferSize);
  68. return ret;
  69. }
  70. public uint pull(IntPtr pOutput, uint nSize) {
  71. uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_pull(swigCPtr, pOutput, nSize);
  72. return ret;
  73. }
  74. public bool reset() {
  75. bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_reset(swigCPtr);
  76. return ret;
  77. }
  78. public virtual ulong getMediaSessionId() {
  79. ulong ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getMediaSessionId(swigCPtr);
  80. return ret;
  81. }
  82. public static bool registerPlugin() {
  83. bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_registerPlugin();
  84. return ret;
  85. }
  86. public static void setDefaultChroma(tmedia_chroma_t eChroma) {
  87. tinyWRAPPINVOKE.ProxyVideoConsumer_setDefaultChroma((int)eChroma);
  88. }
  89. public static void setDefaultAutoResizeDisplay(bool bAutoResizeDisplay) {
  90. tinyWRAPPINVOKE.ProxyVideoConsumer_setDefaultAutoResizeDisplay(bAutoResizeDisplay);
  91. }
  92. }
  93. }