Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
launch_decode(3)		  Arcan Lua API 		launch_decode(3)

NAME
     launch_decode - Launch a video decoding frameserver

SYNOPSIS
     vid, aid
     launch_decode( string:resource, func:callback(vid:source, strtbl:status) )
     launch_decode(   string:resource,	 string:opts,  func:callback(vid:source,
     strtbl:status) )
     launch_decode( nil, string:opts, func:callback(vid:source, strtbl:status) )

DESCRIPTION
     Spawn a new decode frameserver process, with input resource defined by  re-
     source  . the callback  function behaves similarly to that of launch_target
     . If opts	is provided it will be processed based on  the	capabilities  of
     the  decode frameserver. These can be viewed by runnning it from a command-
     line, like: ARCAN_ARG =help afsrv_decode.

     Due to an unfortunate legacy, certain resource  names are reserved for spe-
     cial purposes and are prefixed as device:, capture: and stream:.

EXAMPLE
     function launch_decode0()
	   vid = launch_decode("test.avi", function(source, status)
		 print(status.kind);
	   end);
	   show_image(vid);
	   resize_image(vid, VRESW, VRESH);
     end

SEE ALSO:
targetcontrol			   August 2026			launch_decode(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=launch_decode&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help