• DocumentCode
    2203960
  • Title

    Parallel Zigzag Scanning and Huffman Coding for a GPU-based MPEG-2 Encoder

  • Author

    Montero, Pablo ; Taibo, Javier ; Gulías, Víctor ; Rivas, Samuel

  • Author_Institution
    Univ. of A Coruna, A Coruña, Spain
  • fYear
    2010
  • fDate
    13-15 Dec. 2010
  • Firstpage
    97
  • Lastpage
    104
  • Abstract
    GPUs excel in parallel computations, so they are very efficient calculating the discrete cosine transform of spatial domain images, as required for video encoding. The last steps of MPEG-2 compression, however, are inherently sequential since they require a serial processing of the resulting DCT coefficients. As that can easily become a bottleneck in GPUbased video encoders, in this paper we analyze the problem of computing the zigzag scan and Huffman encoding of a MPEG- 2 coefficient block in a GPU. We observed that simply optimizing the parallelism of the serialization and compression algorithm is not enough, and it can actually lead to worse results than a simple approach with no parallelism because of inefficient memory usage, since memory accesses can dramatically slow down the computation. This paper describes three different techniques to calculate the final bit stream for a MPEG-2 quantized coefficient matrix: a simple serial implementation, a fully parallel implementation, and a combination that beats them both when considering the cost of transferring the result to the CPU.
  • Keywords
    Huffman codes; discrete cosine transforms; video coding; GPU-based MPEG-2 encoder; Huffman coding; coefficient matrix; discrete cosine transform; parallel computations; parallel zigzag scanning; video encoding; GPGPU; GPU; Huffman Coding; MPEG; Parallel Algorithm; Video Compression; Zigzag Scan;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Multimedia (ISM), 2010 IEEE International Symposium on
  • Conference_Location
    Taichung
  • Print_ISBN
    978-1-4244-8672-4
  • Electronic_ISBN
    978-0-7695-4217-1
  • Type

    conf

  • DOI
    10.1109/ISM.2010.23
  • Filename
    5693828