Lines Matching refs:ist

317 int hw_device_setup_for_decode(InputStream *ist)
324 if (ist->hwaccel_device) {
325 dev = hw_device_get_by_name(ist->hwaccel_device);
327 if (ist->hwaccel_id == HWACCEL_AUTO) {
329 } else if (ist->hwaccel_id == HWACCEL_GENERIC) {
330 type = ist->hwaccel_device_type;
331 err = hw_device_init_from_type(type, ist->hwaccel_device,
339 if (ist->hwaccel_id == HWACCEL_AUTO) {
340 ist->hwaccel_device_type = dev->type;
341 } else if (ist->hwaccel_device_type != dev->type) {
342 av_log(ist->dec_ctx, AV_LOG_ERROR, "Invalid hwaccel device "
346 av_hwdevice_get_type_name(ist->hwaccel_device_type));
351 if (ist->hwaccel_id == HWACCEL_AUTO) {
353 } else if (ist->hwaccel_id == HWACCEL_GENERIC) {
354 type = ist->hwaccel_device_type;
371 dev = hw_device_match_by_codec(ist->dec);
382 if (!avcodec_get_hw_config(ist->dec, 0)) {
387 config = avcodec_get_hw_config(ist->dec, i);
393 av_log(ist->dec_ctx, AV_LOG_INFO, "Using auto "
399 config = avcodec_get_hw_config(ist->dec, i);
404 err = hw_device_init_from_type(type, ist->hwaccel_device,
410 if (ist->hwaccel_device) {
411 av_log(ist->dec_ctx, AV_LOG_INFO, "Using auto "
414 ist->hwaccel_device);
416 av_log(ist->dec_ctx, AV_LOG_INFO, "Using auto "
422 ist->hwaccel_device_type = type;
424 av_log(ist->dec_ctx, AV_LOG_INFO, "Auto hwaccel "
426 ist->hwaccel_id = HWACCEL_NONE;
432 av_log(ist->dec_ctx, AV_LOG_ERROR, "No device available "
434 av_hwdevice_get_type_name(type), ist->dec->name);
438 ist->dec_ctx->hw_device_ctx = av_buffer_ref(dev->device_ref);
439 if (!ist->dec_ctx->hw_device_ctx)
502 InputStream *ist = avctx->opaque;
504 enum AVPixelFormat output_format = ist->hwaccel_output_format;
544 InputStream *ist = avctx->opaque;
546 ist->hwaccel_retrieve_data = &hwaccel_retrieve_data;