diff options
author | Ed Tanous <ed.tanous@intel.com> | 2018-05-23 01:27:24 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-07-27 01:54:37 +0300 |
commit | 55c7b7a2e58779580f33046d2dd8649243776700 (patch) | |
tree | eed2d032dff3e18c4a8d4778e8f52ae5864620ee /src/ast_video_puller_test.cpp | |
parent | 1752c9657b56a6e1950d8725f44f4298c9872c63 (diff) | |
download | bmcweb-55c7b7a2e58779580f33046d2dd8649243776700.tar.xz |
Move over to upstream c++ style
This patchset moves bmcweb over to the upstream style naming
conventions for variables, classes, and functions, as well as imposes
the latest clang-format file.
This changeset was mostly built automatically by the included
.clang-tidy file, which has the ability to autoformat and auto rename
variables. At some point in the future I would like to see this in
greater use, but for now, we will impose it on bmcweb, and see how it
goes.
Tested: Code still compiles, and appears to run, although other issues
are possible and likely.
Change-Id: If422a2e36df924e897736b3feffa89f411d9dac1
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'src/ast_video_puller_test.cpp')
-rw-r--r-- | src/ast_video_puller_test.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ast_video_puller_test.cpp b/src/ast_video_puller_test.cpp index b1f94e7579..58adda9697 100644 --- a/src/ast_video_puller_test.cpp +++ b/src/ast_video_puller_test.cpp @@ -14,12 +14,12 @@ #include <gtest/gtest.h> TEST(AstvideoPuller, BasicRead) { - AstVideo::RawVideoBuffer out; + ast_video::RawVideoBuffer out; bool have_hardware = false; if (access("/dev/video", F_OK) != -1) { - AstVideo::SimpleVideoPuller p; + ast_video::SimpleVideoPuller p; p.initialize(); - out = p.read_video(); + out = p.readVideo(); } else { FILE *fp = fopen("test_resources/ubuntu_444_800x600_0chrom_0lum.bin", "rb"); if (fp) { @@ -30,18 +30,18 @@ TEST(AstvideoPuller, BasicRead) { } fclose(fp); out.buffer.resize(newLen); - out.mode = AstVideo::YuvMode::YUV444; + out.mode = ast_video::YuvMode::YUV444; out.width = 800; out.height = 600; - out.y_selector = 0; - out.uv_selector = 0; + out.ySelector = 0; + out.uvSelector = 0; } } FILE *fp = fopen("/tmp/screendata.bin", "wb"); fwrite(out.buffer.data(), sizeof(char), out.buffer.size(), fp); - AstVideo::AstJpegDecoder d; - d.decode(out.buffer, out.width, out.height, out.mode, out.y_selector, - out.uv_selector); + ast_video::AstJpegDecoder d; + d.decode(out.buffer, out.width, out.height, out.mode, out.ySelector, + out.uvSelector); } |