Go to the documentation of this file.
23 #include <libbluray/bluray.h>
30 #define BLURAY_PROTO_PREFIX "bluray:"
31 #define MIN_PLAYLIST_LENGTH 180
44 #define OFFSET(x) offsetof(BlurayContext, x)
64 const BLURAY_DISC_INFO *disc_info;
66 disc_info = bd_get_disc_info(bd->
bd);
72 if (!disc_info->bluray_detected) {
78 if (disc_info->aacs_detected && !disc_info->aacs_handled) {
79 if (!disc_info->libaacs_detected) {
81 "Media stream encrypted with AACS, install and configure libaacs\n");
89 if (disc_info->bdplus_detected && !disc_info->bdplus_handled) {
118 const char *diskname = path;
122 bd->
bd = bd_open(diskname,
NULL);
144 if (num_title_idx < 1) {
152 for (
i = 0;
i < num_title_idx;
i++) {
153 BLURAY_TITLE_INFO *
info = bd_get_title_info(bd->
bd,
i, 0);
157 ((
int)(
info->duration / 90000) / 3600),
158 ((
int)(
info->duration / 90000) % 3600) / 60,
159 ((
int)(
info->duration / 90000) % 60));
166 bd_free_title_info(
info);
172 if (bd_select_playlist(bd->
bd, bd->
playlist) <= 0) {
178 if (bd->
angle >= 0) {
179 bd_select_angle(bd->
bd, bd->
angle);
184 bd_seek_chapter(bd->
bd, bd->
chapter - 1);
195 if (!bd || !bd->
bd) {
208 if (!bd || !bd->
bd) {
216 return bd_seek(bd->
bd,
pos);
219 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)
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
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)
#define MIN_PLAYLIST_LENGTH
#define flags(name, subs,...)