comparison mjpeg.c @ 1530:3b31998fe22f libavcodec

disable encoders where appropriate (patch courtesy of BERO <bero -at- geocities.co.jp>)
author melanson
date Tue, 14 Oct 2003 04:15:53 +0000
parents 79dddc5cd990
children dd544554ed42
comparison
equal deleted inserted replaced
1529:cb523a2ca00f 1530:3b31998fe22f
241 } 241 }
242 code <<= 1; 242 code <<= 1;
243 } 243 }
244 } 244 }
245 245
246 #ifdef CONFIG_ENCODERS
246 int mjpeg_init(MpegEncContext *s) 247 int mjpeg_init(MpegEncContext *s)
247 { 248 {
248 MJpegContext *m; 249 MJpegContext *m;
249 250
250 m = av_malloc(sizeof(MJpegContext)); 251 m = av_malloc(sizeof(MJpegContext));
278 279
279 void mjpeg_close(MpegEncContext *s) 280 void mjpeg_close(MpegEncContext *s)
280 { 281 {
281 av_free(s->mjpeg_ctx); 282 av_free(s->mjpeg_ctx);
282 } 283 }
284 #endif //CONFIG_ENCODERS
283 285
284 #define PREDICT(ret, topleft, top, left, predictor)\ 286 #define PREDICT(ret, topleft, top, left, predictor)\
285 switch(predictor){\ 287 switch(predictor){\
286 case 1: ret= left; break;\ 288 case 1: ret= left; break;\
287 case 2: ret= top; break;\ 289 case 2: ret= top; break;\