framelinksrc: remove unused code

This commit is contained in:
Joshua M. Doe 2014-01-15 08:55:16 -05:00
parent 32e6e16d7e
commit 221bba5901

View File

@ -263,80 +263,6 @@ gst_framelinksrc_finalize (GObject * object)
G_OBJECT_CLASS (gst_framelinksrc_parent_class)->finalize (object); G_OBJECT_CLASS (gst_framelinksrc_parent_class)->finalize (object);
} }
//static inline GstClockTime
//gst_pixci_get_timestamp (GstFramelinkSrc * framelinksrc)
//{
// ui32 dwParam;
// guint64 timestamp;
//
// /* get time in microseconds from start of acquisition */
// /* TODO: check for rollover */
// PHX_ParameterGet (framelinksrc->hCamera, PHX_EVENTCOUNT, &dwParam);
// timestamp = (guint64) 1000 *dwParam;
//
// if (framelinksrc->first_pixci_ts == GST_CLOCK_TIME_NONE) {
// framelinksrc->first_pixci_ts = timestamp;
// }
// return timestamp - framelinksrc->first_pixci_ts;
//}
/* Callback function to handle image capture events. */
//void
//phx_callback (tHandle hCamera, ui32 dwMask, void *pvParams)
//{
// GstFramelinkSrc *framelinksrc = GST_FRAMELINK_SRC (pvParams);
// GstClockTime ct = gst_pixci_get_timestamp (framelinksrc);
// gboolean signal_create_func = FALSE;
// guint n;
//
// g_mutex_lock (&framelinksrc->mutex);
//
// /* Note that more than one interrupt can be sent, so no "else if" */
//
// /* called when frame valid signal goes high */
// if (PHX_INTRPT_FRAME_START & dwMask) {
// /* FIXME: this will work until frames are dropped */
// n = framelinksrc->frame_start_count % framelinksrc->num_capture_buffers;
// framelinksrc->frame_start_times[n] = ct;
//
// framelinksrc->frame_start_count++;
// }
//
// /* called when frame valid signal goes low */
// if (PHX_INTRPT_FRAME_END & dwMask) {
// /* FIXME: this will work until frames are dropped */
// n = (framelinksrc->frame_end_count - 1) % framelinksrc->num_capture_buffers;
// framelinksrc->frame_end_times[n] = ct;
//
// framelinksrc->frame_end_count++;
// }
//
// if (PHX_INTRPT_BUFFER_READY & dwMask) {
// /* we have a buffer */
// framelinksrc->buffer_ready = TRUE;
// framelinksrc->buffer_ready_count++;
// signal_create_func = TRUE;
// }
//
// if (PHX_INTRPT_TIMEOUT & dwMask) {
// /* TODO: we could offer to try and ABORT then re-START capture */
// framelinksrc->timeout_occurred = TRUE;
// signal_create_func = TRUE;
// }
//
// if (PHX_INTRPT_FIFO_OVERFLOW & dwMask) {
// framelinksrc->fifo_overflow_occurred = TRUE;
// signal_create_func = TRUE;
// }
//
//
//
// if (signal_create_func)
// g_cond_signal (&framelinksrc->cond);
// g_mutex_unlock (&framelinksrc->mutex);
// /* after unlocking, _create will check for these errors and copy data */
//}
static gboolean static gboolean
gst_framelinksrc_start (GstBaseSrc * bsrc) gst_framelinksrc_start (GstBaseSrc * bsrc)
{ {