Lines Matching defs:avctx

365                 av_log(s->avctx, AV_LOG_ERROR, "Need DQUANT\n");
703 if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME)) {
885 if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME))
1416 av_log(s->avctx, AV_LOG_ERROR, "Incorrect or unknown slice header\n");
1422 av_log(s->avctx, AV_LOG_ERROR, "Slice type mismatch\n");
1426 av_log(s->avctx, AV_LOG_ERROR, "Size mismatch\n");
1437 av_log(s->avctx, AV_LOG_ERROR, "Slice indicates MB offset %d, got %d\n", r->si.start, mb_pos);
1469 if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME))
1488 av_cold int ff_rv34_decode_init(AVCodecContext *avctx)
1491 RV34DecContext *r = avctx->priv_data;
1495 ff_mpv_decode_init(s, avctx);
1498 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
1499 avctx->has_b_frames = 1;
1550 static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n, int slice_count, int buf_size)
1553 if(avctx->slice_count) return avctx->slice_offset[n];
1559 static int finish_frame(AVCodecContext *avctx, AVFrame *pict)
1561 RV34DecContext *r = avctx->priv_data;
1569 if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME))
1599 int ff_rv34_decode_frame(AVCodecContext *avctx, AVFrame *pict,
1604 RV34DecContext *r = avctx->priv_data;
1627 if(!avctx->slice_count){
1633 slice_count = avctx->slice_count;
1635 offset = get_slice_offset(avctx, slices_hdr, 0, slice_count, buf_size);
1638 av_log(avctx, AV_LOG_ERROR, "Slice offset is invalid\n");
1643 av_log(avctx, AV_LOG_ERROR, "First slice header is incorrect\n");
1648 av_log(avctx, AV_LOG_ERROR, "Invalid decoder state: B-frame without "
1652 if( (avctx->skip_frame >= AVDISCARD_NONREF && si.type==AV_PICTURE_TYPE_B)
1653 || (avctx->skip_frame >= AVDISCARD_NONKEY && si.type!=AV_PICTURE_TYPE_I)
1654 || avctx->skip_frame >= AVDISCARD_ALL)
1660 av_log(avctx, AV_LOG_ERROR, "New frame but still %d MB left.\n",
1670 av_log(s->avctx, AV_LOG_WARNING, "Changing dimensions to %dx%d\n",
1673 if (av_image_check_size(si.width, si.height, 0, s->avctx))
1676 s->avctx->sample_aspect_ratio = update_sar(
1677 s->width, s->height, s->avctx->sample_aspect_ratio,
1682 err = ff_set_dimensions(s->avctx, s->width, s->height);
1693 if (ff_mpv_frame_start(s, s->avctx) < 0)
1722 av_log(avctx, AV_LOG_TRACE, "distance overflow\n");
1738 ff_thread_finish_setup(s->avctx);
1740 av_log(s->avctx, AV_LOG_ERROR, "Decoder needs full frames to "
1744 (s->avctx->active_thread_type & FF_THREAD_FRAME)) {
1745 av_log(s->avctx, AV_LOG_ERROR, "Decoder needs full frames in frame "
1751 int offset = get_slice_offset(avctx, slices_hdr, i , slice_count, buf_size);
1752 int offset1 = get_slice_offset(avctx, slices_hdr, i+1, slice_count, buf_size);
1756 av_log(avctx, AV_LOG_ERROR, "Slice offset is invalid\n");
1765 int offset2 = get_slice_offset(avctx, slices_hdr, i+2, slice_count, buf_size);
1767 av_log(avctx, AV_LOG_ERROR, "Slice offset is invalid\n");
1787 ret = finish_frame(avctx, pict);
1792 (s->avctx->active_thread_type & FF_THREAD_FRAME)) {
1793 av_log(avctx, AV_LOG_INFO, "marking unfished frame as finished\n");
1807 av_cold int ff_rv34_decode_end(AVCodecContext *avctx)
1809 RV34DecContext *r = avctx->priv_data;