-
Notifications
You must be signed in to change notification settings - Fork 6
Pranay Code Review #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
In order to import it, must be using Python 2.7 to match what is in Boost's project-config.jam. Segfaults when exiting Python.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job, just some minor code cleanup left to go.
python/CMakeLists.txt
Outdated
include_directories(${LIGHTDB_CORE_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${Python2_INCLUDE_DIRS}) | ||
|
||
# Include ipp | ||
include_directories(/opt/intel/ipp/include) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove hardcoded paths
python/src/PythonGreyscale.cc
Outdated
boost::python::call<void>(callable_, swap); | ||
|
||
// RGB -> NV12 | ||
CHECK_EQ(ippiRGBToYCbCr420_8u_C3P2R(rgb_.data(), channels * frame->width(), (Ipp8u*)y_out, frame->width(), (Ipp8u*)uv_out, frame->width(), size), ippStsNoErr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reinterpret_cast
python/src/PythonGreyscale.cc
Outdated
auto uv_out = y_out + frameSize_; | ||
|
||
// NV12 -> RGB | ||
CHECK_EQ(ippiYCbCr420ToRGB_8u_P2C3R((Ipp8u*)y_in, frame->width(), (Ipp8u*)uv_in, frame->width(), rgb_.data(), channels * frame->width(), size), ippStsNoErr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reinterpret_cast
string(REPLACE ";" "|" LIGHTDB_INCLUDES_STRING "${LIGHTDB_INCLUDES}") | ||
|
||
foreach(LIGHTDB_PLUGIN_DIR ${LIGHTDB_PLUGIN_DIRS}) | ||
message("Lightdb plugin dir: ${LIGHTDB_PLUGIN_DIR}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
EXPECT_EQ(remove(Resources.out.hevc), 0); | ||
} | ||
|
||
TEST_F(SelectionTestFixture, testPythonQuery) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
.Map(lightdb::Greyscale) | ||
.Encode() | ||
.Save(Resources.out.hevc); | ||
.Save("/home/maureen/grey_test.hevc"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super minor nits and this is ready to go.
No description provided.