Mercurial > libavcodec.hg
comparison mpegvideo.c @ 3268:f7a9d8dd476b libavcodec
10l in h264 vismb/vismv (broke on 2006-03-09)
author | lorenm |
---|---|
date | Fri, 21 Apr 2006 19:22:14 +0000 |
parents | c2c29be6282e |
children | 7fac25904a8b |
comparison
equal
deleted
inserted
replaced
3267:8072ed8993f6 | 3268:f7a9d8dd476b |
---|---|
1829 int i; | 1829 int i; |
1830 int h_chroma_shift, v_chroma_shift; | 1830 int h_chroma_shift, v_chroma_shift; |
1831 const int width = s->avctx->width; | 1831 const int width = s->avctx->width; |
1832 const int height= s->avctx->height; | 1832 const int height= s->avctx->height; |
1833 const int mv_sample_log2= 4 - pict->motion_subsample_log2; | 1833 const int mv_sample_log2= 4 - pict->motion_subsample_log2; |
1834 const int mv_stride= (s->mb_width << mv_sample_log2) + 1; | 1834 const int mv_stride= (s->mb_width << mv_sample_log2) + (s->codec_id == CODEC_ID_H264 ? 0 : 1); |
1835 s->low_delay=0; //needed to see the vectors without trashing the buffers | 1835 s->low_delay=0; //needed to see the vectors without trashing the buffers |
1836 | 1836 |
1837 avcodec_get_chroma_sub_sample(s->avctx->pix_fmt, &h_chroma_shift, &v_chroma_shift); | 1837 avcodec_get_chroma_sub_sample(s->avctx->pix_fmt, &h_chroma_shift, &v_chroma_shift); |
1838 for(i=0; i<3; i++){ | 1838 for(i=0; i<3; i++){ |
1839 memcpy(s->visualization_buffer[i], pict->data[i], (i==0) ? pict->linesize[i]*height:pict->linesize[i]*height >> v_chroma_shift); | 1839 memcpy(s->visualization_buffer[i], pict->data[i], (i==0) ? pict->linesize[i]*height:pict->linesize[i]*height >> v_chroma_shift); |