Mercurial > libavcodec.hg
comparison avcodec.h @ 11565:2baae9246958 libavcodec
Add avcodec_copy_context().
author | rbultje |
---|---|
date | Wed, 31 Mar 2010 20:40:49 +0000 |
parents | 5111783be6ad |
children | 214a2a8b9e58 |
comparison
equal
deleted
inserted
replaced
11564:a9780299ef48 | 11565:2baae9246958 |
---|---|
3257 /** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! | 3257 /** THIS FUNCTION IS NOT YET PART OF THE PUBLIC API! |
3258 * we WILL change its arguments and name a few times! */ | 3258 * we WILL change its arguments and name a few times! */ |
3259 AVCodecContext *avcodec_alloc_context2(enum AVMediaType); | 3259 AVCodecContext *avcodec_alloc_context2(enum AVMediaType); |
3260 | 3260 |
3261 /** | 3261 /** |
3262 * Copy the settings of the source AVCodecContext into the destination | |
3263 * AVCodecContext. The resulting destination codec context will be | |
3264 * unopened, i.e. you are required to call avcodec_open() before you | |
3265 * can use this AVCodecContext to decode/encode video/audio data. | |
3266 * | |
3267 * @param dest target codec context, should be initialized with | |
3268 * avcodec_alloc_context(), but otherwise uninitialized | |
3269 * @param src source codec context | |
3270 * @return AVERROR() on error (e.g. memory allocation error), 0 on success | |
3271 */ | |
3272 int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src); | |
3273 | |
3274 /** | |
3262 * Sets the fields of the given AVFrame to default values. | 3275 * Sets the fields of the given AVFrame to default values. |
3263 * | 3276 * |
3264 * @param pic The AVFrame of which the fields should be set to default values. | 3277 * @param pic The AVFrame of which the fields should be set to default values. |
3265 */ | 3278 */ |
3266 void avcodec_get_frame_defaults(AVFrame *pic); | 3279 void avcodec_get_frame_defaults(AVFrame *pic); |