MeiCam SDK For Android  1.0.0
All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
com.meicam.sdk.NvsAVFileInfo Class Reference

Audio and video file information. More...

Public Member Functions

int getAVFileType ()
 Gets the type of file. More...
 
long getDuration ()
 Gets the duration of file. More...
 
long getDataRate ()
 Gets the data rate of the file. More...
 
int getVideoStreamCount ()
 Gets the number of video streams of the file. More...
 
int getAudioStreamCount ()
 Gets the number of audio streams of the file. More...
 
long getVideoStreamDuration (int videoStreamIndex)
 Get the duration of the current video stream through the video stream index. More...
 
NvsSize getVideoStreamDimension (int videoStreamIndex)
 Gets the size of the current video stream through the video stream index. More...
 
NvsRational getVideoStreamPixelAspectRatio (int videoStreamIndex)
 Gets the pixel aspect ratio of the current video stream through the video stream index. More...
 
NvsRational getVideoStreamFrameRate (int videoStreamIndex)
 Gets the frame rate of the current video stream through the video stream index. More...
 
int getVideoStreamRotation (int videoStreamIndex)
 Gets the rotation angle type of the current video stream through the video stream index. More...
 
int getVideoStreamComponentBitCount (int videoStreamIndex)
 Gets the effective number of bits per pixel component of the current video stream through the video stream index. More...
 
long getAudioStreamDuration (int audioStreamIndex)
 Gets the duration of the current audio stream through the audio stream index. More...
 
int getAudioStreamSampleRate (int audioStreamIndex)
 Gets the sampling rate of the current audio stream through the audio stream index. More...
 
int getAudioStreamChannelCount (int audioStreamIndex)
 Gets the number of channels of the current audio stream through the audio stream index. More...
 

Static Public Attributes

file type

static final int AV_FILE_TYPE_UNKNOWN = -1
 Unknown type. More...
 
static final int AV_FILE_TYPE_AUDIOVIDEO = 0
 Video type. More...
 
static final int AV_FILE_TYPE_AUDIO = 1
 Audio type. More...
 
static final int AV_FILE_TYPE_IMAGE = 2
 Image type. More...
 

Detailed Description

Audio and video file information.

Displays information about audio and video files, including the duration of audio and video files, data rate, aspect ratio of pixels, number of audio and video streams, and so on.

Warning
In the NvsAVFileInfo class, all public APIs can be used not only in the UI thread, but also across threads! ! !

Member Function Documentation

int com.meicam.sdk.NvsAVFileInfo.getAudioStreamChannelCount ( int  audioStreamIndex)
inline

Gets the number of channels of the current audio stream through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns the number of channels of the current audio stream.
int com.meicam.sdk.NvsAVFileInfo.getAudioStreamCount ( )
inline

Gets the number of audio streams of the file.

Returns
Returns the number of audio streams in the file.
long com.meicam.sdk.NvsAVFileInfo.getAudioStreamDuration ( int  audioStreamIndex)
inline

Gets the duration of the current audio stream through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns the duration of the current audio stream (in microseconds).
int com.meicam.sdk.NvsAVFileInfo.getAudioStreamSampleRate ( int  audioStreamIndex)
inline

Gets the sampling rate of the current audio stream through the audio stream index.

Parameters
audioStreamIndexAudio stream index
Returns
Returns the sample rate of the current audio stream.
int com.meicam.sdk.NvsAVFileInfo.getAVFileType ( )
inline

Gets the type of file.

Returns
Returns the obtained file type
long com.meicam.sdk.NvsAVFileInfo.getDataRate ( )
inline

Gets the data rate of the file.

Returns
Returns the data rate of the file
long com.meicam.sdk.NvsAVFileInfo.getDuration ( )
inline

Gets the duration of file.

Returns
Returns the duration of file (in microseconds)
int com.meicam.sdk.NvsAVFileInfo.getVideoStreamComponentBitCount ( int  videoStreamIndex)
inline

Gets the effective number of bits per pixel component of the current video stream through the video stream index.

Parameters
videoStreamIndexvedio stream index
Returns
Returns the number of pixels in the current video stream.
int com.meicam.sdk.NvsAVFileInfo.getVideoStreamCount ( )
inline

Gets the number of video streams of the file.

Returns
Returns the number of video streams of the file.
NvsSize com.meicam.sdk.NvsAVFileInfo.getVideoStreamDimension ( int  videoStreamIndex)
inline

Gets the size of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns a NvsSize object, which represents the size (width and height) of the video stream.
long com.meicam.sdk.NvsAVFileInfo.getVideoStreamDuration ( int  videoStreamIndex)
inline

Get the duration of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns the duration of the current video stream (in microseconds).
See also
getAudioStreamDuration
NvsRational com.meicam.sdk.NvsAVFileInfo.getVideoStreamFrameRate ( int  videoStreamIndex)
inline

Gets the frame rate of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns a NvsRational object indicating the frame rate of the current video stream.
NvsRational com.meicam.sdk.NvsAVFileInfo.getVideoStreamPixelAspectRatio ( int  videoStreamIndex)
inline

Gets the pixel aspect ratio of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns a NvsRational object representing the pixel aspect ratio of the current video stream.
int com.meicam.sdk.NvsAVFileInfo.getVideoStreamRotation ( int  videoStreamIndex)
inline

Gets the rotation angle type of the current video stream through the video stream index.

Parameters
videoStreamIndexVideo stream index
Returns
Returns the rotation angle type value of the current video stream. Please refer to Video Rotation Angle Type.

Member Data Documentation

final int com.meicam.sdk.NvsAVFileInfo.AV_FILE_TYPE_AUDIO = 1
static

Audio type.

final int com.meicam.sdk.NvsAVFileInfo.AV_FILE_TYPE_AUDIOVIDEO = 0
static

Video type.

final int com.meicam.sdk.NvsAVFileInfo.AV_FILE_TYPE_IMAGE = 2
static

Image type.

final int com.meicam.sdk.NvsAVFileInfo.AV_FILE_TYPE_UNKNOWN = -1
static

Unknown type.


The documentation for this class was generated from the following file: