Lines Matching refs:codec
64 if (!(avctx->codec->capabilities & AV_CODEC_CAP_PARAM_CHANGE)) {
173 const FFCodec *const codec = ffcodec(avctx->codec);
179 ret = av_bsf_list_parse_str(codec->bsfs, &avci->bsf);
181 av_log(avctx, AV_LOG_ERROR, "Error parsing decoder bitstream filters '%s': %s\n", codec->bsfs, av_err2str(ret));
219 if (!(ffcodec(avctx->codec)->caps_internal & FF_CODEC_CAP_SETS_FRAME_PROPS)) {
281 const FFCodec *const codec = ffcodec(avctx->codec);
298 !(avctx->codec->capabilities & AV_CODEC_CAP_DELAY ||
307 ret = codec->cb.decode(avctx, frame, &got_frame, pkt);
309 if (!(codec->caps_internal & FF_CODEC_CAP_SETS_PKT_DTS))
311 if (avctx->codec->type == AVMEDIA_TYPE_VIDEO) {
316 if (!(avctx->codec->capabilities & AV_CODEC_CAP_DR1)) {
327 if (avctx->codec->type == AVMEDIA_TYPE_VIDEO) {
330 } else if (avctx->codec->type == AVMEDIA_TYPE_AUDIO) {
442 if (avctx->codec->type == AVMEDIA_TYPE_AUDIO &&
444 ret >= 0 && ret != pkt->size && !(avctx->codec->capabilities & AV_CODEC_CAP_SUBFRAMES)) {
453 if (ret >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO && !(avctx->flags & AV_CODEC_FLAG_TRUNCATED))
455 if (ret >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO)
494 if (!(codec->caps_internal & FF_CODEC_CAP_SETS_FRAME_PROPS)) {
526 const FFCodec *const codec = ffcodec(avctx->codec);
531 if (codec->cb_type == FF_CODEC_CB_TYPE_RECEIVE_FRAME) {
532 ret = codec->cb.receive_frame(avctx, frame);
541 if (!(codec->caps_internal & FF_CODEC_CAP_SETS_FRAME_PROPS) &&
555 !(avctx->codec->capabilities & AV_CODEC_CAP_DR1));
581 if (!avcodec_is_open(avctx) || !av_codec_is_decoder(avctx->codec))
646 if (!avcodec_is_open(avctx) || !av_codec_is_decoder(avctx->codec))
826 if (!avctx->codec)
828 if (avctx->codec->type != AVMEDIA_TYPE_SUBTITLE) {
836 if ((avctx->codec->capabilities & AV_CODEC_CAP_DELAY) || avpkt->size) {
847 ret = ffcodec(avctx->codec)->cb.decode_sub(avctx, sub, got_sub_ptr, pkt);
895 // If a device was supplied when the codec was opened, assume that the
897 if (avctx->hw_device_ctx && ffcodec(avctx->codec)->hw_configs) {
901 config = &ffcodec(avctx->codec)->hw_configs[i]->public;
930 config = avcodec_get_hw_config(avctx->codec, i);
1013 hw_config = ffcodec(avctx->codec)->hw_configs[i];
1157 if (ffcodec(avctx->codec)->hw_configs) {
1159 hw_config = ffcodec(avctx->codec)->hw_configs[i];
1267 if (!(ffcodec(avctx->codec)->caps_internal & FF_CODEC_CAP_SETS_FRAME_PROPS)) {
1307 switch (avctx->codec->type) {
1409 av_assert0(av_codec_is_decoder(avctx->codec));
1470 !(ffcodec(avctx->codec)->caps_internal & FF_CODEC_CAP_EXPORTS_CROPPING)) {
1552 !(avctx->codec->capabilities & AV_CODEC_CAP_CHANNEL_CONF)) {
1556 if (avctx->codec->max_lowres < avctx->lowres || avctx->lowres < 0) {
1558 avctx->codec->max_lowres);
1559 avctx->lowres = avctx->codec->max_lowres;
1573 * codec at this point */
1590 "for this codec\n");