- Provided AVOutputFormat structure describing APV output format (ff_apv_muxer)
- Added documentation for APV muxer

Signed-off-by: Dawid Kozinski <d.kozin...@samsung.com>
---
 doc/muxers.texi          |  3 +++
 libavformat/Makefile     |  1 +
 libavformat/allformats.c |  1 +
 libavformat/rawenc.c     | 14 ++++++++++++++
 4 files changed, 19 insertions(+)

diff --git a/doc/muxers.texi b/doc/muxers.texi
index 04b7f20b7e..46a4da6056 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -48,6 +48,9 @@ aptX (Audio Processing Technology for Bluetooth)
 @item aptx_hd @emph{audio} (aptxdh)
 aptX HD (Audio Processing Technology for Bluetooth) audio
 
+@item apv @emph{video} (apv)
+Advanced Professional Video / APV
+
 @item avs2 @emph{video} (avs, avs2)
 AVS2-P2 (Audio Video Standard - Second generation - Part 2) /
 IEEE 1857.4 video
diff --git a/libavformat/Makefile b/libavformat/Makefile
index a94ac66e7e..5ccd9ebfb0 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -119,6 +119,7 @@ OBJS-$(CONFIG_APTX_DEMUXER)              += aptxdec.o
 OBJS-$(CONFIG_APTX_MUXER)                += rawenc.o
 OBJS-$(CONFIG_APTX_HD_DEMUXER)           += aptxdec.o
 OBJS-$(CONFIG_APTX_HD_MUXER)             += rawenc.o
+OBJS-$(CONFIG_APV_MUXER)                 += rawenc.o
 OBJS-$(CONFIG_AQTITLE_DEMUXER)           += aqtitledec.o subtitles.o
 OBJS-$(CONFIG_ARGO_ASF_DEMUXER)          += argo_asf.o
 OBJS-$(CONFIG_ARGO_ASF_MUXER)            += argo_asf.o
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 445f13f42a..59440f8ad5 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -72,6 +72,7 @@ extern const FFInputFormat  ff_aptx_demuxer;
 extern const FFOutputFormat ff_aptx_muxer;
 extern const FFInputFormat  ff_aptx_hd_demuxer;
 extern const FFOutputFormat ff_aptx_hd_muxer;
+extern const FFOutputFormat ff_apv_muxer;
 extern const FFInputFormat  ff_aqtitle_demuxer;
 extern const FFInputFormat  ff_argo_asf_demuxer;
 extern const FFOutputFormat ff_argo_asf_muxer;
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index cf298d223d..198c560f00 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -117,6 +117,20 @@ const FFOutputFormat ff_aptx_hd_muxer = {
 };
 #endif
 
+#if CONFIG_APV_MUXER
+const FFOutputFormat ff_apv_muxer = {
+    .p.name            = "apv",
+    .p.long_name       = NULL_IF_CONFIG_SMALL("raw APV video"),
+    .p.extensions      = "apv",
+    .p.audio_codec     = AV_CODEC_ID_NONE,
+    .p.video_codec     = AV_CODEC_ID_APV,
+    .flags_internal    = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
+                         FF_OFMT_FLAG_ONLY_DEFAULT_CODECS,
+    .write_packet      = ff_raw_write_packet,
+    .p.flags           = AVFMT_NOTIMESTAMPS,
+};
+#endif
+
 #if CONFIG_AVS2_MUXER
 const FFOutputFormat ff_avs2_muxer = {
     .p.name            = "avs2",
-- 
2.34.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to