• 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

101 static void flush_cache(AVCodecContext *avctx)
103 PGSSubContext *ctx = avctx->priv_data;
137 static av_cold int init_decoder(AVCodecContext *avctx)
139 avctx->pix_fmt = AV_PIX_FMT_PAL8;
144 static av_cold int close_decoder(AVCodecContext *avctx)
146 flush_cache(avctx);
156 * @param avctx contains the current codec context
161 static int decode_rle(AVCodecContext *avctx, AVSubtitleRect *rect,
201 av_log(avctx, AV_LOG_ERROR, "Decoded %d pixels, when line should be %d pixels\n",
203 if (avctx->err_recognition & AV_EF_EXPLODE) {
212 av_log(avctx, AV_LOG_ERROR, "Insufficient RLE data for subtitle\n");
216 av_dlog(avctx, "Pixel Count = %d, Area = %d\n", pixel_count, rect->w * rect->h);
227 * @param avctx contains the current codec context
231 static int parse_object_segment(AVCodecContext *avctx,
234 PGSSubContext *ctx = avctx->priv_data;
249 av_log(avctx, AV_LOG_ERROR, "Too many objects in epoch\n");
286 if (avctx->width < width || avctx->height < height) {
287 av_log(avctx, AV_LOG_ERROR, "Bitmap dimensions larger than video.\n");
292 av_log(avctx, AV_LOG_ERROR, "too much RLE data\n");
317 * @param avctx contains the current codec context
321 static int parse_palette_segment(AVCodecContext *avctx,
324 PGSSubContext *ctx = avctx->priv_data;
338 av_log(avctx, AV_LOG_ERROR, "Too many palettes in epoch\n");
358 av_dlog(avctx, "Color %d := (%d,%d,%d,%d)\n", color_id, r, g, b, alpha);
372 * @param avctx contains the current codec context
377 static int parse_presentation_segment(AVCodecContext *avctx,
381 PGSSubContext *ctx = avctx->priv_data;
391 av_dlog(avctx, "Video Dimensions %dx%d\n",
393 ret = ff_set_dimensions(avctx, w, h);
413 flush_cache(avctx);
423 av_log(avctx, AV_LOG_ERROR,
427 if (avctx->err_recognition & AV_EF_EXPLODE) {
437 av_log(avctx, AV_LOG_ERROR, "Insufficent space for object\n");
457 av_dlog(avctx, "Subtitle Placement x=%d, y=%d\n",
460 if (ctx->presentation.objects[i].x > avctx->width ||
461 ctx->presentation.objects[i].y > avctx->height) {
462 av_log(avctx, AV_LOG_ERROR, "Subtitle out of video bounds. x = %d, y = %d, video width = %d, video height = %d.\n",
465 avctx->width, avctx->height);
468 if (avctx->err_recognition & AV_EF_EXPLODE) {
482 * @param avctx contains the current codec context
487 static int display_end_segment(AVCodecContext *avctx, void *data,
491 PGSSubContext *ctx = avctx->priv_data;
517 av_log(avctx, AV_LOG_ERROR, "Invalid palette id %d\n",
537 av_log(avctx, AV_LOG_ERROR, "Invalid object id %d\n",
539 if (avctx->err_recognition & AV_EF_EXPLODE) {
558 av_log(avctx, AV_LOG_ERROR, "RLE data length %u is %u bytes shorter than expected\n",
560 if (avctx->err_recognition & AV_EF_EXPLODE) {
565 ret = decode_rle(avctx, sub->rects[i], object->rle, object->rle_data_len);
567 if ((avctx->err_recognition & AV_EF_EXPLODE) ||
592 static int decode(AVCodecContext *avctx, void *data, int *data_size,
603 av_dlog(avctx, "PGS sub packet:\n");
606 av_dlog(avctx, "%02x ", buf[i]);
608 av_dlog(avctx, "\n");
612 av_dlog(avctx, "\n");
627 av_dlog(avctx, "Segment Length %d, Segment Type %x\n", segment_length, segment_type);
635 ret = parse_palette_segment(avctx, buf, segment_length);
638 ret = parse_object_segment(avctx, buf, segment_length);
641 ret = parse_presentation_segment(avctx, buf, segment_length, ((AVSubtitle*)(data))->pts);
654 ret = display_end_segment(avctx, data, buf, segment_length);
659 av_log(avctx, AV_LOG_ERROR, "Unknown subtitle segment type 0x%x, length %d\n",
664 if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE))