mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 11:18:32 +00:00
rd cbp
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10964 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
39e67bf85d
commit
4d061dfdc8
@ -4102,6 +4102,9 @@ sum of squared errors of the quantization
|
|||||||
.RE
|
.RE
|
||||||
.PD 1
|
.PD 1
|
||||||
.TP
|
.TP
|
||||||
|
.B cbp\ \ \ \
|
||||||
|
Rate distorted optimal coded block pattern
|
||||||
|
.TP
|
||||||
.B last_pred=<0\-99>
|
.B last_pred=<0\-99>
|
||||||
Amount of motion predictors from the previous frame
|
Amount of motion predictors from the previous frame
|
||||||
.PD 0
|
.PD 0
|
||||||
|
@ -129,6 +129,7 @@ static int lavc_param_coder= 0;
|
|||||||
static int lavc_param_context= 0;
|
static int lavc_param_context= 0;
|
||||||
static char *lavc_param_intra_matrix = NULL;
|
static char *lavc_param_intra_matrix = NULL;
|
||||||
static char *lavc_param_inter_matrix = NULL;
|
static char *lavc_param_inter_matrix = NULL;
|
||||||
|
static int lavc_param_cbp= 0;
|
||||||
|
|
||||||
#include "m_option.h"
|
#include "m_option.h"
|
||||||
|
|
||||||
@ -223,6 +224,9 @@ m_option_t lavcopts_conf[]={
|
|||||||
#if LIBAVCODEC_BUILD >= 4675
|
#if LIBAVCODEC_BUILD >= 4675
|
||||||
{"intra_matrix", &lavc_param_intra_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
{"intra_matrix", &lavc_param_intra_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||||
{"inter_matrix", &lavc_param_inter_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
{"inter_matrix", &lavc_param_inter_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||||
|
#endif
|
||||||
|
#if LIBAVCODEC_BUILD >= 4681
|
||||||
|
{"cbp", &lavc_param_cbp, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD, NULL},
|
||||||
#endif
|
#endif
|
||||||
{NULL, NULL, 0, 0, 0, 0, NULL}
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
||||||
};
|
};
|
||||||
@ -466,6 +470,7 @@ static int config(struct vf_instance_s* vf,
|
|||||||
lavc_venc_context->flags|= lavc_param_umv;
|
lavc_venc_context->flags|= lavc_param_umv;
|
||||||
lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0;
|
lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0;
|
||||||
lavc_venc_context->flags|= lavc_param_data_partitioning;
|
lavc_venc_context->flags|= lavc_param_data_partitioning;
|
||||||
|
lavc_venc_context->flags|= lavc_param_cbp;
|
||||||
if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY;
|
if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY;
|
||||||
|
|
||||||
if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP;
|
if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP;
|
||||||
|
Loading…
Reference in New Issue
Block a user