astra_start_rgb   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm

Implementation

(bind-func astra_start_rgb
  (lambda ()
    (let ((sensor:astra_streamsetconnection_t (alloc))
          (reader:astra_reader_t (alloc))
          (colorAvailable:i1 0)
          (mode:<i32,i32,i32,i32,i8,i32>* (alloc))
          (stream:astra_colorstream_t (alloc)))
      (astra_initialize)
      (println '[open]: (astra_streamset_open "device/default" (ref sensor)))
      (println '[create 'reader]: (astra_reader_create sensor (ref reader)))
      (println '[fetch 'stream]: (astra_reader_get_colorstream reader (ref stream)))
      (println '[check 'color 'available]: (astra_colorstream_is_available stream (ref colorAvailable)))
      (println '[is 'color 'available]: colorAvailable)
      ;(tfill! mode 0 640 480 ASTRA_PIXEL_FORMAT_RGB888 30)
      ;(println '[set 'mode]: (astra_imagestream_set_mode stream (convert mode)))
      (println '[start 'stream]: (astra_stream_start stream))
      (AstraCtx sensor reader))))


Back to Index

Similar Entries

  • CefColorSetARGB    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • astra    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm
  • astra_bitmapmask_t    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/orbbec_astra.xtm
  • astra_readX    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm
  • astra_reader    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm
  • astra_sensor    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm
  • astra_start_body    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm
  • astra_stop    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm
  • draw_rgb_frame    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/orbbec_test.xtm
  • fits-image-data-RGBA32    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/fitslib.xtm
  • fits-image-data-RGBA32    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/fits.xtm
  • fits-image-data-RGBA32-false    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/fitslib.xtm
  • fits-image-data-RGBA32-false    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/fits.xtm
  • godot_color_new_rgb    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • kinect-start    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/kinect.xtm
  • kinect_start    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/kinect2.xtm
  • start    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gl/gl-objects2.xtm
  • start    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/horde3d_knight.xtm
  • start-note    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • start_midi    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • start_midi_scheduler    xtlang    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • teststart    scheme    /digego/extempore/tree/v0.8.9/examples/core/topclock_metro.xtm
  • xtm-setup-and-start-gl-loop    scheme    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline-scm.xtm
  • xtm_leaprgba    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_rgb    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_rgb    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_rgba    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_rgba    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/nanovg_helper.xtm
  • xtm_start_note    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments.xtm