Mercurial > libavcodec.hg
comparison utils.c @ 1139:6842feb093c1 libavcodec
rawvideo patch by (Fred Rothganger <rothgang at uiuc dot edu>)
| author | michaelni |
|---|---|
| date | Sun, 16 Mar 2003 21:03:20 +0000 |
| parents | e10e841c9bf0 |
| children | dde68a430ba9 |
comparison
equal
deleted
inserted
replaced
| 1138:e10e841c9bf0 | 1139:6842feb093c1 |
|---|---|
| 645 | 645 |
| 646 l += (h%c)<<32; | 646 l += (h%c)<<32; |
| 647 | 647 |
| 648 return ((h/c)<<32) + l/c; | 648 return ((h/c)<<32) + l/c; |
| 649 } | 649 } |
| 650 | |
| 651 static int raw_encode_init(AVCodecContext *s) | |
| 652 { | |
| 653 return 0; | |
| 654 } | |
| 655 | |
| 656 static int raw_decode_frame(AVCodecContext *avctx, | |
| 657 void *data, int *data_size, | |
| 658 uint8_t *buf, int buf_size) | |
| 659 { | |
| 660 return -1; | |
| 661 } | |
| 662 | |
| 663 static int raw_encode_frame(AVCodecContext *avctx, | |
| 664 unsigned char *frame, int buf_size, void *data) | |
| 665 { | |
| 666 return -1; | |
| 667 } | |
| 668 | |
| 669 AVCodec rawvideo_codec = { | |
| 670 "rawvideo", | |
| 671 CODEC_TYPE_VIDEO, | |
| 672 CODEC_ID_RAWVIDEO, | |
| 673 0, | |
| 674 raw_encode_init, | |
| 675 raw_encode_frame, | |
| 676 NULL, | |
| 677 raw_decode_frame, | |
| 678 }; |
