| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#pragma once |
| 23 |
|
| 24 |
#include <gst/gst.h> |
| 25 |
#include <gst/video/video.h> |
| 26 |
|
| 27 |
typedef struct _GstEncoderBitrateProfileManager GstEncoderBitrateProfileManager; |
| 28 |
|
| 29 |
typedef struct _GstEncoderBitrateTargetForPixelsMap |
| 30 |
{ |
| 31 |
guint n_pixels; |
| 32 |
guint low_framerate_bitrate; |
| 33 |
guint high_framerate_bitrate; |
| 34 |
|
| 35 |
gpointer _gst_reserved[GST_PADDING_LARGE]; |
| 36 |
} GstEncoderBitrateTargetForPixelsMap; |
| 37 |
|
| 38 |
void |
| 39 |
gst_encoder_bitrate_profile_manager_add_profile(GstEncoderBitrateProfileManager* self, |
| 40 |
const gchar* profile_name, const GstEncoderBitrateTargetForPixelsMap* map); |
| 41 |
guint gst_encoder_bitrate_profile_manager_get_bitrate(GstEncoderBitrateProfileManager* self, GstVideoInfo* info); |
| 42 |
void gst_encoder_bitrate_profile_manager_start_loading_preset (GstEncoderBitrateProfileManager* self); |
| 43 |
void gst_encoder_bitrate_profile_manager_end_loading_preset(GstEncoderBitrateProfileManager* self, const gchar* preset); |
| 44 |
void gst_encoder_bitrate_profile_manager_set_bitrate(GstEncoderBitrateProfileManager* self, guint bitrate); |
| 45 |
GstEncoderBitrateProfileManager* gst_encoder_bitrate_profile_manager_new(guint default_bitrate); |
| 46 |
void gst_encoder_bitrate_profile_manager_free(GstEncoderBitrateProfileManager* self); |