Lines Matching defs:avctx

85     AVCodecContext *avctx;
468 if (!(s->avctx->flags & AV_CODEC_FLAG_GRAY)) {
552 av_log(s->avctx, AV_LOG_ERROR, "invalid MV vlc\n");
852 av_log(s->avctx, AV_LOG_ERROR,
864 av_log(s->avctx, AV_LOG_ERROR, "weird prediction\n");
880 s->avctx, s->top_samples_available,
898 if ((s->intra16x16_pred_mode = ff_h264_check_intra_pred_mode(s->avctx, s->top_samples_available,
900 av_log(s->avctx, AV_LOG_ERROR, "ff_h264_check_intra_pred_mode < 0\n");
928 av_log(s->avctx, AV_LOG_ERROR, "cbp_vlc=%"PRIu32"\n", vlc);
940 av_log(s->avctx, AV_LOG_ERROR, "qscale:%d\n", s->qscale);
948 av_log(s->avctx, AV_LOG_ERROR,
967 av_log(s->avctx, AV_LOG_ERROR,
977 av_log(s->avctx, AV_LOG_ERROR,
989 av_log(s->avctx, AV_LOG_ERROR,
1003 s->chroma_pred_mode = ff_h264_check_intra_pred_mode(s->avctx, s->top_samples_available,
1009 static int svq3_decode_slice_header(AVCodecContext *avctx)
1011 SVQ3Context *s = avctx->priv_data;
1020 av_log(avctx, AV_LOG_ERROR, "unsupported slice header (%02X)\n", header);
1037 av_log(avctx, AV_LOG_ERROR, "slice after bitstream end\n");
1055 av_log(s->avctx, AV_LOG_ERROR, "illegal slice type %u \n", slice_id);
1065 avpriv_report_missing_feature(s->avctx, "Media key encryption");
1117 static av_cold int svq3_decode_init(AVCodecContext *avctx)
1119 SVQ3Context *s = avctx->priv_data;
1142 avctx->bits_per_raw_sample = 8;
1144 ff_hpeldsp_init(&s->hdsp, avctx->flags);
1147 avctx->pix_fmt = AV_PIX_FMT_YUVJ420P;
1148 avctx->color_range = AVCOL_RANGE_JPEG;
1150 s->avctx = avctx;
1156 extradata = (unsigned char *)avctx->extradata;
1157 extradata_end = avctx->extradata + avctx->extradata_size;
1159 for (m = 0; m + 8 < avctx->extradata_size; m++) {
1216 ret = ff_set_dimensions(avctx, w, h);
1234 av_log(avctx, AV_LOG_DEBUG, "Unknown fields %d %d %d %d %d\n",
1241 avctx->has_b_frames = !s->low_delay;
1263 av_log(avctx, AV_LOG_DEBUG, "watermark size: %ux%u\n",
1265 av_log(avctx, AV_LOG_DEBUG,
1270 av_log(avctx, AV_LOG_ERROR,
1278 av_log(avctx, AV_LOG_DEBUG,
1282 av_log(avctx, AV_LOG_ERROR,
1289 s->mb_width = (avctx->width + 15) / 16;
1290 s->mb_height = (avctx->height + 15) / 16;
1329 static int get_buffer(AVCodecContext *avctx, SVQ3Frame *pic)
1331 SVQ3Context *s = avctx->priv_data;
1356 ret = ff_get_buffer(avctx, pic->f,
1374 static int svq3_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
1377 SVQ3Context *s = avctx->priv_data;
1400 if (svq3_decode_slice_header(avctx))
1414 ret = get_buffer(avctx, s->cur_pic);
1431 av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
1433 ret = get_buffer(avctx, s->last_pic);
1436 memset(s->last_pic->f->data[0], 0, avctx->height * s->last_pic->f->linesize[0]);
1437 memset(s->last_pic->f->data[1], 0x80, (avctx->height / 2) *
1439 memset(s->last_pic->f->data[2], 0x80, (avctx->height / 2) *
1444 av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
1446 ret = get_buffer(avctx, s->next_pic);
1449 memset(s->next_pic->f->data[0], 0, avctx->height * s->next_pic->f->linesize[0]);
1450 memset(s->next_pic->f->data[1], 0x80, (avctx->height / 2) *
1452 memset(s->next_pic->f->data[2], 0x80, (avctx->height / 2) *
1457 if (avctx->debug & FF_DEBUG_PICT_INFO)
1458 av_log(s->avctx, AV_LOG_DEBUG,
1464 if (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type == AV_PICTURE_TYPE_B ||
1465 avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type != AV_PICTURE_TYPE_I ||
1466 avctx->skip_frame >= AVDISCARD_ALL)
1476 av_log(s->avctx, AV_LOG_ERROR, "error in B-frame picture id\n");
1508 if (svq3_decode_slice_header(avctx))
1512 avpriv_request_sample(avctx, "non constant slice type");
1524 av_log(s->avctx, AV_LOG_ERROR,
1537 ff_draw_horiz_band(avctx, s->cur_pic->f,
1546 av_log(avctx, AV_LOG_INFO, "frame num %d incomplete pic x %d y %d left %d\n", avctx->frame_number, s->mb_y, s->mb_x, left);
1551 av_log(avctx, AV_LOG_ERROR, "frame num %d left %d\n", avctx->frame_number, left);
1575 static av_cold int svq3_decode_end(AVCodecContext *avctx)
1577 SVQ3Context *s = avctx->priv_data;