OGMRip Reference Manual | ||||
---|---|---|---|---|
#include <ogmrip-lavc.h> OGMRipLavc; OGMRipLavcClass; enum OGMRipLavcHeaderType; void ogmrip_init_lavc_plugin (void); void ogmrip_lavc_set_cmp (OGMRipLavc *lavc, guint cmp, guint precmp, guint subcmp); void ogmrip_lavc_get_cmp (OGMRipLavc *lavc, guint *cmp, guint *precmp, guint *subcmp); void ogmrip_lavc_set_dia (OGMRipLavc *lavc, gint dia, gint predia); void ogmrip_lavc_get_dia (OGMRipLavc *lavc, gint *dia, gint *predia); void ogmrip_lavc_set_header (OGMRipLavc *lavc, OGMRipLavcHeaderType header); gint ogmrip_lavc_get_header (OGMRipLavc *lavc); void ogmrip_lavc_set_buf_size (OGMRipLavc *lavc, guint buf_size); gint ogmrip_lavc_get_buf_size (OGMRipLavc *lavc); void ogmrip_lavc_set_dc (OGMRipLavc *lavc, guint dc); gint ogmrip_lavc_get_dc (OGMRipLavc *lavc); void ogmrip_lavc_set_keyint (OGMRipLavc *lavc, guint keyint); gint ogmrip_lavc_get_keyint (OGMRipLavc *lavc); void ogmrip_lavc_set_last_pred (OGMRipLavc *lavc, guint last_pred); gint ogmrip_lavc_get_last_pred (OGMRipLavc *lavc); void ogmrip_lavc_set_max_rate (OGMRipLavc *lavc, guint max_rate); gint ogmrip_lavc_get_max_rate (OGMRipLavc *lavc); void ogmrip_lavc_set_mbd (OGMRipLavc *lavc, guint mbd); gint ogmrip_lavc_get_mbd (OGMRipLavc *lavc); void ogmrip_lavc_set_min_rate (OGMRipLavc *lavc, guint min_rate); gint ogmrip_lavc_get_min_rate (OGMRipLavc *lavc); void ogmrip_lavc_set_mv0 (OGMRipLavc *lavc, gboolean mv0); gboolean ogmrip_lavc_get_mv0 (OGMRipLavc *lavc); void ogmrip_lavc_set_preme (OGMRipLavc *lavc, guint preme); gint ogmrip_lavc_get_preme (OGMRipLavc *lavc); void ogmrip_lavc_set_qns (OGMRipLavc *lavc, guint qns); gint ogmrip_lavc_get_qns (OGMRipLavc *lavc); void ogmrip_lavc_set_strict (OGMRipLavc *lavc, guint strict); gint ogmrip_lavc_get_strict (OGMRipLavc *lavc); void ogmrip_lavc_set_vb_strategy (OGMRipLavc *lavc, guint vb_strategy); gint ogmrip_lavc_get_vb_strategy (OGMRipLavc *lavc); void ogmrip_lavc_set_vqcomp (OGMRipLavc *lavc, gdouble vqcomp); gdouble ogmrip_lavc_get_vqcomp (OGMRipLavc *lavc);
typedef struct { OGMRipVideoCodecClass parent_class; /* vtable */ G_CONST_RETURN gchar * (* get_codec) (void); } OGMRipLavcClass;
typedef enum { OGMRIP_LAVC_HEADER_AUTO, OGMRIP_LAVC_HEADER_EXTRADATA, OGMRIP_LAVC_HEADER_KEYFRAMES, OGMRIP_LAVC_HEADER_COMBINE } OGMRipLavcHeaderType;
Controls writing global video headers.
Codec decides where to write global headers. | |
Write global headers only in extradata. | |
Write global headers only in front of keyframes. | |
Combine OGMRIP_LAVC_HEADER_EXTRADATA and OGMRIP_LAVC_HEADER_KEYFRAMES .
|
void ogmrip_init_lavc_plugin (void);
Initialises the LAVC plugin. This function should be called when initialising a plugin of the LAVC family.
void ogmrip_lavc_set_cmp (OGMRipLavc *lavc, guint cmp, guint precmp, guint subcmp);
Sets the comparison function for full pel, pre pass and sub pel motion estimation
|
An OGMRipLavc |
|
The comparison function for full pel motion estimation |
|
The comparison function for motion estimation pre pass |
|
The comparison function for sub pel motion estimation |
void ogmrip_lavc_get_cmp (OGMRipLavc *lavc, guint *cmp, guint *precmp, guint *subcmp);
Gets the comparison function for full pel, pre pass and sub pel motion estimation
|
An OGMRipLavc |
|
A pointer to store the comparison function for full pel motion estimation |
|
A pointer to store the comparison function for motion estimation pre pass |
|
A pointer to store the comparison function for sub pel motion estimation |
void ogmrip_lavc_set_dia (OGMRipLavc *lavc, gint dia, gint predia);
Sets the diamond type and size for full pel and pre pass motion estimation
|
An OGMRipLavc |
|
The diamond type and size for full pel motion estimation |
|
The diamond type and size for motion estimation pre-pass |
void ogmrip_lavc_get_dia (OGMRipLavc *lavc, gint *dia, gint *predia);
Gets the diamond type and size for full pel and pre pass motion estimation
|
An OGMRipLavc |
|
A pointer to store the diamond type and size for full pel motion estimation |
|
A pointer to store the diamond type and size for motion estimation pre-pass |
void ogmrip_lavc_set_header (OGMRipLavc *lavc, OGMRipLavcHeaderType header);
Sets the global video header type.
|
An OGMRipLavc |
|
The OGMRipLavcHeaderType |
gint ogmrip_lavc_get_header (OGMRipLavc *lavc);
Gets the global video header type.
|
An OGMRipLavc |
Returns : |
The current OGMRipLavcHeaderType, or -1 |
void ogmrip_lavc_set_buf_size (OGMRipLavc *lavc, guint buf_size);
Sets the buffer size in kb
|
An OGMRipLavc |
|
A buffer size |
gint ogmrip_lavc_get_buf_size (OGMRipLavc *lavc);
Gets the buffer size in kb
|
An OGMRipLavc |
Returns : |
The buffer size, or -1 |
void ogmrip_lavc_set_dc (OGMRipLavc *lavc, guint dc);
Sets the intra DC precision in bits
|
An OGMRipLavc |
|
A precision |
gint ogmrip_lavc_get_dc (OGMRipLavc *lavc);
Gets the intra DC precision in bits
|
An OGMRipLavc |
Returns : |
The precision, or -1 |
void ogmrip_lavc_set_keyint (OGMRipLavc *lavc, guint keyint);
Sets the maximum interval between key frames
|
An OGMRipLavc |
|
An intervale |
gint ogmrip_lavc_get_keyint (OGMRipLavc *lavc);
Gets the maximum interval between key frames
|
An OGMRipLavc |
Returns : |
The interval, or -1 |
void ogmrip_lavc_set_last_pred (OGMRipLavc *lavc, guint last_pred);
Sets the amount of motion predictors from the previous frame
|
An OGMRipLavc |
|
The last_pred |
gint ogmrip_lavc_get_last_pred (OGMRipLavc *lavc);
Gets the amount of motion predictors from the previous frame
|
An OGMRipLavc |
Returns : |
The amount, or -1 |
void ogmrip_lavc_set_max_rate (OGMRipLavc *lavc, guint max_rate);
Sets the maximum bitrate in kbps
|
An OGMRipLavc |
|
A bitrate |
gint ogmrip_lavc_get_max_rate (OGMRipLavc *lavc);
Gets the maximum bitrate in kbps
|
An OGMRipLavc |
Returns : |
The bitrate, or -1 |
void ogmrip_lavc_set_mbd (OGMRipLavc *lavc, guint mbd);
Sets the macroblock decision algorithm
|
An OGMRipLavc |
|
The mbd |
gint ogmrip_lavc_get_mbd (OGMRipLavc *lavc);
Gets the macroblock decision algorithm
|
An OGMRipLavc |
Returns : |
The algorithm, or -1 |
void ogmrip_lavc_set_min_rate (OGMRipLavc *lavc, guint min_rate);
Sets the minimum bitrate in kbps
|
An OGMRipLavc |
|
A bitrate |
gint ogmrip_lavc_get_min_rate (OGMRipLavc *lavc);
Gets the minimum bitrate in kbps
|
An OGMRipLavc |
Returns : |
The bitrate, or -1 |
void ogmrip_lavc_set_mv0 (OGMRipLavc *lavc, gboolean mv0);
Try to encode each MB with MV=<0,0>
|
An OGMRipLavc |
|
TRUE to enable mv0 |
gboolean ogmrip_lavc_get_mv0 (OGMRipLavc *lavc);
Gets whether to try to encode each MB with MV=<0,0>
|
An OGMRipLavc |
Returns : |
TRUE if mv0 is enabled |
void ogmrip_lavc_set_preme (OGMRipLavc *lavc, guint preme);
Sets the motion estimation pre-pass
|
An OGMRipLavc |
|
The estimation |
gint ogmrip_lavc_get_preme (OGMRipLavc *lavc);
Gets the motion estimation pre-pass
|
An OGMRipLavc |
Returns : |
The estimation, or -1 |
void ogmrip_lavc_set_qns (OGMRipLavc *lavc, guint qns);
Sets the quantizer noise shaping
|
An OGMRipLavc |
|
The shaping |
gint ogmrip_lavc_get_qns (OGMRipLavc *lavc);
Gets the quantizer noise shaping
|
An OGMRipLavc |
Returns : |
The shaping, or -1 |
void ogmrip_lavc_set_strict (OGMRipLavc *lavc, guint strict);
Sets the strict standard compliancy
|
An OGMRipLavc |
|
The strictness |
gint ogmrip_lavc_get_strict (OGMRipLavc *lavc);
Gets the strict standard compliancy
|
An OGMRipLavc |
Returns : |
The strictness, or -1 |
void ogmrip_lavc_set_vb_strategy (OGMRipLavc *lavc, guint vb_strategy);
Sets the strategy to choose between I/P/B-frames
|
An OGMRipLavc |
|
A strategy |
gint ogmrip_lavc_get_vb_strategy (OGMRipLavc *lavc);
Gets the strategy to choose between I/P/B-frames
|
An OGMRipLavc |
Returns : |
The strategy, or -1 |
void ogmrip_lavc_set_vqcomp (OGMRipLavc *lavc, gdouble vqcomp);
Sets the quantizer compression
|
An OGMRipLavc |
|
The vqcomp |
gdouble ogmrip_lavc_get_vqcomp (OGMRipLavc *lavc);
Gets the quantizer compression
|
An OGMRipLavc |
Returns : |
The compression, or -1 |