History

lavu/videotoolbox: expose routine to set CVPixelBufferRef metadata

rcombs committed 4 years ago

Commit b7e1ec71 parent 69bd95d4 files · +17 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavutil/hwcontext_videotoolbox.c +6 −0
  3. libavutil/hwcontext_videotoolbox.h +7 −0
  4. libavutil/version.h +1 −1
doc/APIchanges+3−0
@@ -14,6 +14,9 @@ libavutil: 2021-04-27 · 13 unmodified lines
14 14
15API changes, most recent first:15API changes, most recent first:
16 16
172021-12-xx - xxxxxxxxxx - lavu 57.13.100 - hwcontext_videotoolbox.h
18 Add av_vt_pixbuf_set_attachments
19
172021-12-xx - xxxxxxxxxx - lavu 57.13.100 - hwcontext_videotoolbox.h202021-12-xx - xxxxxxxxxx - lavu 57.13.100 - hwcontext_videotoolbox.h
18 Add av_map_videotoolbox_chroma_loc_from_av21 Add av_map_videotoolbox_chroma_loc_from_av
19 Add av_map_videotoolbox_color_matrix_from_av22 Add av_map_videotoolbox_color_matrix_from_av
libavutil/hwcontext_videotoolbox.c+6−0
@@ -571,6 +571,12 @@ static int vt_pixbuf_set_attachments(void *log_ctx, · 570 unmodified lines
571 return 0;571 return 0;
572}572}
573 573
574int av_vt_pixbuf_set_attachments(void *log_ctx,
575 CVPixelBufferRef pixbuf, const AVFrame *src)
576{
577 return vt_pixbuf_set_attachments(log_ctx, pixbuf, src);
578}
579
574static int vt_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src,580static int vt_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src,
575 int flags)581 int flags)
576{582{
libavutil/hwcontext_videotoolbox.h+7−0
@@ -85,4 +85,11 @@ CFStringRef av_map_videotoolbox_color_primaries_from_av(enum AVColorPrimaries pr · 84 unmodified lines
85 */85 */
86CFStringRef av_map_videotoolbox_color_trc_from_av(enum AVColorTransferCharacteristic trc);86CFStringRef av_map_videotoolbox_color_trc_from_av(enum AVColorTransferCharacteristic trc);
87 87
88/**
89 * Update a CVPixelBufferRef's metadata to based on an AVFrame.
90 * Returns 0 if no known equivalent was found.
91 */
92int av_vt_pixbuf_set_attachments(void *log_ctx,
93 CVPixelBufferRef pixbuf, const struct AVFrame *src);
94
88#endif /* AVUTIL_HWCONTEXT_VIDEOTOOLBOX_H */95#endif /* AVUTIL_HWCONTEXT_VIDEOTOOLBOX_H */
libavutil/version.h+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
79 */79 */
80 80
81#define LIBAVUTIL_VERSION_MAJOR 5781#define LIBAVUTIL_VERSION_MAJOR 57
82#define LIBAVUTIL_VERSION_MINOR 1282#define LIBAVUTIL_VERSION_MINOR 13
83#define LIBAVUTIL_VERSION_MICRO 10083#define LIBAVUTIL_VERSION_MICRO 100
84 84
85#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \85#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t