Lines Matching refs:format

118 static int CUDAAPI cuvid_handle_video_sequence(void *opaque, CUVIDEOFORMAT* format)
135 av_log(avctx, AV_LOG_TRACE, "pfnSequenceCallback, progressive_sequence=%d\n", format->progressive_sequence);
141 avctx->coded_width = cuinfo.ulWidth = format->coded_width;
142 avctx->coded_height = cuinfo.ulHeight = format->coded_height;
145 cuinfo.display_area.left = format->display_area.left + ctx->crop.left;
146 cuinfo.display_area.top = format->display_area.top + ctx->crop.top;
147 cuinfo.display_area.right = format->display_area.right - ctx->crop.right;
148 cuinfo.display_area.bottom = format->display_area.bottom - ctx->crop.bottom;
169 chroma_444 = format->chroma_format == cudaVideoChromaFormat_444;
171 switch (format->bit_depth_luma_minus8) {
190 format->bit_depth_luma_minus8 + 8);
223 (AVRational){ format->display_aspect_ratio.x, format->display_aspect_ratio.y },
226 ctx->deint_mode_current = format->progressive_sequence
230 ctx->progressive_sequence = format->progressive_sequence;
232 if (!format->progressive_sequence && ctx->deint_mode_current == cudaVideoDeinterlaceMode_Weave)
237 if (format->video_signal_description.video_full_range_flag)
242 avctx->color_primaries = format->video_signal_description.color_primaries;
243 avctx->color_trc = format->video_signal_description.transfer_characteristics;
244 avctx->colorspace = format->video_signal_description.matrix_coefficients;
246 if (format->bitrate)
247 avctx->bit_rate = format->bitrate;
249 if (format->frame_rate.numerator && format->frame_rate.denominator) {
250 avctx->framerate.num = format->frame_rate.numerator;
251 avctx->framerate.den = format->frame_rate.denominator;
255 && avctx->coded_width == format->coded_width
256 && avctx->coded_height == format->coded_height
259 && ctx->chroma_format == format->chroma_format
260 && ctx->codec_type == format->codec)
274 hwframe_ctx->format != AV_PIX_FMT_CUDA ||
279 av_log(avctx, AV_LOG_DEBUG, "format: %s <-> cuda\n", av_get_pix_fmt_name(hwframe_ctx->format));
286 ctx->chroma_format = format->chroma_format;
288 cuinfo.CodecType = ctx->codec_type = format->codec;
289 cuinfo.ChromaFormat = format->chroma_format;
306 av_log(avctx, AV_LOG_ERROR, "Unsupported output format: %s\n",
315 cuinfo.bitDepthMinus8 = format->bit_depth_luma_minus8;
326 hwframe_ctx->format = AV_PIX_FMT_CUDA;
561 tmp_frame->format = AV_PIX_FMT_CUDA;
977 ctx->cuparse_ext->format.seqhdr_data_length = extradata_size;
1010 seq_pkt.payload_size = ctx->cuparse_ext->format.seqhdr_data_length;
1064 seq_pkt.payload_size = ctx->cuparse_ext->format.seqhdr_data_length;