[FFmpeg-devel] [PATCH 1/2] compat/avisynth: minor update for alpha offsets
Stephen Hutchinson
qyot27 at gmail.com
Tue Sep 27 07:44:55 EEST 2016
On 8/30/2016 8:26 PM, Stephen Hutchinson wrote:
> ---
> compat/avisynth/avisynth_c.h | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/compat/avisynth/avisynth_c.h b/compat/avisynth/avisynth_c.h
> index 605b92a..2f84dd1 100644
> --- a/compat/avisynth/avisynth_c.h
> +++ b/compat/avisynth/avisynth_c.h
> @@ -533,7 +533,11 @@ typedef struct AVS_VideoFrame {
> volatile long refcount;
> AVS_VideoFrameBuffer * vfb;
> int offset, pitch, row_size, height, offsetU, offsetV, pitchUV; // U&V offsets are from top of picture.
> - int row_sizeUV, heightUV;
> + int row_sizeUV, heightUV; // for Planar RGB offsetU, offsetV is for the 2nd and 3rd Plane.
> + // for Planar RGB pitchUV and row_sizeUV = 0, because when no VideoInfo (MakeWriteable)
> + // the decision on existance of UV is checked by zero pitch
> + // AVS+ extension, avisynth.h: class does not break plugins if appended here
> + int offsetA, pitchA, row_sizeA; // 4th alpha plane support, pitch and row_size is 0 is none
> } AVS_VideoFrame;
>
> // Access functions for AVS_VideoFrame
> @@ -753,7 +757,7 @@ enum {
> AVS_CPUF_SSSE3 = 0x200, // Core 2
> AVS_CPUF_SSE4 = 0x400, // Penryn, Wolfdale, Yorkfield
> AVS_CPUF_SSE4_1 = 0x400,
> -//AVS_CPUF_AVX = 0x800, // Sandy Bridge, Bulldozer
> + AVS_CPUF_AVX = 0x800, // Sandy Bridge, Bulldozer
> AVS_CPUF_SSE4_2 = 0x1000, // Nehalem
> //AVS_CPUF_AVX2 = 0x2000, // Haswell
> //AVS_CPUF_AVX512 = 0x4000, // Knights Landing
>
Consider this patch revoked. The changes don't affect FFmpeg's
handling of the discrete alpha formats, so my being cautious and
sending this patch wasn't necessary.
More information about the ffmpeg-devel
mailing list