Mercurial > libavcodec.hg
comparison mpegvideo.c @ 693:b6a7ff92df57 libavcodec
darkness masking (lumi masking does only bright stuff now)
author | michaelni |
---|---|
date | Tue, 24 Sep 2002 10:53:59 +0000 |
parents | a1c69cb685b3 |
children | 3525da287ee2 |
comparison
equal
deleted
inserted
replaced
692:852b5a416161 | 693:b6a7ff92df57 |
---|---|
431 s->intra_only = 1; | 431 s->intra_only = 1; |
432 s->gop_size = 12; | 432 s->gop_size = 12; |
433 } else { | 433 } else { |
434 s->intra_only = 0; | 434 s->intra_only = 0; |
435 } | 435 } |
436 | 436 |
437 /* ME algorithm */ | 437 /* ME algorithm */ |
438 if (avctx->me_method == 0) | 438 if (avctx->me_method == 0) |
439 /* For compatibility */ | 439 /* For compatibility */ |
440 s->me_method = motion_estimation_method; | 440 s->me_method = motion_estimation_method; |
441 else | 441 else |
442 s->me_method = avctx->me_method; | 442 s->me_method = avctx->me_method; |
443 | 443 |
444 /* Fixed QSCALE */ | 444 /* Fixed QSCALE */ |
445 s->fixed_qscale = (avctx->flags & CODEC_FLAG_QSCALE); | 445 s->fixed_qscale = (avctx->flags & CODEC_FLAG_QSCALE); |
446 | 446 |
447 s->adaptive_quant= ( s->avctx->lumi_masking | 447 s->adaptive_quant= ( s->avctx->lumi_masking |
448 || s->avctx->dark_masking | |
448 || s->avctx->temporal_cplx_masking | 449 || s->avctx->temporal_cplx_masking |
449 || s->avctx->spatial_cplx_masking | 450 || s->avctx->spatial_cplx_masking |
450 || s->avctx->p_masking) | 451 || s->avctx->p_masking) |
451 && !s->fixed_qscale; | 452 && !s->fixed_qscale; |
452 | 453 |
453 switch(avctx->codec->id) { | 454 switch(avctx->codec->id) { |
454 case CODEC_ID_MPEG1VIDEO: | 455 case CODEC_ID_MPEG1VIDEO: |
455 s->out_format = FMT_MPEG1; | 456 s->out_format = FMT_MPEG1; |
456 avctx->delay=0; //FIXME not sure, should check the spec | 457 avctx->delay=0; //FIXME not sure, should check the spec |
457 break; | 458 break; |