Commit 6a314d3c authored by aurel's avatar aurel

move the mjpeg_encoder struct from mpegvideo.c to mjpegenc.c

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9059 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a3c550ae
......@@ -448,3 +448,14 @@ void ff_mjpeg_encode_mb(MpegEncContext *s, DCTELEM block[6][64])
encode_block(s, block[7], 7);
}
}
AVCodec mjpeg_encoder = {
"mjpeg",
CODEC_TYPE_VIDEO,
CODEC_ID_MJPEG,
sizeof(MpegEncContext),
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, -1},
};
......@@ -6930,17 +6930,4 @@ AVCodec wmv1_encoder = {
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
};
#ifdef CONFIG_MJPEG_ENCODER
AVCodec mjpeg_encoder = {
"mjpeg",
CODEC_TYPE_VIDEO,
CODEC_ID_MJPEG,
sizeof(MpegEncContext),
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, -1},
};
#endif
#endif //CONFIG_ENCODERS
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment