Lines Matching defs:avctx

34 static uint32_t read_offs(AVCodecContext *avctx, GetBitContext *gb, uint32_t size, const char *err_msg){
37 av_log(avctx, AV_LOG_WARNING, err_msg, offs, size);
43 static int mjpegb_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
48 MJpegDecodeContext *s = avctx->priv_data;
75 av_log(avctx, AV_LOG_WARNING, "not mjpeg-b (bad fourcc)\n");
80 av_log(avctx, AV_LOG_DEBUG, "field size: 0x%"PRIx32"\n", field_size);
82 second_field_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "second_field_offs is %d and size is %d\n");
83 av_log(avctx, AV_LOG_DEBUG, "second field offs: 0x%"PRIx32"\n",
86 dqt_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "dqt is %d and size is %d\n");
87 av_log(avctx, AV_LOG_DEBUG, "dqt offs: 0x%"PRIx32"\n", dqt_offs);
92 if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE))
96 dht_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "dht is %d and size is %d\n");
97 av_log(avctx, AV_LOG_DEBUG, "dht offs: 0x%"PRIx32"\n", dht_offs);
104 sof_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "sof is %d and size is %d\n");
105 av_log(avctx, AV_LOG_DEBUG, "sof offs: 0x%"PRIx32"\n", sof_offs);
113 sos_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "sos is %d and size is %d\n");
114 av_log(avctx, AV_LOG_DEBUG, "sos offs: 0x%"PRIx32"\n", sos_offs);
115 sod_offs = read_offs(avctx, &hgb, buf_end - buf_ptr, "sof is %d and size is %d\n");
116 av_log(avctx, AV_LOG_DEBUG, "sod offs: 0x%"PRIx32"\n", sod_offs);
122 if (avctx->skip_frame == AVDISCARD_ALL) {
126 if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE))
143 av_log(avctx, AV_LOG_WARNING, "no picture\n");
151 if (!s->lossless && avctx->debug & FF_DEBUG_QP) {
152 av_log(avctx, AV_LOG_DEBUG, "QP: %d\n",