PageRenderTime 22ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

/Show/avc/pvavcdecoder.h

http://github.com/mbebenita/Broadway
C Header | 49 lines | 27 code | 4 blank | 18 comment | 0 complexity | 253b6e35051a7157b5481fe492ea71af MD5 | raw file
Possible License(s): BSD-3-Clause
  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. #ifndef PVAVCDECODERINTERFACE_H_INCLUDED
  21. #include "pvavcdecoderinterface.h"
  22. #endif
  23. // AVC video decoder
  24. class PVAVCDecoder : public PVAVCDecoderInterface
  25. {
  26. public:
  27. virtual ~PVAVCDecoder();
  28. static PVAVCDecoder* New(void);
  29. virtual bool InitAVCDecoder(FunctionType_SPS, FunctionType_Alloc, FunctionType_Unbind,
  30. FunctionType_Malloc, FunctionType_Free, void *);
  31. virtual void CleanUpAVCDecoder(void);
  32. virtual void ResetAVCDecoder(void);
  33. virtual int32 DecodeSPS(uint8 *bitstream, int32 buffer_size);
  34. virtual int32 DecodePPS(uint8 *bitstream, int32 buffer_size);
  35. virtual int32 DecodeAVCSlice(uint8 *bitstream, int32 *buffer_size);
  36. virtual bool GetDecOutput(int *indx, int *release);
  37. virtual void GetVideoDimensions(int32 *width, int32 *height, int32 *top, int32 *left, int32 *bottom, int32 *right);
  38. int AVC_Malloc(int32 size, int attribute);
  39. void AVC_Free(int mem);
  40. private:
  41. PVAVCDecoder();
  42. bool Construct(void);
  43. void *iAVCHandle;
  44. };
  45. #endif