Skip to content

Pranay Code Review #30

Open
mundrapranay wants to merge 35 commits intomasterfrom
pranayUDF2
Open

Pranay Code Review #30
mundrapranay wants to merge 35 commits intomasterfrom
pranayUDF2

Conversation

@mundrapranay
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Member

@BrandonHaynes BrandonHaynes left a 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.

Comment thread python/CMakeLists.txt Outdated
include_directories(${LIGHTDB_CORE_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${Python2_INCLUDE_DIRS})

# Include ipp
include_directories(/opt/intel/ipp/include)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove hardcoded paths

Comment thread python/CMakeLists.txt Outdated
Comment thread python/include/PythonGreyscale.h Outdated
Comment thread python/include/PythonGreyscale.h Outdated
Comment thread python/include/PythonGreyscale.h Outdated
Comment thread 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);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

reinterpret_cast

Comment thread 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);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

reinterpret_cast

Comment thread test/CMakeLists.txt
string(REPLACE ";" "|" LIGHTDB_INCLUDES_STRING "${LIGHTDB_INCLUDES}")

foreach(LIGHTDB_PLUGIN_DIR ${LIGHTDB_PLUGIN_DIRS})
message("Lightdb plugin dir: ${LIGHTDB_PLUGIN_DIR}")
Copy link
Copy Markdown
Member

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) {
Copy link
Copy Markdown
Member

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");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

?

Copy link
Copy Markdown
Member

@BrandonHaynes BrandonHaynes left a 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.

Comment thread python/CMakeLists.txt Outdated
Comment thread python/include/PythonUnary.h Outdated
Comment thread python/include/PythonUnary.h Outdated
Comment thread python/src/PythonUnary.cc Outdated
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.

3 participants