Mercurial > libavcodec.hg
comparison mpegvideo_enc.c @ 10803:4605bd2fdb7f libavcodec
Split the mpeg4 encoder and decoder off h263.c
author | michael |
---|---|
date | Thu, 07 Jan 2010 23:53:49 +0000 |
parents | edaaa3fa540c |
children | f20726a6d538 |
comparison
equal
deleted
inserted
replaced
10802:4f614b69b4e5 | 10803:4605bd2fdb7f |
---|---|
34 #include "mjpegenc.h" | 34 #include "mjpegenc.h" |
35 #include "msmpeg4.h" | 35 #include "msmpeg4.h" |
36 #include "faandct.h" | 36 #include "faandct.h" |
37 #include "aandcttab.h" | 37 #include "aandcttab.h" |
38 #include "flv.h" | 38 #include "flv.h" |
39 #include "mpeg4video.h" | |
39 #include <limits.h> | 40 #include <limits.h> |
40 | 41 |
41 //#undef NDEBUG | 42 //#undef NDEBUG |
42 //#include <assert.h> | 43 //#include <assert.h> |
43 | 44 |
3779 MPV_encode_end, | 3780 MPV_encode_end, |
3780 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, | 3781 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
3781 .long_name= NULL_IF_CONFIG_SMALL("H.263+ / H.263-1998 / H.263 version 2"), | 3782 .long_name= NULL_IF_CONFIG_SMALL("H.263+ / H.263-1998 / H.263 version 2"), |
3782 }; | 3783 }; |
3783 | 3784 |
3784 AVCodec mpeg4_encoder = { | |
3785 "mpeg4", | |
3786 CODEC_TYPE_VIDEO, | |
3787 CODEC_ID_MPEG4, | |
3788 sizeof(MpegEncContext), | |
3789 MPV_encode_init, | |
3790 MPV_encode_picture, | |
3791 MPV_encode_end, | |
3792 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, | |
3793 .capabilities= CODEC_CAP_DELAY, | |
3794 .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2"), | |
3795 }; | |
3796 | |
3797 AVCodec msmpeg4v1_encoder = { | 3785 AVCodec msmpeg4v1_encoder = { |
3798 "msmpeg4v1", | 3786 "msmpeg4v1", |
3799 CODEC_TYPE_VIDEO, | 3787 CODEC_TYPE_VIDEO, |
3800 CODEC_ID_MSMPEG4V1, | 3788 CODEC_ID_MSMPEG4V1, |
3801 sizeof(MpegEncContext), | 3789 sizeof(MpegEncContext), |