Skip to content

Conversation

@0verLighT
Copy link

Request : #2414

@0verLighT 0verLighT force-pushed the xvidcore branch 26 times, most recently from 5513e6c to 5109b9d Compare January 26, 2026 03:54
@neheb
Copy link
Collaborator

neheb commented Jan 26, 2026

This branch cannot be rebased due to conflicts

@0verLighT
Copy link
Author

@neheb it should be ok now

Signed-off-by: 0verLighT <alexandre@0verlight.com>
Signed-off-by: 0verLighT <alexandre@0verlight.com>
@0verLighT 0verLighT force-pushed the xvidcore branch 2 times, most recently from b64dad1 to 96b3874 Compare January 29, 2026 23:26
Signed-off-by: 0verLighT <alexandre@0verlight.com>
)
meson.override_dependency('xvidcore', xvidcore_deps)

pkg = import('pkgconfig')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This belongs above xvidcore_dep I think.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last line should be meson.override_dependency() and pkg_config should be above it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. pkgconfig relies on the library. override_dependency relies on the dependency.

include_directories: includes,
)

xvidcore_deps = declare_dependency(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_deps should be _dep. This is a single dependency.

c_args += ['-DHAVE_INTTYPES_H']
endif

if threads_deps.found() and cc.has_header('pthread.h')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit confusing. thead_dep is not a feature option.

This should be

cc.has_header('pthread.h', dependencies: thread_dep)

In case it's possible or desired to disable threeading.

sources += files('src/motion/gmc.c')
endif

xvidcore = both_libraries(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this both_libraries?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In xvidcore, when you compile it, it generates the static library and the shared library. So i compile both libraries

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not needed here. meson supports setting default_library to both which makes library() do the same.

Signed-off-by: 0verLighT <alexandre@0verlight.com>
]

if (cpu_family == 'ppc' or cpu_family == 'ppc64') and endian == 'big'
sources += [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think [] is needed.

'-ffast-math',
'-fomit-frame-pointer',
'-finline-functions',
'-fPIC',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already default.

Signed-off-by: 0verLighT <alexandre@0verlight.com>
Signed-off-by: 0verLighT <alexandre@0verlight.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants