mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Convert the Amiga encoder and decoder to the new system.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "fluxmap.h"
|
||||
#include "decoders/decoders.h"
|
||||
#include "encoders/encoders.h"
|
||||
#include "arch/amiga/amiga.h"
|
||||
#include "arch/brother/brother.h"
|
||||
#include "arch/ibm/ibm.h"
|
||||
#include "lib/encoders/encoders.pb.h"
|
||||
@@ -11,6 +12,9 @@ std::unique_ptr<AbstractEncoder> AbstractEncoder::create(const EncoderProto& con
|
||||
{
|
||||
switch (config.format_case())
|
||||
{
|
||||
case EncoderProto::kAmiga:
|
||||
return std::unique_ptr<AbstractEncoder>(new AmigaEncoder(config.amiga()));
|
||||
|
||||
case EncoderProto::kIbm:
|
||||
return std::unique_ptr<AbstractEncoder>(new IbmEncoder(config.ibm()));
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
syntax = "proto2";
|
||||
|
||||
import "arch/amiga/amiga.proto";
|
||||
import "arch/brother/brother.proto";
|
||||
import "arch/ibm/ibm.proto";
|
||||
//import "lib/common.proto";
|
||||
@@ -8,5 +9,6 @@ message EncoderProto {
|
||||
oneof format {
|
||||
IBMOutputProto ibm = 3;
|
||||
BrotherOutputProto brother = 4;
|
||||
AmigaOutputProto amiga = 5;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user