Lines Matching refs:cctx

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