Mercurial > libavcodec.hg
comparison avcodec.h @ 9182:12f23f37664b libavcodec
Amend AVCodecContext with hwaccel_context (HW accelerator context).
This is needed for some HW accelerators that require a context that
FFmpeg can't instantiate itself. e.g. display-dependent data from
VA API and VDPAU.
author | gb |
---|---|
date | Tue, 17 Mar 2009 12:43:09 +0000 |
parents | 3a54ad453dbf |
children | 5b4f4d83431f |
comparison
equal
deleted
inserted
replaced
9181:323e4f591d7a | 9182:12f23f37664b |
---|---|
2338 * if no telecine is used ... | 2338 * if no telecine is used ... |
2339 * | 2339 * |
2340 * Set to time_base ticks per frame. Default 1, e.g., H.264/MPEG-2 set it to 2. | 2340 * Set to time_base ticks per frame. Default 1, e.g., H.264/MPEG-2 set it to 2. |
2341 */ | 2341 */ |
2342 int ticks_per_frame; | 2342 int ticks_per_frame; |
2343 | |
2344 /** | |
2345 * Hardware accelerator context. | |
2346 * For some hardware accelerators, a global context needs to be | |
2347 * provided by the user. In that case, this holds display-dependent | |
2348 * data FFmpeg cannot instantiate itself. Please refer to the | |
2349 * FFmpeg HW accelerator documentation to know how to fill this | |
2350 * is. e.g. for VA API, this is a struct vaapi_context. | |
2351 * - encoding: unused | |
2352 * - decoding: Set by user | |
2353 */ | |
2354 void *hwaccel_context; | |
2343 } AVCodecContext; | 2355 } AVCodecContext; |
2344 | 2356 |
2345 /** | 2357 /** |
2346 * AVCodec. | 2358 * AVCodec. |
2347 */ | 2359 */ |