Lines Matching defs:avctx
114 static int xsub_encode(AVCodecContext *avctx, unsigned char *buf,
127 av_log(avctx, AV_LOG_ERROR, "Buffer too small for XSUB header.\n");
133 av_log(avctx, AV_LOG_WARNING, "Only single rects supported (%d in subtitle.)\n", h->num_rects);
137 av_log(avctx, AV_LOG_WARNING, "No subtitle bitmap available.\n");
143 av_log(avctx, AV_LOG_WARNING, "No more than 4 subtitle colors supported (%d found.)\n", h->rects[0]->nb_colors);
147 av_log(avctx, AV_LOG_WARNING, "Color index 0 is not transparent. Transparency will be messed up.\n");
150 av_log(avctx, AV_LOG_WARNING, "Time code >= 100 hours.\n");
204 static av_cold int xsub_encoder_init(AVCodecContext *avctx)
206 if (!avctx->codec_tag)
207 avctx->codec_tag = MKTAG('D','X','S','B');
209 avctx->bits_per_coded_sample = 4;