/*
 * Copyright (C) 2020-2021 Intel Corporation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#pragma once

#include <base/bind.h>
#include <base/threading/thread.h>

#include <memory>
#include <queue>
#include <unordered_map>

#include "CameraLog.h"
#include "IntelAlgoServer.h"
#include "cros-camera/camera_algorithm.h"
#include "iutils/Errors.h"
#include "iutils/Thread.h"
#include "modules/sandboxing/IPCCommon.h"
#ifdef TNR7_CM
#include "modules/sandboxing/server/IntelTNRServer.h"
#endif

// ENABLE_EVCP_S
#include "modules/sandboxing/server/IntelEvcpServer.h"
// ENABLE_EVCP_E

namespace icamera {

class IntelGPUAlgoServer : public RequestHandler {
 public:
    explicit IntelGPUAlgoServer(IntelAlgoServer* server) : RequestHandler(server) {}
    virtual ~IntelGPUAlgoServer() {}
    void handleRequest(const MsgReq& msg);

#ifdef TNR7_CM
 private:
    IntelTNRServer mTNR;
#endif

// ENABLE_EVCP_S
 private:
    IntelEvcpServer mEvcp;
// ENABLE_EVCP_E
};

}  // namespace icamera
