Add bd_get_title_mpls to retrieve the full MPLS information from a title
This commit is contained in:
parent
51d16f7c74
commit
7a2f544c03
|
@ -55,6 +55,7 @@ EXPORTS
|
||||||
bd_read_mobj
|
bd_read_mobj
|
||||||
bd_free_mobj
|
bd_free_mobj
|
||||||
bd_get_clip_infos
|
bd_get_clip_infos
|
||||||
|
bd_get_title_mpls
|
||||||
|
|
||||||
; additional functions
|
; additional functions
|
||||||
bd_set_debug_handler
|
bd_set_debug_handler
|
||||||
|
|
|
@ -3935,3 +3935,11 @@ int bd_get_clip_infos(BLURAY *bd, unsigned clip, uint64_t *clip_start_time, uint
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct mpls_pl* bd_get_title_mpls(BLURAY * bd)
|
||||||
|
{
|
||||||
|
if (bd && bd->title) {
|
||||||
|
return bd->title->pl;
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
|
@ -1143,6 +1143,16 @@ struct bd_file_s *bd_open_file_dec(BLURAY *, const char *path);
|
||||||
*/
|
*/
|
||||||
int bd_get_clip_infos(BLURAY *bd, unsigned clip, uint64_t *clip_start_time, uint64_t *stream_start_time, uint64_t *pos, uint64_t *duration);
|
int bd_get_clip_infos(BLURAY *bd, unsigned clip, uint64_t *clip_start_time, uint64_t *stream_start_time, uint64_t *pos, uint64_t *duration);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the MPLS struct of the current title
|
||||||
|
*
|
||||||
|
* @param bd BLURAY object
|
||||||
|
* @return the MPLS struct
|
||||||
|
*
|
||||||
|
* Lifetime of the MPLS pointer is limited to the lifetime of the BD title
|
||||||
|
*/
|
||||||
|
struct mpls_pl* bd_get_title_mpls(BLURAY * bd);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue