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

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

Contents


mvReadCompressedImage(3dm)			    mvReadCompressedImage(3dm)


NAME    [Toc]    [Back]

     mvReadCompressedImage, mvGetCompressedImageSize, mvInsertCompressedImage
     - read and	write compressed images	in a movie

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/moviefile.h>


     DMstatus mvReadCompressedImage( MVid track, MVframe frameIndex,
		    size_t bufferSize, void* buffer )

     size_t mvGetCompressedImageSize( MVid track, MVframe frameIndex )

     DMstatus mvInsertCompressedImage( MVid track, MVframe frameIndex,
		    size_t compressedSize, void* buffer	)

DESCRIPTION    [Toc]    [Back]

     These functions are similar to the	ones in	mvEditByFrame(3dm) that	read
     and write frames in a movie track,	but these functions read and write the
     uncompressed data in an image track.  This	can save on
     compression/decompression time for	applications that deal directly	with
     compressed	image data.

     mvGetCompressedImageSize return the number	of bytes that image number
     frameIndex	requires.

     mvReadCompressedImage reads image number frameIndex into buffer.  If the
     frame number is out of range or if	it corresponds to a track gap, an
     error is set and DM_FAILURE is returned.

     mvInsertCompressedImage inserts the image in buffer before	image number
     frameIndex.  The caller supplies the size of the compressed image,	which
     will be stored in the movie file.	DM_SUCCESS or DM_FAILURE is returned.

EXAMPLE    [Toc]    [Back]

	  void*	ReadFirstImage(	MVid track )
	  {
	      size_t size   = mvGetCompressedImageSize(	track, 0 );
	      void*  buffer = malloc( size );

	      if ( mvReadCompressedImage( track,
					  0,
					  size,
					  buffer ) != DM_SUCCESS ) {
		  /* handle error */
	      }

	      return buffer;
	  }




									Page 1






mvReadCompressedImage(3dm)			    mvReadCompressedImage(3dm)


SEE ALSO    [Toc]    [Back]

      
      
     mvIntro(3dm), mvGetErrno(3dm).


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
AFreadmisc IRIX read from / write to / move logical read/write pointer for data in a miscellaneous chunk in an audio file
tis_write_unlock Tru64 Unlocks the specified read-write lock that was acquired for write access
tis_read_unlock Tru64 Unlocks a read-write lock that was acquired for read access
tis_write_lock Tru64 Acquires the specified read-write lock for write access
pthread_rwlock_wrlock Tru64 Acquires a read-write lock for write access
mvIsReadOnly IRIX see if a movie instance is read-only
tis_read_lock Tru64 Acquires a read-write lock for read access
pthread_rwlock_rdlock Tru64 Acquires a read-write lock for read access
mvClose IRIX write, close, and destroy movie instances
tis_read_trylock Tru64 Attempts to acquire a read-write lock for read access and does not wait if the lock cannot be immedi...
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service