~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/lib/mpegplay/slice.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  reads/parse slice infos
 
3
  Copyright (C) 1999  Martin Vogt
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU Library General Public License as published by
 
7
  the Free Software Foundation.
 
8
 
 
9
  For more information look at the file COPYRIGHT in this package
 
10
 
 
11
 */
 
12
 
 
13
 
 
14
 
 
15
#ifndef __SLICE_H
 
16
#define __SLICE_H
 
17
 
 
18
#include <iostream.h>
 
19
#include "jrevdct.h"
 
20
#include "mpegExtension.h"
 
21
 
 
22
/* Size increment of extension data buffers. */
 
23
 
 
24
#define EXT_BUF_SIZE 1024
 
25
 
 
26
class Slice {
 
27
 
 
28
 
 
29
 public:
 
30
  Slice();
 
31
  ~Slice();
 
32
  int parseSlice(MpegVideoStream* mpegVideoStream);
 
33
  unsigned int getVertPos();
 
34
  inline unsigned int getQuantScale() {return quant_scale;}
 
35
  void setQuantScale(unsigned int quant_scale);
 
36
  
 
37
 
 
38
 private:
 
39
 
 
40
  /* Slice structure. */
 
41
 
 
42
  unsigned int vert_pos;                 /* Vertical position of slice. */
 
43
  unsigned int quant_scale;              /* Quantization scale.         */
 
44
  MpegExtension* mpegExtension;          /* Extra bit slice info.       */
 
45
 
 
46
};
 
47
 
 
48
 
 
49
#endif