Mercurial > libavcodec.hg
comparison rv30.c @ 6714:05c3a4b419e9 libavcodec
Calculate motion vector information based on PTS provided in slice header
author | kostya |
---|---|
date | Mon, 28 Apr 2008 13:37:36 +0000 |
parents | 5b3acf9fd50a |
children | e943e1409077 |
comparison
equal
deleted
inserted
replaced
6713:f282270c589f | 6714:05c3a4b419e9 |
---|---|
45 if(si->type == 1) si->type = 0; | 45 if(si->type == 1) si->type = 0; |
46 if(get_bits1(gb)) | 46 if(get_bits1(gb)) |
47 return -1; | 47 return -1; |
48 si->quant = get_bits(gb, 5); | 48 si->quant = get_bits(gb, 5); |
49 skip_bits1(gb); | 49 skip_bits1(gb); |
50 skip_bits(gb, 13); // timestamp | 50 si->pts = get_bits(gb, 13); |
51 skip_bits(gb, r->rpr); | 51 skip_bits(gb, r->rpr); |
52 si->width = w; | 52 si->width = w; |
53 si->height = h; | 53 si->height = h; |
54 mb_size = ((w + 15) >> 4) * ((h + 15) >> 4); | 54 mb_size = ((w + 15) >> 4) * ((h + 15) >> 4); |
55 mb_bits = ff_rv34_get_start_offset(gb, mb_size); | 55 mb_bits = ff_rv34_get_start_offset(gb, mb_size); |