Mercurial > libavcodec.hg
comparison h263dec.c @ 1064:b32afefe7d33 libavcodec
* UINTX -> uintx_t INTX -> intx_t
| author | kabi |
|---|---|
| date | Tue, 11 Feb 2003 16:35:48 +0000 |
| parents | f07fd48c23d4 |
| children | bb27c685fc72 |
comparison
equal
deleted
inserted
replaced
| 1063:fdeac9642346 | 1064:b32afefe7d33 |
|---|---|
| 297 | 297 |
| 298 /** | 298 /** |
| 299 * finds the end of the current frame in the bitstream. | 299 * finds the end of the current frame in the bitstream. |
| 300 * @return the position of the first byte of the next frame, or -1 | 300 * @return the position of the first byte of the next frame, or -1 |
| 301 */ | 301 */ |
| 302 static int mpeg4_find_frame_end(MpegEncContext *s, UINT8 *buf, int buf_size){ | 302 static int mpeg4_find_frame_end(MpegEncContext *s, uint8_t *buf, int buf_size){ |
| 303 ParseContext *pc= &s->parse_context; | 303 ParseContext *pc= &s->parse_context; |
| 304 int vop_found, i; | 304 int vop_found, i; |
| 305 uint32_t state; | 305 uint32_t state; |
| 306 | 306 |
| 307 vop_found= pc->frame_start_found; | 307 vop_found= pc->frame_start_found; |
| 401 draw_line(buf, sx, sy, ex, ey, w, h, stride, color); | 401 draw_line(buf, sx, sy, ex, ey, w, h, stride, color); |
| 402 } | 402 } |
| 403 | 403 |
| 404 int ff_h263_decode_frame(AVCodecContext *avctx, | 404 int ff_h263_decode_frame(AVCodecContext *avctx, |
| 405 void *data, int *data_size, | 405 void *data, int *data_size, |
| 406 UINT8 *buf, int buf_size) | 406 uint8_t *buf, int buf_size) |
| 407 { | 407 { |
| 408 MpegEncContext *s = avctx->priv_data; | 408 MpegEncContext *s = avctx->priv_data; |
| 409 int ret,i; | 409 int ret,i; |
| 410 AVFrame *pict = data; | 410 AVFrame *pict = data; |
| 411 float new_aspect; | 411 float new_aspect; |
| 627 #ifdef DEBUG | 627 #ifdef DEBUG |
| 628 printf("qscale=%d\n", s->qscale); | 628 printf("qscale=%d\n", s->qscale); |
| 629 #endif | 629 #endif |
| 630 | 630 |
| 631 if(s->error_resilience) | 631 if(s->error_resilience) |
| 632 memset(s->error_status_table, MV_ERROR|AC_ERROR|DC_ERROR|VP_START|AC_END|DC_END|MV_END, s->mb_num*sizeof(UINT8)); | 632 memset(s->error_status_table, MV_ERROR|AC_ERROR|DC_ERROR|VP_START|AC_END|DC_END|MV_END, s->mb_num*sizeof(uint8_t)); |
| 633 | 633 |
| 634 /* decode each macroblock */ | 634 /* decode each macroblock */ |
| 635 s->block_wrap[0]= | 635 s->block_wrap[0]= |
| 636 s->block_wrap[1]= | 636 s->block_wrap[1]= |
| 637 s->block_wrap[2]= | 637 s->block_wrap[2]= |
