aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/ppc/yuv2yuv_altivec.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-10-10 12:16:44 +0200
committerNiklas Haas <git@haasn.dev>2024-11-21 12:49:56 +0100
commit2d077f9acda4946b3455ded5778fb3fc7e85bba2 (patch)
tree44ab5d5889e65b4067fbe54f4e7966a31f4c9f13 /libswscale/ppc/yuv2yuv_altivec.c
parent10d1be262126f1699a89b54cf5f23a5370c57cb5 (diff)
downloadffmpeg-2d077f9acda4946b3455ded5778fb3fc7e85bba2.tar.gz
swscale/internal: group user-facing options together
This is a preliminary step to separating these into a new struct. This commit contains no functional changes, it is a pure search-and-replace. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'libswscale/ppc/yuv2yuv_altivec.c')
-rw-r--r--libswscale/ppc/yuv2yuv_altivec.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libswscale/ppc/yuv2yuv_altivec.c b/libswscale/ppc/yuv2yuv_altivec.c
index 0ae5223760..7884c38d69 100644
--- a/libswscale/ppc/yuv2yuv_altivec.c
+++ b/libswscale/ppc/yuv2yuv_altivec.c
@@ -37,12 +37,12 @@ static int yv12toyuy2_unscaled_altivec(SwsInternal *c, const uint8_t *const src[
const int dstStride_a[])
{
uint8_t *dst = dstParam[0] + dstStride_a[0] * srcSliceY;
- // yv12toyuy2(src[0], src[1], src[2], dst, c->srcW, srcSliceH,
+ // yv12toyuy2(src[0], src[1], src[2], dst, c->opts.src_w, srcSliceH,
// srcStride[0], srcStride[1], dstStride[0]);
const uint8_t *ysrc = src[0];
const uint8_t *usrc = src[1];
const uint8_t *vsrc = src[2];
- const int width = c->srcW;
+ const int width = c->opts.src_w;
const int height = srcSliceH;
const int lumStride = srcStride[0];
const int chromStride = srcStride[1];
@@ -113,12 +113,12 @@ static int yv12touyvy_unscaled_altivec(SwsInternal *c, const uint8_t *const src[
const int dstStride_a[])
{
uint8_t *dst = dstParam[0] + dstStride_a[0] * srcSliceY;
- // yv12toyuy2(src[0], src[1], src[2], dst, c->srcW, srcSliceH,
+ // yv12toyuy2(src[0], src[1], src[2], dst, c->opts.src_w, srcSliceH,
// srcStride[0], srcStride[1], dstStride[0]);
const uint8_t *ysrc = src[0];
const uint8_t *usrc = src[1];
const uint8_t *vsrc = src[2];
- const int width = c->srcW;
+ const int width = c->opts.src_w;
const int height = srcSliceH;
const int lumStride = srcStride[0];
const int chromStride = srcStride[1];
@@ -190,9 +190,9 @@ av_cold void ff_get_unscaled_swscale_ppc(SwsInternal *c)
if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
return;
- if (!(c->srcW & 15) && !(c->flags & SWS_BITEXACT) &&
- c->srcFormat == AV_PIX_FMT_YUV420P) {
- enum AVPixelFormat dstFormat = c->dstFormat;
+ if (!(c->opts.src_w & 15) && !(c->opts.flags & SWS_BITEXACT) &&
+ c->opts.src_format == AV_PIX_FMT_YUV420P) {
+ enum AVPixelFormat dstFormat = c->opts.dst_format;
// unscaled YV12 -> packed YUV, we want speed
if (dstFormat == AV_PIX_FMT_YUYV422)