decoder.h 1.1 KB

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2023 NXP
  3. * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
  4. * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
  5. * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
  6. * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
  7. * terms, then you may not retain, install, activate or otherwise use the software.
  8. */
  9. #pragma once
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. #include "modules/wels/codec_api.h"
  14. #include "modules/wels/codec_def.h"
  15. #include <stdint.h>
  16. #include <stddef.h>
  17. void Yuv420p2Rgb565(uint16_t *dst, uint8_t *yp, uint8_t *up, uint8_t*vp, size_t width, size_t height);
  18. int OpenH264_Init(void);
  19. int OpenH264_Decode(const unsigned char* pSrc, const int iSrcLen, unsigned char** ppDst, SBufferInfo* pDstInfo);
  20. void OpenH264_GetOption(void* pOption);
  21. void OpenH264_FlashFrame(unsigned char** ppDst, SBufferInfo* pDstInfo);
  22. void OpenH264_Uninit(void);
  23. #ifdef __cplusplus
  24. }
  25. #endif