diff mbox series

[FFmpeg-devel] avformat/isom: add support for RAW ASC Bayer BGGR in mov

Message ID 20201008172533.26786-1-onemda@gmail.com
State Accepted
Commit af5ad79fe1d5efbc24ba6456fe7a1b7bc63574d9
Headers show
Series [FFmpeg-devel] avformat/isom: add support for RAW ASC Bayer BGGR in mov | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Paul B Mahol Oct. 8, 2020, 5:25 p.m. UTC
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavcodec/raw.c   | 1 +
 libavformat/isom.c | 2 ++
 2 files changed, 3 insertions(+)

Comments

Peter Ross Oct. 8, 2020, 11:01 p.m. UTC | #1
On Thu, Oct 08, 2020 at 07:25:33PM +0200, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda@gmail.com>
> ---
>  libavcodec/raw.c   | 1 +
>  libavformat/isom.c | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/libavcodec/raw.c b/libavcodec/raw.c
> index b6fb91c1c6..079d5c5d10 100644
> --- a/libavcodec/raw.c
> +++ b/libavcodec/raw.c
> @@ -246,6 +246,7 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
>      { AV_PIX_FMT_GRAY16BE,MKTAG('b', '1', '6', 'g') },
>      { AV_PIX_FMT_RGB48BE, MKTAG('b', '4', '8', 'r') },
>      { AV_PIX_FMT_RGBA64BE,MKTAG('b', '6', '4', 'a') },
> +    { AV_PIX_FMT_BAYER_RGGB16BE, MKTAG('B', 'G', 'G', 'R') },
>  
>      /* vlc */
>      { AV_PIX_FMT_YUV410P,     MKTAG('I', '4', '1', '0') },
> diff --git a/libavformat/isom.c b/libavformat/isom.c
> index 019175d814..d1ef6e3407 100644
> --- a/libavformat/isom.c
> +++ b/libavformat/isom.c
> @@ -316,6 +316,8 @@ const AVCodecTag ff_codec_movvideo_tags[] = {
>  
>      { AV_CODEC_ID_NOTCHLC, MKTAG('n', 'c', 'l', 'c') },
>  
> +    { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'G', 'R') }, /* ASC Bayer BGGR */
> +
>      { AV_CODEC_ID_NONE, 0 },
>  };
>  
> -- 
> 2.17.1

looks good

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
diff mbox series

Patch

diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index b6fb91c1c6..079d5c5d10 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -246,6 +246,7 @@  const PixelFormatTag ff_raw_pix_fmt_tags[] = {
     { AV_PIX_FMT_GRAY16BE,MKTAG('b', '1', '6', 'g') },
     { AV_PIX_FMT_RGB48BE, MKTAG('b', '4', '8', 'r') },
     { AV_PIX_FMT_RGBA64BE,MKTAG('b', '6', '4', 'a') },
+    { AV_PIX_FMT_BAYER_RGGB16BE, MKTAG('B', 'G', 'G', 'R') },
 
     /* vlc */
     { AV_PIX_FMT_YUV410P,     MKTAG('I', '4', '1', '0') },
diff --git a/libavformat/isom.c b/libavformat/isom.c
index 019175d814..d1ef6e3407 100644
--- a/libavformat/isom.c
+++ b/libavformat/isom.c
@@ -316,6 +316,8 @@  const AVCodecTag ff_codec_movvideo_tags[] = {
 
     { AV_CODEC_ID_NOTCHLC, MKTAG('n', 'c', 'l', 'c') },
 
+    { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'G', 'R') }, /* ASC Bayer BGGR */
+
     { AV_CODEC_ID_NONE, 0 },
 };