Mercurial > libavcodec.hg
comparison raw.c @ 3777:20545fbb6f7c libavcodec
add some #ifdef CONFIG_ENCODERS/DECODERS
author | mru |
---|---|
date | Wed, 27 Sep 2006 19:54:07 +0000 |
parents | d4ab276e5987 |
children | c8c591fe26f8 |
comparison
equal
deleted
inserted
replaced
3776:1843a85123b7 | 3777:20545fbb6f7c |
---|---|
162 av_freep(&context->buffer); | 162 av_freep(&context->buffer); |
163 return 0; | 163 return 0; |
164 } | 164 } |
165 | 165 |
166 /* RAW Encoder Implementation */ | 166 /* RAW Encoder Implementation */ |
167 | 167 #ifdef CONFIG_RAWVIDEO_ENCODER |
168 static int raw_init_encoder(AVCodecContext *avctx) | 168 static int raw_init_encoder(AVCodecContext *avctx) |
169 { | 169 { |
170 avctx->coded_frame = (AVFrame *)avctx->priv_data; | 170 avctx->coded_frame = (AVFrame *)avctx->priv_data; |
171 avctx->coded_frame->pict_type = FF_I_TYPE; | 171 avctx->coded_frame->pict_type = FF_I_TYPE; |
172 avctx->coded_frame->key_frame = 1; | 172 avctx->coded_frame->key_frame = 1; |
180 { | 180 { |
181 return avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width, | 181 return avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width, |
182 avctx->height, frame, buf_size); | 182 avctx->height, frame, buf_size); |
183 } | 183 } |
184 | 184 |
185 #ifdef CONFIG_RAWVIDEO_ENCODER | |
186 AVCodec rawvideo_encoder = { | 185 AVCodec rawvideo_encoder = { |
187 "rawvideo", | 186 "rawvideo", |
188 CODEC_TYPE_VIDEO, | 187 CODEC_TYPE_VIDEO, |
189 CODEC_ID_RAWVIDEO, | 188 CODEC_ID_RAWVIDEO, |
190 sizeof(AVFrame), | 189 sizeof(AVFrame), |