mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 10:20:22 +01:00
pipe: Add p_video_codec.get_encode_headers for out of band VPS, SPS, PPS
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456>
This commit is contained in:
parent
34d45cf7ed
commit
3f07c8c321
1 changed files with 16 additions and 0 deletions
|
|
@ -182,6 +182,22 @@ struct pipe_video_codec
|
|||
void (*update_decoder_target)(struct pipe_video_codec *codec,
|
||||
struct pipe_video_buffer *old,
|
||||
struct pipe_video_buffer *updated);
|
||||
|
||||
/**
|
||||
* Gets the bitstream headers for a given pipe_picture_desc
|
||||
* of an encode operation
|
||||
*
|
||||
* User passes a buffer and its allocated size and
|
||||
* driver writes the bitstream headers in the buffer,
|
||||
* updating the size parameter as well.
|
||||
*
|
||||
* Returns 0 on success or an errno error code otherwise.
|
||||
* such as ENOMEM if the buffer passed was not big enough
|
||||
*/
|
||||
int (*get_encode_headers)(struct pipe_video_codec *codec,
|
||||
struct pipe_picture_desc *picture,
|
||||
void* bitstream_buf,
|
||||
unsigned *size);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue