• 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

115 static av_cold int escape130_decode_init(AVCodecContext *avctx)
117 Escape130Context *s = avctx->priv_data;
118 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
120 if ((avctx->width & 1) || (avctx->height & 1)) {
121 av_log(avctx, AV_LOG_ERROR,
126 s->old_y_avg = av_malloc(avctx->width * avctx->height / 4);
127 s->buf1 = av_malloc(avctx->width * avctx->height * 3 / 2);
128 s->buf2 = av_malloc(avctx->width * avctx->height * 3 / 2);
133 av_log(avctx, AV_LOG_ERROR, "Could not allocate buffer.\n");
137 s->linesize[0] = avctx->width;
139 s->linesize[2] = avctx->width / 2;
142 s->new_u = s->new_y + avctx->width * avctx->height;
143 s->new_v = s->new_u + avctx->width * avctx->height / 4;
145 s->old_u = s->old_y + avctx->width * avctx->height;
146 s->old_v = s->old_u + avctx->width * avctx->height / 4;
147 memset(s->old_y, 0, avctx->width * avctx->height);
148 memset(s->old_u, 0x10, avctx->width * avctx->height / 4);
149 memset(s->old_v, 0x10, avctx->width * avctx->height / 4);
154 static av_cold int escape130_decode_close(AVCodecContext *avctx)
156 Escape130Context *s = avctx->priv_data;
191 static int escape130_decode_frame(AVCodecContext *avctx, void *data,
195 Escape130Context *s = avctx->priv_data;
205 unsigned total_blocks = avctx->width * avctx->height / 4,
213 av_log(avctx, AV_LOG_ERROR, "Insufficient frame data\n");
217 if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
243 av_log(avctx, AV_LOG_ERROR, "Error decoding skip value\n");
302 if (block_x * 2 == avctx->width) {
304 old_y += old_y_stride * 2 - avctx->width;
305 old_cb += old_cb_stride - avctx->width / 2;
306 old_cr += old_cr_stride - avctx->width / 2;
307 new_y += new_y_stride * 2 - avctx->width;
308 new_cb += new_cb_stride - avctx->width / 2;
309 new_cr += new_cr_stride - avctx->width / 2;
321 for (j = 0; j < avctx->height; j++) {
322 for (i = 0; i < avctx->width; i++)
327 for (j = 0; j < avctx->height / 2; j++) {
328 for (i = 0; i < avctx->width / 2; i++) {
338 av_dlog(avctx, "Frame data: provided %d bytes, used %d bytes\n",