class_docstr: General abstract base class for Decoder
      
class_docstr_tok: ["General","abstract","base","class","for","Decoder"]
code: def __init__(
      self,
      start=0,
      duration=None,
      progress_callback=None,
      sample_cursor=None,
  ):
      super(Decoder, self).__init__()
  
      self.uri_start = float(start)
      if duration:
          self.uri_duration = float(duration)
      else:
          self.uri_duration = duration
  
      if start == 0 and duration is None:
          self.is_segment = False
      else:
          self.is_segment = True
      if progress_callback:
          self.progress_callback = progress_callback
      else:
          self.progress_callback = None
      if sample_cursor:
          self.sample_cursor = sample_cursor
      else:
          self.sample_cursor = 0
  
file_path: TimeSide/timeside/core/decoder.py
imports: from __future__ import division
  from timeside.core import Processor, implements, interfacedoc, abstract
  from timeside.core.api import IDecoder
  from django.conf import settings
label_desc: Use image node_id 1 to create a new Decoder object from inherited base classes: Processor with example: obj = Decoder(start, duration, progress_callback, sample_cursor)