⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pvtvideoio_parseplugin.m

📁 Video IO toolbox for matlab. 用directshow做的
💻 M
字号:
function [plugin,pluginArgs] = pvtVideoIO_parsePlugin(plugin, pluginArgs)
%[plugin,pluginArgs] = pvtVideoIO_parsePlugin(plugin, pluginArgs)
%  PRIVATE function for the VideoIO Library.  Typical users should not use
%  this function.  This function is shared by multiple components in a way
%  that it cannot sit in a private/ directory, hence the verbose name.
%
%  Takes an existing guess/default for a plugin name plus the vargin
%  portion of a videoReader/videoWriter constructor call.  If part of the
%  pluginArgs contains an override for the plugin, those arguments are
%  removed and the plugin name is overridden.  If not, plugin and
%  pluginArgs are left alone.  
%
%Example:
%  [plugin,pluginArgs] = pvtVideoIO_parsePlugin('ffmpegPopen2', ...
%    {'codec','xvid', 'plugin','ffmpegDirect'})
%  --> plugin='ffmpegDirect'; pluginArgs={'codec','xvid'};
%
%Copyright (c) 2008 Gerald Dalley
%See "MIT.txt" in the installation directory for licensing details (especially
%when using this library on GNU/Linux). 

if (~isempty(pluginArgs))
  [pluginSpecified,idx] = ismember('plugin', {pluginArgs{1:2:end}});
  if pluginSpecified
    plugin = pluginArgs{idx*2};
    pluginArgs = { pluginArgs{1:idx*2-2}, pluginArgs{idx*2+1:end} };
  end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -