• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavdevice/

Lines Matching refs:avctx

226 static int decklink_setup_video(AVFormatContext *avctx, AVStream *st)
228 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
233 av_log(avctx, AV_LOG_ERROR, "Only one video stream is supported!\n");
238 av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format!"
244 av_log(avctx, AV_LOG_ERROR, "Unsupported video size or framerate!"
250 av_log(avctx, AV_LOG_ERROR, "Could not enable video output!\n");
276 static int decklink_setup_audio(AVFormatContext *avctx, AVStream *st)
278 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
283 av_log(avctx, AV_LOG_ERROR, "Only one audio stream is supported!\n");
287 av_log(avctx, AV_LOG_ERROR, "Unsupported sample rate!"
292 av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels!"
300 av_log(avctx, AV_LOG_ERROR, "Could not enable audio output!\n");
304 av_log(avctx, AV_LOG_ERROR, "Could not begin audio preroll!\n");
317 av_cold int ff_decklink_write_trailer(AVFormatContext *avctx)
319 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
346 static int decklink_write_video_packet(AVFormatContext *avctx, AVPacket *pkt)
348 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
376 av_log(avctx, AV_LOG_ERROR, "Could not clone video frame.\n");
384 av_log(avctx, AV_LOG_ERROR, "Could not create new frame.\n");
396 av_log(avctx, AV_LOG_ERROR, "Could not schedule video frame."
403 av_log(avctx, AV_LOG_DEBUG, "Buffered video frames: %d.\n", (int) buffered);
405 av_log(avctx, AV_LOG_WARNING, "There are not enough buffered video frames."
410 av_log(avctx, AV_LOG_DEBUG, "Ending audio preroll.\n");
412 av_log(avctx, AV_LOG_ERROR, "Could not end audio preroll!\n");
415 av_log(avctx, AV_LOG_DEBUG, "Starting scheduled playback.\n");
417 av_log(avctx, AV_LOG_ERROR, "Could not start scheduled playback!\n");
426 static int decklink_write_audio_packet(AVFormatContext *avctx, AVPacket *pkt)
428 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
435 av_log(avctx, AV_LOG_WARNING, "There's no buffered audio."
440 av_log(avctx, AV_LOG_ERROR, "Could not schedule audio samples.\n");
449 av_cold int ff_decklink_write_header(AVFormatContext *avctx)
451 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
467 av_log(avctx, AV_LOG_ERROR, "Could not create DeckLink iterator\n");
473 av_log(avctx, AV_LOG_INFO, "Blackmagic DeckLink devices:\n");
477 av_log(avctx, AV_LOG_INFO, "\t'%s'\n", displayName);
489 if (!strcmp(avctx->filename, displayName)) {
499 av_log(avctx, AV_LOG_ERROR, "Could not open '%s'\n", avctx->filename);
505 av_log(avctx, AV_LOG_ERROR, "Could not open output device from '%s'\n",
506 avctx->filename);
512 av_log(avctx, AV_LOG_ERROR, "Could not get Display Mode Iterator\n");
521 av_log(avctx, AV_LOG_INFO, "Supported formats for '%s':\n",
522 avctx->filename);
526 av_log(avctx, AV_LOG_INFO, "\t%ldx%ld at %d/%d fps",
531 av_log(avctx, AV_LOG_INFO, " (interlaced, lower field first)"); break;
533 av_log(avctx, AV_LOG_INFO, " (interlaced, upper field first)"); break;
535 av_log(avctx, AV_LOG_INFO, "\n");
546 for (n = 0; n < avctx->nb_streams; n++) {
547 AVStream *st = avctx->streams[n];
550 if (decklink_setup_audio(avctx, st))
553 if (decklink_setup_video(avctx, st))
556 av_log(avctx, AV_LOG_ERROR, "Unsupported stream type.\n");
572 int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt)
574 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
576 AVStream *st = avctx->streams[pkt->stream_index];
581 return decklink_write_video_packet(avctx, pkt);
583 return decklink_write_audio_packet(avctx, pkt);