H264Slice.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Abstract :
  17. --
  18. ------------------------------------------------------------------------------*/
  19. /*------------------------------------------------------------------------------
  20. 1. Include headers
  21. ------------------------------------------------------------------------------*/
  22. #include "H264Slice.h"
  23. /*------------------------------------------------------------------------------
  24. 2. External compiler flags
  25. --------------------------------------------------------------------------------
  26. --------------------------------------------------------------------------------
  27. 3. Module defines
  28. ------------------------------------------------------------------------------*/
  29. /*------------------------------------------------------------------------------
  30. 4. Local function prototypes
  31. ------------------------------------------------------------------------------*/
  32. /*------------------------------------------------------------------------------
  33. H264SliceInit
  34. ------------------------------------------------------------------------------*/
  35. void H264SliceInit(slice_s * slice)
  36. {
  37. slice->byteStream = ENCHW_YES;
  38. slice->nalUnitType = IDR;
  39. slice->sliceType = ISLICE;
  40. slice->picParameterSetId = 0;
  41. slice->frameNum = 0;
  42. slice->frameNumBits = 16;
  43. slice->idrPicId = 0;
  44. slice->nalRefIdc = 1;
  45. slice->disableDeblocking = 0;
  46. slice->filterOffsetA = 0;
  47. slice->filterOffsetB = 0;
  48. slice->sliceSize = 0;
  49. slice->cabacInitIdc = 0;
  50. slice->quarterPixelMv = 1;
  51. return;
  52. }