class_docstr: Utility to make it easier to write processors which require fixed-sized
  input buffers.
class_docstr_tok: ["Utility","to","make","it","easier","to","write","processors","which","require","fixed-sized","input","buffers","."]
docstr: Return the total number of frames that this adapter will output
  according to the input_totalframes argument
code: def blocksize(self, input_totalframes):
      """Return the total number of frames that this adapter will output
      according to the input_totalframes argument"""
  
      blocksize = input_totalframes
      if self.pad:
          mod = input_totalframes % self.buffer_size
          if mod:
              blocksize += self.buffer_size - mod
  
      return blocksize
  
imports: from .component import Component, MetaComponent, abstract
  from .component import implements, implementations, interfacedoc
  from .api import IProcessor
  from .exceptions import Error, PIDError, ApiError
  from .tools.parameters import HasParam
  import re
  import datetime
  import numpy
  import uuid
  import networkx
  import inspect
  import os
  import csv
  import sys
label_desc: Use image node_id 2 for calling the FixedSizeInputAdapter obj's underlying member method code with example usage: obj.blocksize(input_totalframes) and returns: blocksize