1/*
2 * Copyright (C) Texas Instruments - http://www.ti.com/
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef OMX_DCC_H
18#define OMX_DCC_H
19
20namespace Ti {
21namespace Camera {
22
23class DCCHandler
24{
25public:
26
27    status_t loadDCC(OMX_HANDLETYPE hComponent);
28
29private:
30
31    OMX_ERRORTYPE initDCC(OMX_HANDLETYPE hComponent);
32    OMX_ERRORTYPE sendDCCBufPtr(OMX_HANDLETYPE hComponent, CameraBuffer *dccBuffer);
33    size_t readDCCdir(OMX_PTR buffer, const android::Vector<android::String8 *> &dirPaths);
34
35private:
36
37    static android::String8 DCCPath;
38    static bool mDCCLoaded;
39};
40
41} // namespace Camera
42} // namespace Ti
43
44#endif // OMX_DCC_H
45