MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_decode_exif_attach_buffer

Function ff_decode_exif_attach_buffer

libavcodec/decode.c:2458–2475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2456}
2457
2458int ff_decode_exif_attach_buffer(AVCodecContext *avctx, AVFrame *frame, AVBufferRef **pbuf,
2459 enum AVExifHeaderMode header_mode)
2460{
2461 int ret;
2462 AVBufferRef *data = *pbuf;
2463 AVExifMetadata ifd = { 0 };
2464
2465 ret = av_exif_parse_buffer(avctx, data->data, data->size, &ifd, header_mode);
2466 if (ret < 0)
2467 goto end;
2468
2469 ret = exif_attach_ifd(avctx, frame, &ifd, pbuf);
2470
2471end:
2472 av_buffer_unref(pbuf);
2473 av_exif_free(&ifd);
2474 return ret;
2475}

Callers 2

webp_decode_frameFunction · 0.85
decode_frame_commonFunction · 0.85

Calls 4

av_exif_parse_bufferFunction · 0.85
exif_attach_ifdFunction · 0.85
av_buffer_unrefFunction · 0.85
av_exif_freeFunction · 0.85

Tested by

no test coverage detected