• 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

65 static void unpack_intraframe(AVCodecContext *avctx, uint8_t *src,
68 Hnm4VideoContext *hnm = avctx->priv_data;
80 av_log(avctx, AV_LOG_ERROR,
102 av_log(avctx, AV_LOG_ERROR, "Attempting to read out of bounds\n");
105 av_log(avctx, AV_LOG_ERROR,
116 static void postprocess_current_frame(AVCodecContext *avctx)
118 Hnm4VideoContext *hnm = avctx->priv_data;
131 static void copy_processed_frame(AVCodecContext *avctx, AVFrame *frame)
133 Hnm4VideoContext *hnm = avctx->priv_data;
145 static void decode_interframe_v4(AVCodecContext *avctx, uint8_t *src, uint32_t size)
147 Hnm4VideoContext *hnm = avctx->priv_data;
163 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
177 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
189 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
205 av_log(avctx, AV_LOG_ERROR, "Attempting to read out of bounds\n");
208 av_log(avctx, AV_LOG_ERROR, "Attempting to read out of bounds\n");
211 av_log(avctx, AV_LOG_ERROR,
217 av_log(avctx, AV_LOG_ERROR, "Attempting to read out of bounds\n");
222 av_log(avctx, AV_LOG_ERROR, "Attempting to read out of bounds\n");
272 static void decode_interframe_v4a(AVCodecContext *avctx, uint8_t *src,
275 Hnm4VideoContext *hnm = avctx->priv_data;
291 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
303 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
316 av_log(avctx, AV_LOG_ERROR, "Attempting to read out of bounds\n");
323 av_log(avctx, AV_LOG_ERROR, "Attempting to read out of bounds\n");
326 av_log(avctx, AV_LOG_ERROR, "Attempting to write out of bounds\n");
351 static void hnm_update_palette(AVCodecContext *avctx, uint8_t *src,
354 Hnm4VideoContext *hnm = avctx->priv_data;
392 static int hnm_decode_frame(AVCodecContext *avctx, void *data,
396 Hnm4VideoContext *hnm = avctx->priv_data;
401 av_log(avctx, AV_LOG_ERROR, "packet too small\n");
408 hnm_update_palette(avctx, avpkt->data, avpkt->size);
411 av_log(avctx, AV_LOG_ERROR, "packet too small\n");
414 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
417 unpack_intraframe(avctx, avpkt->data + 12, avpkt->size - 12);
422 postprocess_current_frame(avctx);
423 copy_processed_frame(avctx, frame);
429 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
433 decode_interframe_v4a(avctx, avpkt->data + 8, avpkt->size - 8);
436 decode_interframe_v4(avctx, avpkt->data + 8, avpkt->size - 8);
437 postprocess_current_frame(avctx);
439 copy_processed_frame(avctx, frame);
446 av_log(avctx, AV_LOG_ERROR, "invalid chunk id: %d\n", chunk_id);
453 static av_cold int hnm_decode_init(AVCodecContext *avctx)
455 Hnm4VideoContext *hnm = avctx->priv_data;
457 if (avctx->extradata_size < 1) {
458 av_log(avctx, AV_LOG_ERROR,
463 hnm->version = avctx->extradata[0];
464 avctx->pix_fmt = AV_PIX_FMT_PAL8;
465 hnm->width = avctx->width;
466 hnm->height = avctx->height;
467 hnm->buffer1 = av_mallocz(avctx->width * avctx->height);
468 hnm->buffer2 = av_mallocz(avctx->width * avctx->height);
469 hnm->processed = av_mallocz(avctx->width * avctx->height);
472 || avctx->width * avctx->height == 0
473 || avctx->height % 2) {
474 av_log(avctx, AV_LOG_ERROR, "av_mallocz() failed\n");
487 static av_cold int hnm_decode_end(AVCodecContext *avctx)
489 Hnm4VideoContext *hnm = avctx->priv_data;