EncodedVideoFrameInfo

Describes information of externally encoded video frames.

struct EncodedVideoFrameInfo {
  VIDEO_CODEC_TYPE codecType;
  int width;
  int height;
  int framesPerSecond;
  VIDEO_FRAME_TYPE frameType;
  VIDEO_ORIENTATION rotation;
  int trackId;
  int64_t captureTimeMs;
  int64_t decodeTimeMs;
  VIDEO_STREAM_TYPE streamType;
  int64_t presentationMs;
};

Properties

codecType
The codec type of the local video stream. See VIDEO_CODEC_TYPE.
width
The width of the video frame (in pixels).
height
The height of the video frame (in pixels).
framesPerSecond
The frame rate of the video frame. When this parameter is not 0, it can be used to calculate the Unix timestamp of the externally encoded video frame.
frameType
The type of the video frame. See VIDEO_FRAME_TYPE.
rotation
The rotation information of the video frame. See VIDEO_ORIENTATION.
trackId
Reserved parameter for future support of multiple video tracks.
captureTimeMs
The capture timestamp of the externally encoded video frame (in milliseconds, Unix timestamp).
decodeTimeMs
The decode timestamp of the externally encoded video frame (in milliseconds, Unix timestamp).
streamType
The type of the video stream. See VIDEO_STREAM_TYPE.