[FFmpeg-devel] [PATCH 1/4] swscale: Add support to specify chroma position

Michael Niedermayer michaelni at gmx.at
Wed Jul 17 17:10:54 CEST 2013


On Wed, Jul 17, 2013 at 11:55:53AM +0000, Paul B Mahol wrote:
> On 7/14/13, Michael Niedermayer <michaelni at gmx.at> wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libswscale/options.c          |    5 +++++
> >  libswscale/swscale_internal.h |    4 ++++
> >  libswscale/utils.c            |   36 +++++++++++++++++++++++++++---------
> >  3 files changed, 36 insertions(+), 9 deletions(-)
> >
> > diff --git a/libswscale/options.c b/libswscale/options.c
> > index fc571ac..26e3266 100644
> > --- a/libswscale/options.c
> > +++ b/libswscale/options.c
> > @@ -64,6 +64,11 @@ static const AVOption options[] = {
> >      { "param0",          "scaler param 0",                OFFSET(param[0]),
> >  AV_OPT_TYPE_DOUBLE, { .dbl = SWS_PARAM_DEFAULT  }, INT_MIN, INT_MAX,
> > VE },
> >      { "param1",          "scaler param 1",                OFFSET(param[1]),
> >  AV_OPT_TYPE_DOUBLE, { .dbl = SWS_PARAM_DEFAULT  }, INT_MIN, INT_MAX,
> > VE },
> >
> > +    { "src_v_chr_pos",   "source vertical chroma position in luma grid/256"
> >  , OFFSET(src_v_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1            }, -1,
> >  512,             VE },
> > +    { "src_h_chr_pos",   "source horizontal chroma position in luma
> > grid/256", OFFSET(src_h_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1            },
> > -1,      512,             VE },
> > +    { "dst_v_chr_pos",   "source vertical chroma position in luma grid/256"
> 
> You mean "destination vertical ...." ?
> 
> >  , OFFSET(dst_v_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1            }, -1,
> >  512,             VE },
> > +    { "dst_h_chr_pos",   "source horizontal chroma position in luma
> > grid/256", OFFSET(dst_h_chr_pos), AV_OPT_TYPE_INT, { .i64 = -1            },
> 
> You mean "destinatio horizontal ...." ?

yes, fixed

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130717/f84f9156/attachment.asc>


More information about the ffmpeg-devel mailing list