aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/loongarch/swscale.S
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-10-09 19:44:33 +0200
committerNiklas Haas <git@haasn.dev>2024-10-24 22:50:00 +0200
commit67adb303228a5d8e2abe860b7748004cc83ca65f (patch)
tree5b987107804eb246b68414da8e43789658594c7c /libswscale/loongarch/swscale.S
parent153a6dc8faafc4de263a493484ffc1dc2b5b26b2 (diff)
downloadffmpeg-67adb303228a5d8e2abe860b7748004cc83ca65f.tar.gz
swscale: rename SwsContext to SwsInternal
And preserve the public SwsContext as separate name. The motivation here is that I want to turn SwsContext into a public struct, while keeping the internal implementation hidden. Additionally, I also want to be able to use multiple internal implementations, e.g. for GPU devices. This commit does not include any functional changes. For the most part, it is a simple rename. The only complications arise from the public facing API functions, which preserve their current type (and hence require an additional unwrapping step internally), and the checkasm test framework, which directly accesses SwsInternal. For consistency, the affected functions that need to maintain a distionction have generally been changed to refer to the SwsContext as *sws, and the SwsInternal as *c. In an upcoming commit, I will provide a backing definition for the public SwsContext, and update `sws_internal()` to dereference the internal struct instead of merely casting it. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'libswscale/loongarch/swscale.S')
-rw-r--r--libswscale/loongarch/swscale.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/loongarch/swscale.S b/libswscale/loongarch/swscale.S
index 67b1bc834d..a7e8513192 100644
--- a/libswscale/loongarch/swscale.S
+++ b/libswscale/loongarch/swscale.S
@@ -23,7 +23,7 @@
#include "libavcodec/loongarch/loongson_asm.S"
-/* void ff_hscale_8_to_15_lsx(SwsContext *c, int16_t *dst, int dstW,
+/* void ff_hscale_8_to_15_lsx(SwsInternal *c, int16_t *dst, int dstW,
* const uint8_t *src, const int16_t *filter,
* const int32_t *filterPos, int filterSize)
*/
@@ -470,7 +470,7 @@ function ff_hscale_8_to_15_lsx
addi.d sp, sp, 72
endfunc
-/* void ff_hscale_8_to_19_lsx(SwsContext *c, int16_t *dst, int dstW,
+/* void ff_hscale_8_to_19_lsx(SwsInternal *c, int16_t *dst, int dstW,
* const uint8_t *src, const int16_t *filter,
* const int32_t *filterPos, int filterSize)
*/
@@ -917,7 +917,7 @@ function ff_hscale_8_to_19_lsx
addi.d sp, sp, 72
endfunc
-/* void ff_hscale_16_to_15_sub_lsx(SwsContext *c, int16_t *dst, int dstW,
+/* void ff_hscale_16_to_15_sub_lsx(SwsInternal *c, int16_t *dst, int dstW,
* const uint8_t *src, const int16_t *filter,
* const int32_t *filterPos, int filterSize, int sh)
*/
@@ -1392,7 +1392,7 @@ function ff_hscale_16_to_15_sub_lsx
addi.d sp, sp, 72
endfunc
-/* void ff_hscale_16_to_19_sub_lsx(SwsContext *c, int16_t *dst, int dstW,
+/* void ff_hscale_16_to_19_sub_lsx(SwsInternal *c, int16_t *dst, int dstW,
* const uint8_t *src, const int16_t *filter,
* const int32_t *filterPos, int filterSize, int sh)
*/