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

FreeBSD Manual Pages

  
 
  

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

NAME
     image_matchstorage - test if two vids share the same underlying storage

SYNOPSIS
     true or false
     image_matchstorage( v1, v2 )

DESCRIPTION
     This  function can be used to determine if two vids share the same underly-
     ing backing store. This can be helpful in cases where one might need  tran-
     sition  based  on visual properties that are inherent to the backing store,
     as there are no strong equality tests for regular	vids  as  they	are  all
     treated as unique.

EXAMPLE
     function image_matchstorage0()
	   a = fill_surface(32, 32, 0, 255, 0);
	   c = fill_surface(32, 32, 255, 0, 0);
	   b = null_surface(32, 32);
	   image_sharestorage(a, b);
	   assert(image_matchstorage(a, b) == true);
	   assert(image_matchstorage(a, c) == false);
	   image_sharestorage(a, c);
	   assert(image_matchstorage(a, c) == true);
     end

SEE ALSO:
image				   August 2026		   image_matchstorage(3)

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

home | help