[FFmpeg-devel] [PATCH] avformat/rtpdec_rfc4175: fix interlace format

2022-02-02 Thread Patrick Keroulas
. Signed-off-by: Patrick Keroulas --- libavformat/rtpdec_rfc4175.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c index 8e73c07838..83abe499f8 100644 --- a/libavformat/rtpdec_rfc4175.c +++ b/libavformat

[FFmpeg-devel] [PATCH v8 3/3] avformat/rtpdec_rfc4175: handle interlace format

2018-07-10 Thread Patrick Keroulas
consist of fields, and their heights are half of the frame size, so some adjustments must be done here and there to take that into account. Signed-off-by: Damien Riegel Signed-off-by: Patrick Keroulas --- libavformat/rtpdec_rfc4175.c | 57 1 file changed

[FFmpeg-devel] [PATCH v8 2/3] avcodec/bitpacked: add interlace support

2018-07-10 Thread Patrick Keroulas
decoder to dynamically determine the frame format, i.e. progressive or interlaced. Signed-off-by: Patrick Keroulas Signed-off-by: Damien Riegel --- Changes v7 -> v8: style --- --- libavcodec/bitpacked.c | 140 + 1 file changed, 117 inserti

[FFmpeg-devel] [PATCH v8 1/3] avcodec: add side data type for ancillary

2018-07-10 Thread Patrick Keroulas
Ancillary data can carry various side data that can't be transmitted in bitstreams. For now, this struct includes interlaced field flags and the must be attached to an AVPacket as side data. Signed-off-by: Patrick Keroulas --- Changes v7 -> v8: * Merge the definition of AVAncillaryData

Re: [FFmpeg-devel] [PATCH v7 1/4] avcodec: add side data type for ancillary

2018-06-07 Thread Patrick Keroulas
Would someone be nice to review this patchset? Thank you. - Original Message - > From: "Patrick Keroulas" > To: ffmpeg-devel@ffmpeg.org > Cc: "Patrick Keroulas" > Sent: Friday, May 25, 2018 10:16:28 AM > Subject: [PATCH v7 1/4] avcodec: add side data

[FFmpeg-devel] [PATCH v7 2/4] libavutil: add ancillary data

2018-05-25 Thread Patrick Keroulas
Ancillary data can carry various side data that can't be transmitted in bitstreams. For now, this struct includes interlaced field flags and the must be attached to an AVPacket as side data. Signed-off-by: Patrick Keroulas --- libavutil/Makefile | 2 ++ libavutil/ancillary_data.c

[FFmpeg-devel] [PATCH v7 4/4] avformat/rtpdec_rfc4175: handle interlace format

2018-05-25 Thread Patrick Keroulas
consist of fields, and their heights are half of the frame size, so some adjustments must be done here and there to take that into account. Signed-off-by: Damien Riegel Signed-off-by: Patrick Keroulas --- libavformat/rtpdec_rfc4175.c | 57 1 file changed

[FFmpeg-devel] [PATCH v7 3/4] avcodec/bitpacked: add interlace support

2018-05-25 Thread Patrick Keroulas
side data allows the decoder to dynamically determine the frame format, i.e. progressive or interlaced. Signed-off-by: Patrick Keroulas Signed-off-by: Damien Riegel --- Changes v6 -> v7: * use AVAncillaryData and AVPacket side data to transmit field flags --- libavcodec/bitpacked.c |

[FFmpeg-devel] [PATCH v7 1/4] avcodec: add side data type for ancillary

2018-05-25 Thread Patrick Keroulas
avcodec: add side data type for ancillary Create a new type of side data to be attached to AVPacket in order to transmit out of band parameters for typical codecs. Signed-off-by: Patrick Keroulas --- doc/APIchanges| 3 +++ libavcodec/avcodec.h | 7 ++- libavcodec/avpacket.c | 1

Re: [FFmpeg-devel] [PATCH v6 1/3] avcodec: add flags for packets with top/bottom field

2018-05-23 Thread Patrick Keroulas
t; On 23 May 2018 at 20:01, wm4 wrote: > >> On Wed, 23 May 2018 14:29:38 -0400 (EDT) >> Patrick Keroulas wrote: >> >> > - Original Message - >> > > From: "wm4" >> > > To: ffmpeg-devel@ffmpeg.org >> > > Sent: Wedne

Re: [FFmpeg-devel] [PATCH v6 1/3] avcodec: add flags for packets with top/bottom field

