libVX Library API Functions


Types

VX Types

Initialization

VX_Malloc and VX_Free Allocator/Deallocator functions.

Open/Close

VX_OpenMovieFromFile Opens a VX movie from a file.
VX_OpenMovieFromMemory Opens a VX movie from a memory location.
VX_CloseMovie Closes a VX movie.

Retrieve information about movie

VX_GetVideoWidth Gets the width of the movie in pixels.
VX_GetVideoHeight Gets the height of the movie in pixels.
VX_GetVideoFps Gets the framerate of the movie.
VX_GetNbFrame Gets the number of frames of the movie.
VX_GetNbIFrame Gets the number of I-Frames (keyframe) in the movie.
VX_GetNbAudioTrack Gets the number of audio tracks in the movie.
VX_GetAudioFrequency Gets the frequency of the movie audio in Hertz.

Playback

VX_ReadFrame Reads a movie frame.
VX_UnpackFrameImage Unpacks the image of a frame and puts it in the internal image frame FIFO.
VX_BlitFrameImage Blits the oldest unpacked image from the internal FIFO into a user buffer and removes it from the FIFO.
VX_SkipFrameImage Skips the oldest unpacked image, which means removes the oldest unpacked image from the internal FIFO without blitting it.
VX_BlitFrameSoundOnePacket Blits a packet of the current unpacked sound to a user buffer.
VX_SkipFrameSoundOnePacket Skips a packet of the current unpacked sound.
VX_GetCurrentFrameNumber Gets the current read frame number of the movie.
VX_GetFrameNbAudioPacket Gets the number of audio packets per track for the current frame.
VX_GetIFrameInfo Gets the frame number of an indexed I-frame (keyframe).
VX_JumpBeginning Go to the beginning of the movie.
VX_JumpNextIframe Go to the next movie I-frame (keyframe).
VX_JumpPreviousIframe Go to the previous movie I-frame (keyframe).
VX_JumpToIframe Go to an indexed I-frame (keyframe).