Use "bool" for flags.
Include "libde265_plugin_common.h" as local file.
Renamed variable.
Moved "magic numbers" to constants, updated comments.