2018-05-23 Thread Patrick Keroulas
lav Pehlivanov wrote: > >> On 23 May 2018 at 16:18, wm4 wrote: >> >> > On Tue, 22 May 2018 17:19:35 -0400 (EDT) >> > Patrick Keroulas wrote: >> > >> > > - Original Message - >> > > > From: "Rostislav Pehlivanov&

Re: [FFmpeg-devel] [PATCH v6 1/3] avcodec: add flags for packets with top/bottom field

2018-05-22 Thread Patrick Keroulas
- Original Message - > From: "Rostislav Pehlivanov" > To: "FFmpeg development discussions and patches" > Sent: Friday, May 18, 2018 5:28:42 PM > Subject: Re: [FFmpeg-devel] [PATCH v6 1/3] avcodec: add flags for packets > with top/bottom field > On 18 May 2018 at 22:17, wm4 wrote: >

Re: [FFmpeg-devel] [PATCH v6 1/3] avcodec: add flags for packets with top/bottom field

2018-05-18 Thread Patrick Keroulas
t; On 15 May 2018 at 18:03, wm4 wrote: > >> On Tue, 15 May 2018 17:15:05 +0100 >> Rostislav Pehlivanov wrote: >> >> > On 15 May 2018 at 15:55, wm4 wrote: >> > >> > > On Mon, 14 May 2018 18:26:35 -0400 >> > > Patrick Keroulas wrot

[FFmpeg-devel] [PATCH v6 2/3] avcodec/bitpacked: add interlace support

2018-05-14 Thread Patrick Keroulas
allow the decoder to dynamically determine the frame format, i.e. progressive or interlaced. Signed-off-by: Patrick Keroulas Signed-off-by: Damien Riegel --- Changes v5 -> v6: * cleanup * move the packet flags in a separate patch * bump lavc minor version in this new patch --- libavco

[FFmpeg-devel] [PATCH v6 1/3] avcodec: add flags for packets with top/bottom field

2018-05-14 Thread Patrick Keroulas
Signed-off-by: Patrick Keroulas --- doc/APIchanges | 3 +++ libavcodec/avcodec.h | 8 libavcodec/version.h | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index bbefc83..d06868e 100644 --- a/doc/APIchanges +++ b/doc

[FFmpeg-devel] [PATCH v6 3/3] avformat/rtpdec_rfc4175: handle interlace format

2018-05-14 Thread Patrick Keroulas
consist of fields, and their heights are half of the frame size, so some adjustments must be done here and there to take that into account. Signed-off-by: Damien Riegel Signed-off-by: Patrick Keroulas --- libavformat/rtpdec_rfc4175.c | 25 +++-- 1 file changed, 23 insertions(+), 2

[FFmpeg-devel] [PATCH v5 2/2] avformat/rtpdec_rfc4175: handle interlace format

2018-05-14 Thread Patrick Keroulas
consist of fields, and their heights are half of the frame size, so some adjustments must be done here and there to take that into account. Signed-off-by: Damien Riegel Signed-off-by: Patrick Keroulas --- libavformat/rtpdec_rfc4175.c | 25 +++-- 1 file changed, 23 insertions(+), 2

[FFmpeg-devel] [PATCH v5 1/2] avcodec/bitpacked: add interlace support

2018-05-14 Thread Patrick Keroulas
allow the decoder to dynamically determine the frame format, i.e. progressive or interlaced. Signed-off-by: Patrick Keroulas Signed-off-by: Damien Riegel --- Change v4 -> v5: Call ff_get_buffer only when necessary. --- libavcodec/avcodec.h | 8 libavcodec/bitpacked.c |

[FFmpeg-devel] [PATCH v4 3/3] avformat/rtpdec_rfc4175: handle interlace format

2018-04-25 Thread Patrick Keroulas
consist of fields, and their heights are half of the frame size, so some adjustments must be done here and there to take that into account. Signed-off-by: Damien Riegel Signed-off-by: Patrick Keroulas --- libavformat/rtpdec_rfc4175.c | 25 +++-- 1 file changed, 23 insertions(+), 2

[FFmpeg-devel] [PATCH v4 2/3] avcodec/bitpacked: add interlace support

2018-04-25 Thread Patrick Keroulas
allow the decoder to dynamically determine the frame format, i.e. progressive or interlaced. Signed-off-by: Patrick Keroulas Signed-off-by: Damien Riegel --- Change v3 -> v4: cleanup --- libavcodec/avcodec.h | 8 libavcodec/bitpacked.c |

[FFmpeg-devel] [PATCH v4 1/3] avcodec/bitpacked: move ff_get_buffer

