PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 36ms app.codeStats 0ms

/Avc/pvavcdecoder.h

http://github.com/mbebenita/Broadway
C Header | 49 lines | 27 code | 4 blank | 18 comment | 0 complexity | 253b6e35051a7157b5481fe492ea71af MD5 | raw file
 1/* ------------------------------------------------------------------
 2 * Copyright (C) 1998-2009 PacketVideo
 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
13 * express or implied.
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
17 */
18#ifndef PVAVCDECODER_H_INCLUDED
19#define PVAVCDECODER_H_INCLUDED
20
21#ifndef PVAVCDECODERINTERFACE_H_INCLUDED
22#include "pvavcdecoderinterface.h"
23#endif
24
25// AVC video decoder
26class PVAVCDecoder : public PVAVCDecoderInterface
27{
28    public:
29        virtual ~PVAVCDecoder();
30        static  PVAVCDecoder* New(void);
31        virtual bool    InitAVCDecoder(FunctionType_SPS, FunctionType_Alloc, FunctionType_Unbind,
32                                       FunctionType_Malloc, FunctionType_Free, void *);
33        virtual void    CleanUpAVCDecoder(void);
34        virtual void    ResetAVCDecoder(void);
35        virtual int32   DecodeSPS(uint8 *bitstream, int32 buffer_size);
36        virtual int32   DecodePPS(uint8 *bitstream, int32 buffer_size);
37        virtual int32   DecodeAVCSlice(uint8 *bitstream, int32 *buffer_size);
38        virtual bool    GetDecOutput(int *indx, int *release);
39        virtual void    GetVideoDimensions(int32 *width, int32 *height, int32 *top, int32 *left, int32 *bottom, int32 *right);
40        int     AVC_Malloc(int32 size, int attribute);
41        void    AVC_Free(int mem);
42
43    private:
44        PVAVCDecoder();
45        bool Construct(void);
46        void *iAVCHandle;
47};
48
49#endif