Lines Matching defs:avctx

56 static IDeckLinkIterator *decklink_create_iterator(AVFormatContext *avctx)
62 av_log(avctx, AV_LOG_ERROR, "COM initialization failed.\n");
74 av_log(avctx, AV_LOG_ERROR, "Could not create DeckLink iterator. "
89 av_log(avctx, AV_LOG_WARNING, "Installed DeckLink drivers are too old and may be incompatible with the SDK this module was built against. "
92 av_log(avctx, AV_LOG_ERROR, "Failed to check installed DeckLink API version.\n");
122 static int decklink_select_input(AVFormatContext *avctx, BMDDeckLinkConfigurationID cfg_id)
124 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
135 av_log(avctx, AV_LOG_ERROR, "Failed to query supported %s inputs.\n", type_name);
139 av_log(avctx, AV_LOG_ERROR, "Device does not support selected %s input.\n", type_name);
144 av_log(avctx, AV_LOG_ERROR, "Failed to select %s input.\n", type_name);
164 int ff_decklink_set_configs(AVFormatContext *avctx,
166 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
200 av_log(avctx, AV_LOG_WARNING, "Setting duplex mode failed.\n");
202 av_log(avctx, AV_LOG_VERBOSE, "Successfully set duplex mode to %s duplex.\n", ctx->duplex_mode == 2 || ctx->duplex_mode == 4 ? "full" : "half");
204 av_log(avctx, AV_LOG_WARNING, "Unable to set duplex mode, because it is not supported.\n");
209 ret = decklink_select_input(avctx, bmdDeckLinkConfigAudioInputConnection);
212 ret = decklink_select_input(avctx, bmdDeckLinkConfigVideoInputConnection);
219 av_log(avctx, AV_LOG_WARNING, "Setting timing offset failed.\n");
225 av_log(avctx, AV_LOG_WARNING, "Setting link configuration failed.\n");
227 av_log(avctx, AV_LOG_VERBOSE, "Successfully set link configuration: 0x%x.\n", ctx->link);
231 av_log(avctx, AV_LOG_WARNING, "Setting SquareDivisionSplit failed.\n");
233 av_log(avctx, AV_LOG_VERBOSE, "Successfully set SquareDivisionSplit.\n");
246 av_log(avctx, AV_LOG_WARNING, "Setting SMPTE levelA failed.\n");
248 av_log(avctx, AV_LOG_VERBOSE, "Successfully set SMPTE levelA.\n");
250 av_log(avctx, AV_LOG_WARNING, "Unable to set SMPTE levelA mode, because it is not supported.\n");
257 int ff_decklink_set_format(AVFormatContext *avctx,
263 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
275 av_log(avctx, AV_LOG_DEBUG, "Trying to find mode for frame size %dx%d, frame timing %d/%d, field order %d, direction %d, format code %s\n",
285 av_log(avctx, AV_LOG_ERROR, "Could not get Display Mode Iterator\n");
316 av_log(avctx, AV_LOG_INFO, "Found Decklink mode %d x %d with rate %.2f%s\n",
389 int ff_decklink_set_format(AVFormatContext *avctx, decklink_direction_t direction) {
390 return ff_decklink_set_format(avctx, 0, 0, 0, 0, AV_FIELD_UNKNOWN, direction);
393 int ff_decklink_list_devices(AVFormatContext *avctx,
398 IDeckLinkIterator *iter = decklink_create_iterator(avctx);
466 void ff_decklink_list_devices_legacy(AVFormatContext *avctx,
476 ret = ff_decklink_list_devices(avctx, device_list, show_inputs, show_outputs);
478 av_log(avctx, AV_LOG_INFO, "Blackmagic DeckLink %s devices:\n",
481 av_log(avctx, AV_LOG_INFO, "\t'%s'\n", device_list->devices[i]->device_description);
487 int ff_decklink_list_formats(AVFormatContext *avctx, decklink_direction_t direction)
489 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
498 ret = decklink_select_input(avctx, bmdDeckLinkConfigAudioInputConnection);
501 ret = decklink_select_input(avctx, bmdDeckLinkConfigVideoInputConnection);
510 av_log(avctx, AV_LOG_ERROR, "Could not get Display Mode Iterator\n");
514 av_log(avctx, AV_LOG_INFO, "Supported formats for '%s':\n\tformat_code\tdescription",
515 avctx->url);
520 av_log(avctx, AV_LOG_INFO, "\n\t%.4s\t\t%ldx%ld at %d/%d fps",
525 av_log(avctx, AV_LOG_INFO, " (interlaced, lower field first)"); break;
527 av_log(avctx, AV_LOG_INFO, " (interlaced, upper field first)"); break;
531 av_log(avctx, AV_LOG_INFO, "\n");
538 void ff_decklink_cleanup(AVFormatContext *avctx)
540 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
555 int ff_decklink_init_device(AVFormatContext *avctx, const char* name)
557 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
560 IDeckLinkIterator *iter = decklink_create_iterator(avctx);
584 av_log(avctx, AV_LOG_ERROR, "Could not get configuration interface for '%s'\n", name);
585 ff_decklink_cleanup(avctx);
590 av_log(avctx, AV_LOG_ERROR, "Could not get attributes interface for '%s'\n", name);
591 ff_decklink_cleanup(avctx);