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
  • astra    scheme
  • astra_bitmapmask_t    xtlang
  • astra_readX    xtlang
  • astra_reader    xtlang
  • astra_sensor    xtlang
  • astra_start_body    xtlang
  • astra_stop    xtlang
  • draw_rgb_frame    xtlang
  • fits-image-data-RGBA32    xtlang
  • fits-image-data-RGBA32    xtlang
  • fits-image-data-RGBA32-false    xtlang
  • fits-image-data-RGBA32-false    xtlang
  • godot_color_new_rgb    xtlang
  • kinect-start    xtlang
  • kinect_start    xtlang
  • start    xtlang
  • start    scheme
  • start-note    scheme
  • start_midi    xtlang
  • start_midi_scheduler    xtlang
  • teststart    scheme
  • xtm-setup-and-start-gl-loop    scheme
  • xtm_leaprgba    xtlang
  • xtm_rgb    xtlang
  • xtm_rgb    xtlang
  • xtm_rgba    xtlang
  • xtm_rgba    xtlang
  • xtm_start_note    xtlang