Mercurial > libavcodec.hg
comparison utils.c @ 440:000aeeac27a2 libavcodec
* started to cleanup name clashes for onetime compilation
| author | kabi |
|---|---|
| date | Mon, 27 May 2002 16:42:14 +0000 |
| parents | 718a22dc121f |
| children | 6f47eef8879f |
comparison
equal
deleted
inserted
replaced
| 439:6ae275655a23 | 440:000aeeac27a2 |
|---|---|
| 516 MpegEncContext *s = avctx->priv_data; | 516 MpegEncContext *s = avctx->priv_data; |
| 517 s->num_available_buffers=0; | 517 s->num_available_buffers=0; |
| 518 } | 518 } |
| 519 | 519 |
| 520 | 520 |
| 521 static int encode_init(AVCodecContext *s) | 521 static int raw_encode_init(AVCodecContext *s) |
| 522 { | 522 { |
| 523 return 0; | 523 return 0; |
| 524 } | 524 } |
| 525 | 525 |
| 526 static int decode_frame(AVCodecContext *avctx, | 526 static int raw_decode_frame(AVCodecContext *avctx, |
| 527 void *data, int *data_size, | 527 void *data, int *data_size, |
| 528 UINT8 *buf, int buf_size) | 528 UINT8 *buf, int buf_size) |
| 529 { | 529 { |
| 530 return -1; | 530 return -1; |
| 531 } | 531 } |
| 532 | 532 |
| 533 static int encode_frame(AVCodecContext *avctx, | 533 static int raw_encode_frame(AVCodecContext *avctx, |
| 534 unsigned char *frame, int buf_size, void *data) | 534 unsigned char *frame, int buf_size, void *data) |
| 535 { | 535 { |
| 536 return -1; | 536 return -1; |
| 537 } | 537 } |
| 538 | 538 |
| 539 AVCodec rawvideo_codec = { | 539 AVCodec rawvideo_codec = { |
| 540 "rawvideo", | 540 "rawvideo", |
| 541 CODEC_TYPE_VIDEO, | 541 CODEC_TYPE_VIDEO, |
| 542 CODEC_ID_RAWVIDEO, | 542 CODEC_ID_RAWVIDEO, |
| 543 0, | 543 0, |
| 544 encode_init, | 544 raw_encode_init, |
| 545 encode_frame, | 545 raw_encode_frame, |
| 546 NULL, | 546 NULL, |
| 547 decode_frame, | 547 raw_decode_frame, |
| 548 }; | 548 }; |
