• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:avctx

53 static int decode_13(AVCodecContext *avctx, DxaDecContext *c, uint8_t* dst,
62 if (12ULL + ((avctx->width * avctx->height) >> 4) + AV_RB32(src + 0) + AV_RB32(src + 4) > srcsize)
66 data = code + ((avctx->width * avctx->height) >> 4);
70 for(j = 0; j < avctx->height; j += 4){
71 for(i = 0; i < avctx->width; i += 4){
81 if (i < -x || avctx->width - i - 4 < x ||
82 j < -y || avctx->height - j - 4 < y) {
83 av_log(avctx, AV_LOG_ERROR, "MV %d %d out of bounds\n", x,y);
143 if (i + 2*(k & 1) < -x || avctx->width - i - 2*(k & 1) - 2 < x ||
144 j + (k & 2) < -y || avctx->height - j - (k & 2) - 2 < y) {
145 av_log(avctx, AV_LOG_ERROR, "MV %d %d out of bounds\n", x,y);
200 av_log(avctx, AV_LOG_ERROR, "Unknown opcode %d\n", type);
210 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
213 DxaDecContext * const c = avctx->priv_data;
232 if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0)
252 av_log(avctx, AV_LOG_ERROR, "Uncompress failed!\n");
258 if (avctx->debug & FF_DEBUG_PICT_INFO)
259 av_log(avctx, AV_LOG_DEBUG, "compr:%2d, dsize:%d\n", compr, (int)dsize);
266 memcpy(frame->data[0], c->prev->data[0], frame->linesize[0] * avctx->height);
268 memset(frame->data[0], 0, frame->linesize[0] * avctx->height);
277 for (j = 0; j < avctx->height; j++) {
278 memcpy(outptr, srcptr, avctx->width);
280 srcptr += avctx->width;
286 av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
287 if (!(avctx->flags2 & CODEC_FLAG2_SHOW_ALL))
292 for (j = 0; j < avctx->height; j++) {
294 for(i = 0; i < avctx->width; i++)
298 memcpy(outptr, srcptr, avctx->width);
300 srcptr += avctx->width;
308 av_log(avctx, AV_LOG_ERROR, "Missing reference frame\n");
311 decode_13(avctx, c, frame->data[0], frame->linesize[0], srcptr, dsize, c->prev->data[0]);
314 av_log(avctx, AV_LOG_ERROR, "Unknown/unsupported compression type %d\n", compr);
328 static av_cold int decode_init(AVCodecContext *avctx)
330 DxaDecContext * const c = avctx->priv_data;
336 avctx->pix_fmt = AV_PIX_FMT_PAL8;
338 c->dsize = avctx->width * avctx->height * 2;
342 av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n");
349 static av_cold int decode_end(AVCodecContext *avctx)
351 DxaDecContext * const c = avctx->priv_data;