MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_get_state_json

Function hb_get_state_json

libhb/hb_json.c:156–167  ·  view source on GitHub ↗

* Get the current state of an hb instance as a json string * @param h - Pointer to an hb_handle_t hb instance */

Source from the content-addressed store, hash-verified

154 * @param h - Pointer to an hb_handle_t hb instance
155 */
156char* hb_get_state_json( hb_handle_t * h )
157{
158 hb_state_t state;
159
160 hb_get_state(h, &state);
161 hb_dict_t *dict = hb_state_to_dict(&state);
162
163 char *json_state = hb_value_get_json(dict);
164 hb_value_free(&dict);
165
166 return json_state;
167}
168
169hb_dict_t * hb_audio_attributes_to_dict(uint32_t attributes)
170{

Callers

nothing calls this directly

Calls 4

hb_get_stateFunction · 0.85
hb_state_to_dictFunction · 0.85
hb_value_get_jsonFunction · 0.85
hb_value_freeFunction · 0.85

Tested by

no test coverage detected