aboutsummaryrefslogtreecommitdiffstats
path: root/parse-ls-ext-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-12-01 12:47:38 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-12-01 12:47:38 +0100
commit0e602dc90d39188b17cf00e34d514119d59aa261 (patch)
tree3623a1098b3d672c1ff73f696fff8242fd3d2d46 /parse-ls-ext-block.cpp
parentc7e69ce99cda1dac1d35e755f0308ef96e33153c (diff)
edid-decode: move functions to the edid_state class
This simplifies the code. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-ls-ext-block.cpp')
-rw-r--r--parse-ls-ext-block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse-ls-ext-block.cpp b/parse-ls-ext-block.cpp
index c707569..a8f14d0 100644
--- a/parse-ls-ext-block.cpp
+++ b/parse-ls-ext-block.cpp
@@ -49,12 +49,12 @@ static void parse_string_table(const unsigned char *x)
parse_string("Serial Number", x);
}
-void parse_ls_ext_block(edid_state &state, const unsigned char *x)
+void edid_state::parse_ls_ext_block(const unsigned char *x)
{
const unsigned char *orig = x;
printf("%s Version %u.%u Unicode Version %u.%u.%u\n",
- state.cur_block.c_str(), x[1], x[2], (x[3] >> 4), x[3] & 0x0f, x[4]);
+ cur_block.c_str(), x[1], x[2], (x[3] >> 4), x[3] & 0x0f, x[4]);
x += 5;
while (x[0] && x + x[0] < orig + 127) {

Privacy Policy