*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> movie/mvCreate (3d)              
Title
Content
Arch
Section
 

Contents


mvCreate(3dm)							 mvCreate(3dm)


NAME    [Toc]    [Back]

     mvCreateFile, mvCreateFD, mvCreateMem - create new	movie instances

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/moviefile.h>

     DMstatus mvCreateFile( const char*	fileName, const	DMparams* params,
		    DMparams* paramsUsedOrNULL,	MVid* returnMovie )

     DMstatus mvCreateFD( int fd, const	DMparams* params, DMparams*
			     paramsUsedOrNULL, MVid* returnMovie )

     DMstatus mvCreateMem( void* pointer, size_t size, const DMparams* params,
		    DMparams* paramsUsedOrNULL,	MVid* returnMovie )

DESCRIPTION    [Toc]    [Back]

     These are the functions that are used to create new movie instances.  A
     movie instance is a handle	that allows you	to read, write,	edit, and play
     a movie file.  It contains	information about the different	tracks (audio
     and image)	in a movie.

     mvCreateFile, mvCreateFD, and mvCreateMem all create a new	empty movie,
     initialized with the parameters params (see mvSetMovieDefaults(3dm)).
     The actual	parameters set for the movie are returned in paramsUsedOrNULL
     (see mvParams(3dm)).  Any movie that was already present in the file or
     memory location will be destroyed.	 The identifier	for the	new movie is
     returned in returnMovie.  If everything goes well,	DM_SUCCESS is
     returned; if not, DM_FAILURE is returned.

EXAMPLE    [Toc]    [Back]

	  #include <dmedia/moviefile.h>

	  void CreateMovie()
	  {
	      DMparams*	params;
	      MVid	movie;

	      if ( dmParamsCreate( &params ) !=	DM_SUCCESS ) {
	       /* handle error */
	      }

	      if ( mvSetMovieDefaults( params, MV_FORMAT_SGI_3 )
		   != DM_SUCCESS ) {
		  /* handle error */
	      }

	      if ( mvCreateFile( "new-movie", params, NULL, &movie )
		   != DM_SUCCESS ) {
		  /* handle error */
	      }



									Page 1






mvCreate(3dm)							 mvCreate(3dm)




	      /* Add tracks, insert frames, etc. */

	      mvClose( movie );
	  }


SEE ALSO    [Toc]    [Back]

      
      
     mvIntro(3dm), mvOpen(3dm),	mvClose(3dm), mvSetMovieDefaults(3dm),
     mvGetErrno(3dm).


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
mvIs IRIX identify movie instances
mvOpen IRIX open movie instances
mvClose IRIX write, close, and destroy movie instances
mvOptimize IRIX optimize a movie file for playback after editing operations, or create a flattened movie file
mvIntro IRIX introduction to the Movie Libraries SYNOPSIS (Movie File Library) #include -lmoviefile SY
mvShowCurrentFrame IRIX Display current movie frame on screen for a movie instance
makemovie IRIX make a movie from movie, image, and audio files
XmListGetMatchPos Tru64 A List function that returns all instances of an item in the list
XmListGetMatchPos HP-UX A List function that returns all instances of an item in the list
XmListGetMatchPos IRIX A List function that returns all instances of an item in the list
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service