Mercurial > libavcodec.hg
comparison mpeg12.c @ 2256:7e0b2e86afa9 libavcodec
1/2 resolution decoding
author | michael |
---|---|
date | Sat, 25 Sep 2004 23:18:58 +0000 |
parents | 9b6eb06cc184 |
children | bd09f4d1976f |
comparison
equal
deleted
inserted
replaced
2255:507690ff49a2 | 2256:7e0b2e86afa9 |
---|---|
2407 { | 2407 { |
2408 MpegEncContext *s = &s1->mpeg_enc_ctx; | 2408 MpegEncContext *s = &s1->mpeg_enc_ctx; |
2409 AVCodecContext *avctx= s->avctx; | 2409 AVCodecContext *avctx= s->avctx; |
2410 int ret; | 2410 int ret; |
2411 const int field_pic= s->picture_structure != PICT_FRAME; | 2411 const int field_pic= s->picture_structure != PICT_FRAME; |
2412 const int lowres= s->avctx->lowres; | |
2412 | 2413 |
2413 s->resync_mb_x= | 2414 s->resync_mb_x= |
2414 s->resync_mb_y= -1; | 2415 s->resync_mb_y= -1; |
2415 | 2416 |
2416 if (mb_y<<field_pic >= s->mb_height){ | 2417 if (mb_y<<field_pic >= s->mb_height){ |
2516 } | 2517 } |
2517 xy += wrap; | 2518 xy += wrap; |
2518 } | 2519 } |
2519 } | 2520 } |
2520 | 2521 |
2521 s->dest[0] += 16; | 2522 s->dest[0] += 16 >> lowres; |
2522 s->dest[1] += 16 >> s->chroma_x_shift; | 2523 s->dest[1] += 16 >> (s->chroma_x_shift + lowres); |
2523 s->dest[2] += 16 >> s->chroma_x_shift; | 2524 s->dest[2] += 16 >> (s->chroma_x_shift + lowres); |
2524 | 2525 |
2525 MPV_decode_mb(s, s->block); | 2526 MPV_decode_mb(s, s->block); |
2526 | 2527 |
2527 if (++s->mb_x >= s->mb_width) { | 2528 if (++s->mb_x >= s->mb_width) { |
2528 | 2529 |