1
0

meminput.h 561 B

1234567891011121314151617181920212223242526
  1. #ifndef _MEMINPUT_H
  2. #define _MEMINPUT_H
  3. #pragma once
  4. #include "nalucommon.h"
  5. #include <bfc/platform/types.h>
  6. typedef struct memory_input_struct
  7. {
  8. const uint8_t *user_buffer;
  9. size_t user_buffer_size;
  10. size_t user_buffer_read;
  11. uint8_t *Buf;
  12. int resetting;
  13. int skip_b_frames;
  14. } memory_input_t;
  15. int GetMemoryNALU (VideoParameters *p_Vid, NALU_t *nalu);
  16. void OpenMemory(VideoParameters *p_Vid, const char *fn);
  17. void CloseMemory(VideoParameters *p_Vid);
  18. void malloc_mem_input(VideoParameters *p_Vid);
  19. void free_mem_input(VideoParameters *p_Vid);
  20. #endif