upipe-av/ubuf_av.h header reference
Upipe ubuf manager for AVFrame More
Header inclusion [link]
Members [link]
Type [link]
- enum ubuf_av_command
Functions [link]
- int ubuf_av_get_avframe(struct ubuf *ubuf, AVFrame *frame)
- struct ubuf_mgr * ubuf_av_mgr_alloc(void )
- struct ubuf * ubuf_pic_av_alloc(struct ubuf_mgr *mgr, AVFrame *frame)
- struct ubuf * ubuf_sound_av_alloc(struct ubuf_mgr *mgr, AVFrame *frame)
Description [link]
Upipe ubuf manager for AVFrame
Members detail [link]
#define UBUF_AV_ALLOC_PICTURE [link]
This macro is declared in upipe-av/ubuf_av.h source file, line 39.
#define UBUF_AV_ALLOC_SOUND [link]
This macro is declared in upipe-av/ubuf_av.h source file, line 40.
#define UBUF_AV_SIGNATURE [link]
This macro is declared in upipe-av/ubuf_av.h source file, line 38.
#define _UPIPE_AV_UBUF_AV_H_ [link]
This macro is declared in upipe-av/ubuf_av.h source file, line 30.
enum ubuf_av_command [link]
This enum is declared in upipe-av/ubuf_av.h source file, line 44.
This enum extends ubuf_command with specific commands for AVFrame buffers.
| Identifier | Value | Description |
|---|---|---|
| UBUF_AV_SENTINEL | 0x8000 | |
| UBUF_AV_GET_AVFRAME | 1 | returns the underlying AVFrame (AVFrame *) |
This function is declared in upipe-av/ubuf_av.h source file, line 83.
This function returns a reference to the underlying AVFrame. The frame should be freed when it is no longer needed.
Parameter list:
- ubuf: pointer to ubuf
- frame: unreferenced or newly allocated AVFrame
The return value is an error code
This function is declared in upipe-av/ubuf_av.h source file, line 91.
This function allocates and initializes an AVFrame buffer manager.
The return value is a pointer to an ubuf manager
This function is declared in upipe-av/ubuf_av.h source file, line 59.
This function allocates an ubuf for a picture AVFrame.
Parameter list:
- ubuf_mgr: pointer to AVFrame ubuf manager
- frame: pointer to AVFrame
The return value is a pointer to an ubuf or NULL in case of error
This function is declared in upipe-av/ubuf_av.h source file, line 71.
This function allocates an ubuf for a sound AVFrame.
Parameter list:
- ubuf_mgr: pointer to AVFrame ubuf manager
- frame: pointer to AVFrame
The return value is a pointer to an ubuf or NULL in case of error