# seqWriterPlugin

## PURPOSE

Plugin for seqIo and videoIO to allow writing of seq files.

## SYNOPSIS

function varargout = seqWriterPlugin( cmd, h, varargin )

## DESCRIPTION

     Plugin for seqIo and videoIO to allow writing of seq files.

     Do not call directly, use as plugin for seqIo or videoIO instead.
     The following is a list of commands available (swp=seqWriterPlugin):
      h=swp('open',h,fName,info) % Open a seq file for writing (h ignored).
      h=swp('close',h)           % Close seq file (output h is -1).
      swp('addframe',h,I,[ts])   % Writes video frame (and timestamp).
      swp('addframeb',h,I,[ts])  % Writes video frame with no encoding.
      info = swp('getinfo',h)    % Return struct with info about video.

     The following params must be specified in struct 'info' upon opening:
      width          - frame width
      height         - frame height
      fps            - frames per second
      quality        - [80] compression quality (0 to 100)
      codec          - string representing codec, options include:
       'monoraw'/'imageFormat100'      - black/white uncompressed
       'raw'/'imageFormat200'          - color (BGR) uncompressed
       'monojpg'/'imageFormat102'      - black/white jpg compressed
       'jpg'/'imageFormat201'          - color jpg compressed
       'monopng'/'imageFormat001'      - black/white png compressed
       'png'/'imageFormat002'          - color png compressed

     USAGE
      varargout = seqWriterPlugin( cmd, h, varargin )

     INPUTS
      cmd        - string indicating operation to perform
      h          - unique identifier for open seq file
      varargin   - additional options (vary according to cmd)

     OUTPUTS
      varargout  - output (varies according to cmd)

     EXAMPLE

     See also SEQIO, SEQREADERPLUGIN

     Piotr's Image&Video Toolbox      Version 2.51
     Copyright 2010 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Lesser GPL [see external/lgpl.txt]

## CROSS-REFERENCE INFORMATION

This function calls:

- c clc - clear command window.
- isfield2 Similar to isfield but also test whether fields are initialized.

This function is called by:

- seqIo Utilities for reading and writing seq files.