Lines Matching refs:ost
445 int hw_device_setup_for_encode(OutputStream *ost)
452 if (ost->filter) {
453 frames_ref = av_buffersink_get_hw_frames_ctx(ost->filter->filter);
456 ost->enc_ctx->pix_fmt) {
464 config = avcodec_get_hw_config(ost->enc, i);
471 config->pix_fmt == ost->enc_ctx->pix_fmt)) {
472 av_log(ost->enc_ctx, AV_LOG_VERBOSE, "Using input "
474 av_get_pix_fmt_name(ost->enc_ctx->pix_fmt),
475 ost->enc->name);
476 ost->enc_ctx->hw_frames_ctx = av_buffer_ref(frames_ref);
477 if (!ost->enc_ctx->hw_frames_ctx)
488 av_log(ost->enc_ctx, AV_LOG_VERBOSE, "Using device %s "
490 av_hwdevice_get_type_name(dev->type), ost->enc->name);
491 ost->enc_ctx->hw_device_ctx = av_buffer_ref(dev->device_ref);
492 if (!ost->enc_ctx->hw_device_ctx)