Restore last defined variate

Signed-off-by: JamePeng <jame_peng@sina.com>
This commit is contained in:
JamePeng 2016-02-11 05:20:35 +08:00
parent 80a82acf55
commit 8adfde4443

View File

@ -84,6 +84,7 @@ ResultCode ConversionConfiguration::SetStandardCoefficient(StandardCoefficient s
static void SetInputFormat(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
conversion.input_format = static_cast<InputFormat>(cmd_buff[1]);
LOG_DEBUG(Service_Y2R, "called input_format=%hhu", conversion.input_format);
@ -93,7 +94,8 @@ static void SetInputFormat(Service::Interface* self) {
static void GetInputFormat(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
LOG_DEBUG(Service_Y2R, "Get input_format=%hhu", conversion.input_format);
InputFormat input_format = conversion.input_format;
LOG_DEBUG(Service_Y2R, "Get input_format=%hhu", input_format);
cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = static_cast<u32>(conversion.input_format);
@ -111,7 +113,8 @@ static void SetOutputFormat(Service::Interface* self) {
static void GetOutputFormat(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
LOG_DEBUG(Service_Y2R, "Get output_format=%hhu", conversion.output_format);
OutputFormat output_format = conversion.output_format;
LOG_DEBUG(Service_Y2R, "Get output_format=%hhu", output_format);
cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = static_cast<u32>(conversion.output_format);