Go to the documentation of this file.
23 #include <libbluray/bluray.h>
29 #define BLURAY_PROTO_PREFIX "bluray:"
30 #define MIN_PLAYLIST_LENGTH 180
43 #define OFFSET(x) offsetof(BlurayContext, x)
63 const BLURAY_DISC_INFO *disc_info;
65 disc_info = bd_get_disc_info(bd->
bd);
71 if (!disc_info->bluray_detected) {
77 if (disc_info->aacs_detected && !disc_info->aacs_handled) {
78 if (!disc_info->libaacs_detected) {
80 "Media stream encrypted with AACS, install and configure libaacs\n");
88 if (disc_info->bdplus_detected && !disc_info->bdplus_handled) {
117 const char *diskname = path;
121 bd->
bd = bd_open(diskname,
NULL);
143 if (num_title_idx < 1) {
151 for (
i = 0;
i < num_title_idx;
i++) {
152 BLURAY_TITLE_INFO *
info = bd_get_title_info(bd->
bd,
i, 0);
156 ((
int)(
info->duration / 90000) / 3600),
157 ((
int)(
info->duration / 90000) % 3600) / 60,
158 ((
int)(
info->duration / 90000) % 60));
165 bd_free_title_info(
info);
171 if (bd_select_playlist(bd->
bd, bd->
playlist) <= 0) {
177 if (bd->
angle >= 0) {
178 bd_select_angle(bd->
bd, bd->
angle);
183 bd_seek_chapter(bd->
bd, bd->
chapter - 1);
194 if (!bd || !bd->
bd) {
207 if (!bd || !bd->
bd) {
215 return bd_seek(bd->
bd,
pos);
218 return bd_get_title_size(bd->
bd);
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
#define AVERROR_EOF
End of file.
#define AVSEEK_SIZE
ORing this as the "whence" parameter to a seek function causes it to return the filesize without seek...
#define BLURAY_PROTO_PREFIX
const URLProtocol ff_bluray_protocol
static int bluray_close(URLContext *h)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int64_t bluray_seek(URLContext *h, int64_t pos, int whence)
static const AVClass bluray_context_class
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
static int bluray_open(URLContext *h, const char *path, int flags)
const char * av_default_item_name(void *ptr)
Return the context name.
static int check_disc_info(URLContext *h)
int av_strstart(const char *str, const char *pfx, const char **ptr)
Return non-zero if pfx is a prefix of str.
#define AV_LOG_INFO
Standard information.
static const AVOption options[]
#define i(width, name, range_min, range_max)
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static int bluray_read(URLContext *h, unsigned char *buf, int size)
@ AV_OPT_TYPE_INT
Underlying C type is int.
#define MIN_PLAYLIST_LENGTH
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
#define flags(name, subs,...)