• Home
  • Raw
  • Download

Lines Matching refs:cctx

424     decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;  in get_metadata()  local
443 if (did == 0x43 && (sdid == 0x02 || sdid == 0x03) && cctx->teletext_lines && in get_metadata()
449 … tgt = teletext_data_unit_from_ancillary_packet(buf + 3, buf + len, tgt, cctx->teletext_lines, 1); in get_metadata()
715 decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in decklink_input_callback() local
716 ctx = (struct decklink_ctx *)cctx->ctx; in decklink_input_callback()
846 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; in VideoInputFrameArrived() local
858 if (0 == ctx->frameCount && cctx->timestamp_align) { in VideoInputFrameArrived()
859 AVRational remainder = av_make_q(av_gettime() % cctx->timestamp_align, 1000000); in VideoInputFrameArrived()
955 if (ctx->tc_format && cctx->wait_for_tc && !ctx->tc_seen) { in VideoInputFrameArrived()
963 … abs_wallclock, ctx->video_pts_source, ctx->video_st->time_base, &initial_video_pts, cctx->copyts); in VideoInputFrameArrived()
1066 … abs_wallclock, ctx->audio_pts_source, ctx->audio_st->time_base, &initial_audio_pts, cctx->copyts); in VideoInputFrameArrived()
1086 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; in VideoInputFormatChanged() local
1089 if (!cctx->raw_format) in VideoInputFormatChanged()
1094 static int decklink_autodetect(struct decklink_cctx *cctx) { in decklink_autodetect() argument
1095 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in decklink_autodetect()
1131 cctx->format_code = (char *)av_mallocz(5); in decklink_autodetect()
1132 if (!cctx->format_code) in decklink_autodetect()
1134 AV_WB32(cctx->format_code, ctx->bmd_mode); in decklink_autodetect()
1146 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in ff_decklink_read_close() local
1147 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in ff_decklink_read_close()
1158 av_freep(&cctx->ctx); in ff_decklink_read_close()
1165 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in ff_decklink_read_header() local
1176 ctx->list_devices = cctx->list_devices; in ff_decklink_read_header()
1177 ctx->list_formats = cctx->list_formats; in ff_decklink_read_header()
1178 ctx->enable_klv = cctx->enable_klv; in ff_decklink_read_header()
1179 ctx->teletext_lines = cctx->teletext_lines; in ff_decklink_read_header()
1180 ctx->preroll = cctx->preroll; in ff_decklink_read_header()
1181 ctx->duplex_mode = cctx->duplex_mode; in ff_decklink_read_header()
1182 …if (cctx->tc_format > 0 && (unsigned int)cctx->tc_format < FF_ARRAY_ELEMS(decklink_timecode_format… in ff_decklink_read_header()
1183 ctx->tc_format = decklink_timecode_format_map[cctx->tc_format]; in ff_decklink_read_header()
1184 …if (cctx->video_input > 0 && (unsigned int)cctx->video_input < FF_ARRAY_ELEMS(decklink_video_conne… in ff_decklink_read_header()
1185 ctx->video_input = decklink_video_connection_map[cctx->video_input]; in ff_decklink_read_header()
1186 …if (cctx->audio_input > 0 && (unsigned int)cctx->audio_input < FF_ARRAY_ELEMS(decklink_audio_conne… in ff_decklink_read_header()
1187 ctx->audio_input = decklink_audio_connection_map[cctx->audio_input]; in ff_decklink_read_header()
1188 ctx->audio_pts_source = cctx->audio_pts_source; in ff_decklink_read_header()
1189 ctx->video_pts_source = cctx->video_pts_source; in ff_decklink_read_header()
1190 ctx->draw_bars = cctx->draw_bars; in ff_decklink_read_header()
1191 ctx->audio_depth = cctx->audio_depth; in ff_decklink_read_header()
1192 …if (cctx->raw_format > 0 && (unsigned int)cctx->raw_format < FF_ARRAY_ELEMS(decklink_raw_format_ma… in ff_decklink_read_header()
1193 ctx->raw_format = decklink_raw_format_map[cctx->raw_format]; in ff_decklink_read_header()
1194 cctx->ctx = ctx; in ff_decklink_read_header()
1197 switch (cctx->audio_channels) { in ff_decklink_read_header()
1208 switch (cctx->audio_depth) { in ff_decklink_read_header()
1264 if (!cctx->format_code) { in ff_decklink_read_header()
1265 if (decklink_autodetect(cctx) < 0) { in ff_decklink_read_header()
1276 cctx->format_code ? cctx->format_code : "(unset)", avctx->url); in ff_decklink_read_header()
1297 …st->codecpar->codec_id = cctx->audio_depth == 32 ? AV_CODEC_ID_PCM_S32LE : AV_CODEC_ID_PCM_S16L… in ff_decklink_read_header()
1299 st->codecpar->ch_layout.nb_channels = cctx->audio_channels; in ff_decklink_read_header()
1396 …result = ctx->dli->EnableAudioInput(bmdAudioSampleRate48kHz, cctx->audio_depth == 32 ? bmdAudioSam… in ff_decklink_read_header()
1431 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; in ff_decklink_read_packet() local
1432 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; in ff_decklink_read_packet()