static void reset_stream_parameters (vorbisd_prc_t *ap_prc) { assert (NULL != ap_prc); ap_prc->started_ = false; tiz_mem_set (&(ap_prc->fsinfo_), 0, sizeof(FishSoundInfo)); tiz_filter_prc_update_eos_flag (ap_prc, false); }
static void * sdlivr_prc_ctor (void * ap_obj, va_list * app) { sdlivr_prc_t * p_prc = super_ctor (typeOf (ap_obj, "sdlivrprc"), ap_obj, app); assert (p_prc); tiz_mem_set (&(p_prc->port_def_), 0, sizeof (OMX_VIDEO_PORTDEFINITIONTYPE)); p_prc->p_surface = NULL; p_prc->p_overlay = NULL; p_prc->port_disabled_ = false; return p_prc; }
static void reset_stream_parameters (mp3d_prc_t * ap_prc) { assert (ap_prc); mad_frame_mute (&ap_prc->frame_); mad_synth_mute (&ap_prc->synth_); tiz_mem_set (ap_prc->in_buff_, 0, INPUT_BUFFER_SIZE + MAD_BUFFER_GUARD); ap_prc->remaining_ = 0; ap_prc->frame_count_ = 0; ap_prc->next_synth_sample_ = 0; ap_prc->eos_ = false; }
void tiz_uuid_generate (OMX_UUIDTYPE *ap_uuid) { uuid_t uid = { '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0' }; assert (NULL != ap_uuid); /* Khronos uuid type is 128 bytes length !! */ (void)tiz_mem_set (ap_uuid, 0, 128); uuid_generate (uid); /* Khronos uuid type is 128 bytes length. We only use the 16 first */ /* bytes. */ memcpy (ap_uuid, uid, 16); }
void tiz_uuid_str (const OMX_U8 *ap_uuid, OMX_STRING ap_str) { uuid_t uid = { '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0' }; assert (NULL != ap_uuid); assert (NULL != ap_str); uuid_clear (uid); memcpy (uid, ap_uuid, 16); /* Khronos uuid type is 128 bytes length !! */ (void)tiz_mem_set (ap_str, 0, 128); uuid_unparse (uid, ap_str); }
void tiz_str_uuid (const char *ap_str, OMX_UUIDTYPE *ap_uuid) { uuid_t uid = { '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0' }; int parse_result = 0; assert (NULL != ap_str); assert (NULL != ap_uuid); uuid_clear (uid); /* Khronos uuid type is 128 bytes length !! */ (void)tiz_mem_set (ap_uuid, 0, 128); parse_result = uuid_parse (ap_str, uid); assert (parse_result == 0); memcpy (ap_uuid, uid, 16); }