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 Computer Vision Matlab Toolbox      Version 2.66
 Copyright 2014 Piotr Dollar.  [pdollar-at-gmail.com]
 Licensed under the Simplified BSD License [see external/bsd.txt]

Generated by m2html © 2003