This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit aedede0cee249e32a7cd9712255d4d33f89e5858 Author: Niklas Haas <[email protected]> AuthorDate: Fri Jun 19 14:25:02 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Sat Jun 20 03:06:21 2026 +0200 swscale/format: add SwsFormat.field This metadata is needed to compute the correct chroma sampling offsets. We previously stored this in graph->field, but that's a bad place for it, because it doesn't survive the translation to the ops abstraction layer. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <[email protected]> --- libswscale/format.c | 1 + libswscale/format.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libswscale/format.c b/libswscale/format.c index c34d335500..a68565e8e5 100644 --- a/libswscale/format.c +++ b/libswscale/format.c @@ -388,6 +388,7 @@ SwsFormat ff_fmt_from_frame(const AVFrame *frame, int field) if (frame->flags & AV_FRAME_FLAG_INTERLACED) { fmt.height = (fmt.height + (field == FIELD_TOP)) >> 1; fmt.interlaced = 1; + fmt.field = field; } /* Set luminance and gamut information */ diff --git a/libswscale/format.h b/libswscale/format.h index 24d53b8e80..9b852efd39 100644 --- a/libswscale/format.h +++ b/libswscale/format.h @@ -77,6 +77,7 @@ static inline void ff_color_update_dynamic(SwsColor *dst, const SwsColor *src) typedef struct SwsFormat { int width, height; int interlaced; + int field; enum AVPixelFormat format; enum AVPixelFormat hw_format; enum AVColorRange range; @@ -126,6 +127,7 @@ static inline int ff_fmt_equal(const SwsFormat *fmt1, const SwsFormat *fmt2) return fmt1->width == fmt2->width && fmt1->height == fmt2->height && fmt1->interlaced == fmt2->interlaced && + fmt1->field == fmt2->field && fmt1->format == fmt2->format && fmt1->range == fmt2->range && fmt1->csp == fmt2->csp && _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
