Lines Matching defs:bd
36 BLURAY *bd;
63 BlurayContext *bd = h->priv_data;
66 disc_info = bd_get_disc_info(bd->bd);
106 BlurayContext *bd = h->priv_data;
107 if (bd->bd) {
108 bd_close(bd->bd);
116 BlurayContext *bd = h->priv_data;
122 bd->bd = bd_open(diskname, NULL);
123 if (!bd->bd) {
135 if (bd->region > 0 && bd->region < 5) {
136 av_log(h, AV_LOG_INFO, "setting region code to %d (%c)\n", bd->region, 'A' + (bd->region - 1));
137 bd_set_player_setting(bd->bd, BLURAY_PLAYER_SETTING_REGION_CODE, bd->region);
142 num_title_idx = bd_get_titles(bd->bd, TITLES_RELEVANT, MIN_PLAYLIST_LENGTH);
149 if (bd->playlist < 0) {
153 BLURAY_TITLE_INFO *info = bd_get_title_info(bd->bd, i, 0);
162 bd->playlist = info->playlist;
168 av_log(h, AV_LOG_INFO, "selected %05d.mpls\n", bd->playlist);
172 if (bd_select_playlist(bd->bd, bd->playlist) <= 0) {
173 av_log(h, AV_LOG_ERROR, "bd_select_playlist(%05d.mpls) failed\n", bd->playlist);
178 if (bd->angle >= 0) {
179 bd_select_angle(bd->bd, bd->angle);
183 if (bd->chapter > 1) {
184 bd_seek_chapter(bd->bd, bd->chapter - 1);
192 BlurayContext *bd = h->priv_data;
195 if (!bd || !bd->bd) {
199 len = bd_read(bd->bd, buf, size);
206 BlurayContext *bd = h->priv_data;
208 if (!bd || !bd->bd) {
216 return bd_seek(bd->bd, pos);
219 return bd_get_title_size(bd->bd);