comparison dv.c @ 7776:dbcdd0165e55 libavcodec

Replace generic CONFIG_DECODERS preprocessor conditionals by more specific CONFIG_FOO_DECODER conditionals where appropriate.
author diego
date Tue, 02 Sep 2008 23:25:57 +0000
parents e8f71784062e
children 3b5964de95cd
comparison
equal deleted inserted replaced
7775:490ee89408c5 7776:dbcdd0165e55
1017 &s->sys->video_place[slice*5]); 1017 &s->sys->video_place[slice*5]);
1018 return 0; 1018 return 0;
1019 } 1019 }
1020 #endif 1020 #endif
1021 1021
1022 #ifdef CONFIG_DECODERS 1022 #ifdef CONFIG_DVVIDEO_DECODER
1023 /* NOTE: exactly one frame must be given (120000 bytes for NTSC, 1023 /* NOTE: exactly one frame must be given (120000 bytes for NTSC,
1024 144000 bytes for PAL - or twice those for 50Mbps) */ 1024 144000 bytes for PAL - or twice those for 50Mbps) */
1025 static int dvvideo_decode_frame(AVCodecContext *avctx, 1025 static int dvvideo_decode_frame(AVCodecContext *avctx,
1026 void *data, int *data_size, 1026 void *data, int *data_size,
1027 const uint8_t *buf, int buf_size) 1027 const uint8_t *buf, int buf_size)
1058 *data_size = sizeof(AVFrame); 1058 *data_size = sizeof(AVFrame);
1059 *(AVFrame*)data= s->picture; 1059 *(AVFrame*)data= s->picture;
1060 1060
1061 return s->sys->frame_size; 1061 return s->sys->frame_size;
1062 } 1062 }
1063 #endif 1063 #endif /* CONFIG_DVVIDEO_DECODER */
1064 1064
1065 1065
1066 static inline int dv_write_pack(enum dv_pack_type pack_id, DVVideoContext *c, uint8_t* buf) 1066 static inline int dv_write_pack(enum dv_pack_type pack_id, DVVideoContext *c, uint8_t* buf)
1067 { 1067 {
1068 /* 1068 /*