mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
lavc/exif: Make EXIF IFD decoding part of private API/ABI.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7a5537fd3f
commit
8c161d7884
@ -80,7 +80,7 @@ static int exif_decode_tag(AVCodecContext *avctx, GetByteContext *gbytes, int le
|
||||
// store metadata or proceed with next IFD
|
||||
ret = ff_tis_ifd(id);
|
||||
if (ret) {
|
||||
ret = ff_exif_decode_ifd(avctx, gbytes, le, depth + 1, metadata);
|
||||
ret = avpriv_exif_decode_ifd(avctx, gbytes, le, depth + 1, metadata);
|
||||
} else {
|
||||
const char *name = exif_get_tag_name(id);
|
||||
char *use_name = (char*) name;
|
||||
@ -107,7 +107,7 @@ static int exif_decode_tag(AVCodecContext *avctx, GetByteContext *gbytes, int le
|
||||
}
|
||||
|
||||
|
||||
int ff_exif_decode_ifd(AVCodecContext *avctx, GetByteContext *gbytes, int le,
|
||||
int avpriv_exif_decode_ifd(AVCodecContext *avctx, GetByteContext *gbytes, int le,
|
||||
int depth, AVDictionary **metadata)
|
||||
{
|
||||
int i, ret;
|
||||
|
@ -164,7 +164,7 @@ static const struct exif_tag tag_list[] = { // JEITA CP-3451 EXIF specification:
|
||||
|
||||
/** Recursively decodes all IFD's and
|
||||
* adds included TAGS into the metadata dictionary. */
|
||||
int ff_exif_decode_ifd(AVCodecContext *avctx, GetByteContext *gbytes, int le,
|
||||
int avpriv_exif_decode_ifd(AVCodecContext *avctx, GetByteContext *gbytes, int le,
|
||||
int depth, AVDictionary **metadata);
|
||||
|
||||
#endif /* AVCODEC_EXIF_H */
|
||||
|
@ -1672,7 +1672,7 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
|
||||
|
||||
// read 0th IFD and store the metadata
|
||||
// (return values > 0 indicate the presence of subimage metadata)
|
||||
ret = ff_exif_decode_ifd(s->avctx, &gbytes, le, 0, &s->exif_metadata);
|
||||
ret = avpriv_exif_decode_ifd(s->avctx, &gbytes, le, 0, &s->exif_metadata);
|
||||
if (ret < 0) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "mjpeg: error decoding EXIF data\n");
|
||||
return ret;
|
||||
|
@ -29,8 +29,8 @@
|
||||
#include "libavutil/version.h"
|
||||
|
||||
#define LIBAVCODEC_VERSION_MAJOR 55
|
||||
#define LIBAVCODEC_VERSION_MINOR 56
|
||||
#define LIBAVCODEC_VERSION_MICRO 108
|
||||
#define LIBAVCODEC_VERSION_MINOR 57
|
||||
#define LIBAVCODEC_VERSION_MICRO 100
|
||||
|
||||
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
||||
LIBAVCODEC_VERSION_MINOR, \
|
||||
|
@ -1449,7 +1449,7 @@ static int webp_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
||||
}
|
||||
|
||||
bytestream2_seek(&exif_gb, ifd_offset, SEEK_SET);
|
||||
if (ff_exif_decode_ifd(avctx, &exif_gb, le, 0, &s->exif_metadata) < 0) {
|
||||
if (avpriv_exif_decode_ifd(avctx, &exif_gb, le, 0, &s->exif_metadata) < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "error decoding Exif data\n");
|
||||
goto exif_end;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user