Mercurial > libavcodec.hg
comparison ffv1.c @ 8590:7a463923ecd1 libavcodec
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.
author | aurel |
---|---|
date | Tue, 13 Jan 2009 23:44:16 +0000 |
parents | 6efb15a24e91 |
children | d6bab465b82c |
comparison
equal
deleted
inserted
replaced
8589:a29b5b5c3c9d | 8590:7a463923ecd1 |
---|---|
348 update_vlc_state(state, v); | 348 update_vlc_state(state, v); |
349 //printf("final: %d\n", ret); | 349 //printf("final: %d\n", ret); |
350 return ret; | 350 return ret; |
351 } | 351 } |
352 | 352 |
353 #ifdef CONFIG_FFV1_ENCODER | 353 #if CONFIG_FFV1_ENCODER |
354 static inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ | 354 static inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ |
355 PlaneContext * const p= &s->plane[plane_index]; | 355 PlaneContext * const p= &s->plane[plane_index]; |
356 RangeCoder * const c= &s->c; | 356 RangeCoder * const c= &s->c; |
357 int x; | 357 int x; |
358 int run_index= s->run_index; | 358 int run_index= s->run_index; |
541 assert(width && height); | 541 assert(width && height); |
542 | 542 |
543 return 0; | 543 return 0; |
544 } | 544 } |
545 | 545 |
546 #ifdef CONFIG_FFV1_ENCODER | 546 #if CONFIG_FFV1_ENCODER |
547 static av_cold int encode_init(AVCodecContext *avctx) | 547 static av_cold int encode_init(AVCodecContext *avctx) |
548 { | 548 { |
549 FFV1Context *s = avctx->priv_data; | 549 FFV1Context *s = avctx->priv_data; |
550 int i; | 550 int i; |
551 | 551 |
630 } | 630 } |
631 } | 631 } |
632 } | 632 } |
633 } | 633 } |
634 | 634 |
635 #ifdef CONFIG_FFV1_ENCODER | 635 #if CONFIG_FFV1_ENCODER |
636 static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){ | 636 static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){ |
637 FFV1Context *f = avctx->priv_data; | 637 FFV1Context *f = avctx->priv_data; |
638 RangeCoder * const c= &f->c; | 638 RangeCoder * const c= &f->c; |
639 AVFrame *pict = data; | 639 AVFrame *pict = data; |
640 const int width= f->width; | 640 const int width= f->width; |
1023 CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/, | 1023 CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/, |
1024 NULL, | 1024 NULL, |
1025 .long_name= NULL_IF_CONFIG_SMALL("FFmpeg codec #1"), | 1025 .long_name= NULL_IF_CONFIG_SMALL("FFmpeg codec #1"), |
1026 }; | 1026 }; |
1027 | 1027 |
1028 #ifdef CONFIG_FFV1_ENCODER | 1028 #if CONFIG_FFV1_ENCODER |
1029 AVCodec ffv1_encoder = { | 1029 AVCodec ffv1_encoder = { |
1030 "ffv1", | 1030 "ffv1", |
1031 CODEC_TYPE_VIDEO, | 1031 CODEC_TYPE_VIDEO, |
1032 CODEC_ID_FFV1, | 1032 CODEC_ID_FFV1, |
1033 sizeof(FFV1Context), | 1033 sizeof(FFV1Context), |