Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

XVID_ENC_FRAME Struct Reference
[Encoder related functions and structures.]

#include <xvid.h>


Detailed Description

Structure used to pass a frame to the encoder.


Data Fields

int general
 [in]

int motion
 [in]

void * bitstream
 [out]

int length
 [out]

void * image
 [in]

int colorspace
 [in]

unsigned char * quant_intra_matrix
 [in]

unsigned char * quant_inter_matrix
 [in]

int quant
 [in]

int intra
 [in/out]

HINTINFO hint
 [in/out]


Field Documentation

void* XVID_ENC_FRAME::bitstream
 

[out]

Output MPEG4 bitstream buffer pointer

int XVID_ENC_FRAME::colorspace
 

[in]

input frame colorspace

int XVID_ENC_FRAME::general
 

[in]

Sets general options flag (See Flags for XVID_ENC_FRAME.general)

HINTINFO XVID_ENC_FRAME::hint
 

[in/out]

mv hint information

void* XVID_ENC_FRAME::image
 

[in]

Input frame

int XVID_ENC_FRAME::intra
 

[in/out]

  • [in] : tells XviD if the frame must be encoded as an intra frame
    • 1: forces the encoder to create a keyframe. Mainly used during a VBR 2nd pass.
    • 0: forces the encoder not to create a keyframe. Minaly used during a VBR second pass
    • -1: let the encoder decide (based on contents and max_key_interval). Mainly used in ABR mode and during a 1st VBR pass.
  • [out] : When first set to -1, the encoder returns the effective keyframe state of the frame.

int XVID_ENC_FRAME::length
 

[out]

Output MPEG4 bitstream length (bytes)

int XVID_ENC_FRAME::motion
 

[in]

Sets Motion Estimation options

int XVID_ENC_FRAME::quant
 

[in]

Frame quantizer :

  • 0 (zero) : Then the rate controler chooses the right quantizer for you. Typically used in ABR encoding, or first pass of a VBR encoding session.
  • != 0 : Then you force the encoder to use this specific quantizer value. It is clamped in the interval [1..31]. Tipically used during the 2nd pass of a VBR encoding session.

unsigned char* XVID_ENC_FRAME::quant_inter_matrix
 

[in]

Custom inter quantization matrix

unsigned char* XVID_ENC_FRAME::quant_intra_matrix
 

[in]

Custom intra quantization matrix




Author : XviD team <xvid-devel@xvid.org> Date : 2003-07-28