Opened 14 years ago

Last modified 10 years ago

#57 closed enhancement

Excessive memory allocation — at Version 1

Reported by: fbossen Owned by:
Priority: minor Milestone:
Component: HM Version:
Keywords: Cc: fbossen, ksuehring, davidf, jct-vc@…

Description (last modified by fbossen)

Memory allocation is excessive, possibly leading to crashes.

Memory usage has been analyzed for the following case:
class B encoding with max CU=32x32, memory snapshot during encoding of 2nd frame

  • Transform coefficients:

9 TComList objects
2040 CUs per frame
3 32x32 integer arrays per CU (luma+2*chroma), each array is 4KB
9 * 2040 * 3 * 32 * 32 * 4 = 215MB

  • Luma frame buffers: 40 * 4.48MB = 179MB
  • Chroma frame buffers: 79 * 1.12MB = 89MB
  • Bitstream buffers (TComBitStream objects): 8 * 11.87MB = 95MB

Also see attached jpeg file

Change History (3)

comment:1 Changed 14 years ago by fbossen

  • Description modified (diff)

Changed 14 years ago by fbossen

Changed 14 years ago by ichong

Qualcomm's patch for more efficient memory usage

Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • David Flynn(Subscriber, Participant)
  • Frank Bossen(Reporter, Subscriber, Participant)
  • jct-vc@…(Subscriber)
  • jzan@…(Participant)
  • karl.sharman@…(Always)
  • Karsten Suehring(Subscriber, Participant, Always)