Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 9400:e572a8df7e88
10l to kabi (compile fix, uint8->uint8_t)
author | arpi |
---|---|
date | Tue, 11 Feb 2003 20:21:52 +0000 |
parents | 33fb8b6b8547 |
children | 3b3b7b6fdb22 |
comparison
equal
deleted
inserted
replaced
9399:f7106682cac8 | 9400:e572a8df7e88 |
---|---|
295 if (ctx) | 295 if (ctx) |
296 free(ctx); | 296 free(ctx); |
297 } | 297 } |
298 | 298 |
299 static void draw_slice(struct AVCodecContext *s, | 299 static void draw_slice(struct AVCodecContext *s, |
300 UINT8 **src, int linesize, | 300 uint8_t **src, int linesize, |
301 int y, int width, int height){ | 301 int y, int width, int height){ |
302 sh_video_t * sh = s->opaque; | 302 sh_video_t * sh = s->opaque; |
303 int stride[3]; | 303 int stride[3]; |
304 int start=0, i; | 304 int start=0, i; |
305 int skip_stride= (s->width+15)>>4; | 305 int skip_stride= (s->width+15)>>4; |
306 UINT8 *skip= &s->coded_frame->mbskip_table[(y>>4)*skip_stride]; | 306 uint8_t *skip= &s->coded_frame->mbskip_table[(y>>4)*skip_stride]; |
307 int threshold= s->coded_frame->age; | 307 int threshold= s->coded_frame->age; |
308 | 308 |
309 stride[0]=linesize; | 309 stride[0]=linesize; |
310 if(s->coded_frame->linesize[1]){ | 310 if(s->coded_frame->linesize[1]){ |
311 stride[1]= s->coded_frame->linesize[1]; | 311 stride[1]= s->coded_frame->linesize[1]; |
316 if(s->pict_type!=B_TYPE){ | 316 if(s->pict_type!=B_TYPE){ |
317 for(i=0; i*16<width+16; i++){ | 317 for(i=0; i*16<width+16; i++){ |
318 if(i*16>=width || skip[i]>=threshold){ | 318 if(i*16>=width || skip[i]>=threshold){ |
319 if(start==i) start++; | 319 if(start==i) start++; |
320 else{ | 320 else{ |
321 UINT8 *src2[3]= {src[0] + start*16, | 321 uint8_t *src2[3]= {src[0] + start*16, |
322 src[1] + start*8, | 322 src[1] + start*8, |
323 src[2] + start*8}; | 323 src[2] + start*8}; |
324 //printf("%2d-%2d x %d\n", start, i, y); | 324 //printf("%2d-%2d x %d\n", start, i, y); |
325 mpcodecs_draw_slice (sh,src2, stride, (i-start)*16, height, start*16, y); | 325 mpcodecs_draw_slice (sh,src2, stride, (i-start)*16, height, start*16, y); |
326 start= i+1; | 326 start= i+1; |