2018-04-25 Thread Patrick Keroulas
From: Damien Riegel ff_get_buffer is used to allocate a buffer to hold frame's content. This function was called in the function in charge of decoding an AVPacket containing raw video with the yuv422 pixel format and a depth of 10-bit. RFC4175 supports both progressive and interlaced mode. But t

[FFmpeg-devel] [PATCH v3 3/3] avformat/rtpdec_rfc4175: handle interlace format

2018-04-24 Thread Patrick Keroulas
consist of fields, and their heights are half of the frame size, so some adjustments must be done here and there to take that into account. Signed-off-by: Damien Riegel Signed-off-by: Patrick Keroulas --- libavformat/rtpdec_rfc4175.c | 25 +++-- 1 file changed, 23 insertions(+), 2

[FFmpeg-devel] [PATCH v3 2/3] avcodec/bitpacked: add interlace support

2018-04-24 Thread Patrick Keroulas
allow the decoder to dynamically determine the frame format, i.e. progressive or interlaced. Signed-off-by: Damien Riegel Signed-off-by: Patrick Keroulas --- Change v2 -> v3: Let the decoder determine if the stream is interlaced or progressive by fixing top field flag and adding bottom fie

[FFmpeg-devel] [PATCH v3 1/3] avcodec/bitpacked: move ff_get_buffer

2018-04-24 Thread Patrick Keroulas
From: Damien Riegel ff_get_buffer is used to allocate a buffer to hold frame's content. This function was called in the function in charge of decoding an AVPacket containing raw video with the yuv422 pixel format and a depth of 10-bit. RFC4175 supports both progressive and interlaced mode. But t

[FFmpeg-devel] [PATCH v2 3/3] avformat/rtpdec_rfc4175: handle interlace format

2018-04-20 Thread Patrick Keroulas
From: Damien Riegel In order to handle the interlaced formats, the demuxer has only a few things to do: - parse the SDP correctly and propagate the information - check the field bit in the RFC4175 header, and pass that information to the decoder In interlaced mode, received data only consis

[FFmpeg-devel] [PATCH v2 2/3] avcodec/bitpacked: add interlace support

2018-04-20 Thread Patrick Keroulas
-by: Patrick Keroulas --- Change v1 -> v2: Replaced field packets cloning with partial frame decoding. @ Rostislav Pehlivanov: Regarding your comment on v1 (thank you for that), I think we can avoid using the bottom field flag because the interlaced/progressive format is determined once,

[FFmpeg-devel] [PATCH v2 1/3] avcodec/bitpacked: move ff_get_buffer

2018-04-20 Thread Patrick Keroulas
From: Damien Riegel ff_get_buffer is used to allocate a buffer to hold frame's content. This function was called in the function in charge of decoding an AVPacket containing raw video with the yuv422 pixel format and a depth of 10-bit. RFC4175 supports both progressive and interlaced mode. But t

Re: [FFmpeg-devel] [PATCH v1 2/3] avcodec/bitpacked: add interlace support

2018-04-12 Thread Patrick Keroulas
> From: "Paul B Mahol" > To: "FFmpeg development discussions and patches" > Cc: "Damien Riegel" , "Patrick Keroulas" > > Sent: Wednesday, April 11, 2018 2:47:40 AM > Subject: Re: [FFmpeg-devel] [PATCH v1 2/3] avcodec/bitpacked: add i

[FFmpeg-devel] [PATCH v1 2/3] avcodec/bitpacked: add interlace support

2018-04-10 Thread Patrick Keroulas
capable of handling fields only and recompose an interlaced frame from that, it has to be done by the codec. To achieve that, it must use two AVPacket: one for each field (top and bottom). Signed-off-by: Damien Riegel Signed-off-by: Patrick Keroulas --- libavcodec/avcodec.h | 4 +++ libavcodec

[FFmpeg-devel] [PATCH v1 3/3] avformat/rtpdec_rfc4175: handle interlace format

2018-04-10 Thread Patrick Keroulas
From: Damien Riegel In order to handle the interlaced formats, the demuxer has only a few things to do: - parse the SDP correctly and propagate the information - check the field bit in the RFC4175 header, and pass that information to the decoder In interlaced mode, received data only consis

[FFmpeg-devel] [PATCH v1 1/3] avcodec/bitpacked: move ff_get_buffer

2018-04-10 Thread Patrick Keroulas
From: Damien Riegel ff_get_buffer is used to allocate a buffer to hold frame's content. This function was called in the function in charge of decoding an AVPacket containing raw video with the yuv422 pixel format and a depth of 10-bit. RFC4175 supports both progressive and interlaced mode. But t