ProxyVideoProducer.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 ProxyVideoProducer : ProxyPlugin {
  12. private HandleRef swigCPtr;
  13. internal ProxyVideoProducer(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.ProxyVideoProducer_SWIGUpcast(cPtr), cMemoryOwn) {
  14. swigCPtr = new HandleRef(this, cPtr);
  15. }
  16. internal static HandleRef getCPtr(ProxyVideoProducer obj) {
  17. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. ~ProxyVideoProducer() {
  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_ProxyVideoProducer(swigCPtr);
  28. }
  29. swigCPtr = new HandleRef(null, IntPtr.Zero);
  30. }
  31. GC.SuppressFinalize(this);
  32. base.Dispose();
  33. }
  34. }
  35. public int getRotation() {
  36. int ret = tinyWRAPPINVOKE.ProxyVideoProducer_getRotation(swigCPtr);
  37. return ret;
  38. }
  39. public bool setRotation(int nRot) {
  40. bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_setRotation(swigCPtr, nRot);
  41. return ret;
  42. }
  43. public bool getMirror() {
  44. bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_getMirror(swigCPtr);
  45. return ret;
  46. }
  47. public bool setMirror(bool bMirror) {
  48. bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_setMirror(swigCPtr, bMirror);
  49. return ret;
  50. }
  51. public bool setActualCameraOutputSize(uint nWidth, uint nHeight) {
  52. bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_setActualCameraOutputSize(swigCPtr, nWidth, nHeight);
  53. return ret;
  54. }
  55. public int push(IntPtr pBuffer, uint nSize) {
  56. int ret = tinyWRAPPINVOKE.ProxyVideoProducer_push(swigCPtr, pBuffer, nSize);
  57. return ret;
  58. }
  59. public void setCallback(ProxyVideoProducerCallback pCallback) {
  60. tinyWRAPPINVOKE.ProxyVideoProducer_setCallback(swigCPtr, ProxyVideoProducerCallback.getCPtr(pCallback));
  61. }
  62. public virtual ulong getMediaSessionId() {
  63. ulong ret = tinyWRAPPINVOKE.ProxyVideoProducer_getMediaSessionId(swigCPtr);
  64. return ret;
  65. }
  66. public static bool registerPlugin() {
  67. bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_registerPlugin();
  68. return ret;
  69. }
  70. public static void setDefaultChroma(tmedia_chroma_t eChroma) {
  71. tinyWRAPPINVOKE.ProxyVideoProducer_setDefaultChroma((int)eChroma);
  72. }
  73. }
  74. }