Skip to content

Commit 0299e5d

Browse files
Mode changed
1 parent a350c83 commit 0299e5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example/CustomVFilter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ bool cr::video::CustomVFilter::executeCommand(VFilterCommand id)
142142
{
143143
switch (id)
144144
{
145-
case VFilterCommand::RESTART:
145+
case VFilterCommand::RESET:
146146
{
147147
return true;
148148
}
@@ -180,7 +180,7 @@ bool cr::video::CustomVFilter::setMask(cr::video::Frame mask)
180180
bool cr::video::CustomVFilter::decodeAndExecuteCommand(uint8_t *data, int size)
181181
{
182182
// Decode command.
183-
VFilterCommand commandId = VFilterCommand::RESTART;
183+
VFilterCommand commandId = VFilterCommand::RESET;
184184
VFilterParam paramId = VFilterParam::LEVEL;
185185
float value = 0.0f;
186186
switch (VFilter::decodeCommand(data, size, paramId, commandId, value))

src/VFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class VFilterParams
3333
public:
3434

3535
/// Current filter mode: 0 - off, 1 - on. Depends on implementation.
36-
bool mode{ 0 };
36+
int mode{ 0 };
3737
/// Enhancement level for particular filter, as a percentage in range from
3838
/// 0% to 100%. May have another meaning depends on implementation.
3939
int level{ 0 };

0 commit comments

Comments
 (0)