#include <stddef.h>
#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/frame.h"
Go to the source code of this file.
◆ AVVideoHintType
Enumerator |
---|
AV_VIDEO_HINT_TYPE_CONSTANT | |
AV_VIDEO_HINT_TYPE_CHANGED | |
Definition at line 34 of file video_hint.h.
◆ av_video_hint_rects()
◆ av_video_hint_get_rect()
◆ av_video_hint_alloc()
AVVideoHint * av_video_hint_alloc |
( |
size_t |
nb_rects, |
|
|
size_t * |
out_size |
|
) |
| |
Allocate memory for the AVVideoHint struct along with an nb_rects-sized arrays of AVVideoRect.
The side data contains a list of rectangles for the portions of the frame which changed from the last encoded one (and the remainder are assumed to be changed), or, alternately (depending on the type parameter) the unchanged ones (and the remanining ones are those which changed). Macroblocks will thus be hinted either to be P_SKIP-ped or go through the regular encoding procedure.
It's responsibility of the caller to fill the AVRects accordingly, and to set the proper AVVideoHintType field.
- Parameters
-
out_size | if non-NULL, the size in bytes of the resulting data array is written here |
- Returns
- newly allocated AVVideoHint struct (must be freed by the caller using av_free()) on success, NULL on memory allocation failure
◆ av_video_hint_create_side_data()