mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit '8a62d2c28f'
* commit '8a62d2c28f':
vaapi_encode: Maintain a pool of bitstream output buffers
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
724a71dced
2 changed files with 75 additions and 19 deletions
|
|
@ -39,7 +39,6 @@ enum {
|
|||
MAX_PARAM_BUFFERS = 16,
|
||||
MAX_REORDER_DELAY = 16,
|
||||
MAX_PARAM_BUFFER_SIZE = 1024,
|
||||
MAX_OUTPUT_BUFFER_SIZE = 1024 * 1024,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
@ -84,6 +83,7 @@ typedef struct VAAPIEncodePicture {
|
|||
int nb_param_buffers;
|
||||
VABufferID param_buffers[MAX_PARAM_BUFFERS];
|
||||
|
||||
AVBufferRef *output_buffer_ref;
|
||||
VABufferID output_buffer;
|
||||
|
||||
void *priv_data;
|
||||
|
|
@ -130,6 +130,8 @@ typedef struct VAAPIEncodeContext {
|
|||
AVBufferRef *recon_frames_ref;
|
||||
AVHWFramesContext *recon_frames;
|
||||
|
||||
AVBufferPool *output_buffer_pool;
|
||||
|
||||
VAConfigAttrib config_attributes[MAX_CONFIG_ATTRIBUTES];
|
||||
int nb_config_attributes;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue