Mercurial > libavcodec.hg
comparison libx264.c @ 10566:7ca185b4bc42 libavcodec
Add weightp support in API for libx264.
ffmpeg can encode baseline profile again.
author | darkshikari |
---|---|
date | Tue, 24 Nov 2009 15:49:34 +0000 |
parents | f1d179ba9e7a |
children | 8a7d79132993 |
comparison
equal
deleted
inserted
replaced
10565:26dc0444fa93 | 10566:7ca185b4bc42 |
---|---|
226 } | 226 } |
227 | 227 |
228 x4->params.analyse.i_direct_mv_pred = avctx->directpred; | 228 x4->params.analyse.i_direct_mv_pred = avctx->directpred; |
229 | 229 |
230 x4->params.analyse.b_weighted_bipred = avctx->flags2 & CODEC_FLAG2_WPRED; | 230 x4->params.analyse.b_weighted_bipred = avctx->flags2 & CODEC_FLAG2_WPRED; |
231 x4->params.analyse.i_weighted_pred = avctx->weighted_p_pred; | |
231 | 232 |
232 if (avctx->me_method == ME_EPZS) | 233 if (avctx->me_method == ME_EPZS) |
233 x4->params.analyse.i_me_method = X264_ME_DIA; | 234 x4->params.analyse.i_me_method = X264_ME_DIA; |
234 else if (avctx->me_method == ME_HEX) | 235 else if (avctx->me_method == ME_HEX) |
235 x4->params.analyse.i_me_method = X264_ME_HEX; | 236 x4->params.analyse.i_me_method = X264_ME_HEX; |