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
1414
1515 API changes, most recent first:
1616
17+2021-12-xx - xxxxxxxxxx - lavu 57.13.100 - hwcontext_videotoolbox.h
18+ Add av_vt_pixbuf_set_attachments
19+
1720 2021-12-xx - xxxxxxxxxx - lavu 57.13.100 - hwcontext_videotoolbox.h
1821 Add av_map_videotoolbox_chroma_loc_from_av
1922 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
571571 return 0;
572572 }
573573
574+int 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+
574580 static int vt_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src,
575581 int flags)
576582 {
libavutil/hwcontext_videotoolbox.h+7−0
@@ -85,4 +85,11 @@ CFStringRef av_map_videotoolbox_color_primaries_from_av(enum AVColorPrimaries pr · 84 unmodified lines
8585 */
8686 CFStringRef av_map_videotoolbox_color_trc_from_av(enum AVColorTransferCharacteristic trc);
8787
88+/**
89+ * Update a CVPixelBufferRef's metadata to based on an AVFrame.
90+ * Returns 0 if no known equivalent was found.
91+ */
92+int av_vt_pixbuf_set_attachments(void *log_ctx,
93+ CVPixelBufferRef pixbuf, const struct AVFrame *src);
94+
8895 #endif /* AVUTIL_HWCONTEXT_VIDEOTOOLBOX_H */
libavutil/version.h+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
7979 */
8080
8181 #define LIBAVUTIL_VERSION_MAJOR 57
82−#define LIBAVUTIL_VERSION_MINOR 12
82+#define LIBAVUTIL_VERSION_MINOR 13
8383 #define LIBAVUTIL_VERSION_MICRO 100
8484
8585 #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