/[qemacs]/qemacs/mpeg.c
ViewVC logotype

Diff of /qemacs/mpeg.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by bellard, Sat May 29 10:18:56 2004 UTC revision 1.2 by chqrlie, Wed May 11 15:12:14 2005 UTC
# Line 18  Line 18 
18   */   */
19  #include "qe.h"  #include "qe.h"
20    
21  #define SEQ_END_CODE            0x000001b7  #define SEQ_END_CODE            0x000001b7
22  #define SEQ_START_CODE          0x000001b3  #define SEQ_START_CODE          0x000001b3
23  #define GOP_START_CODE          0x000001b8  #define GOP_START_CODE          0x000001b8
24  #define PICTURE_START_CODE      0x00000100  #define PICTURE_START_CODE      0x00000100
25  #define SLICE_MIN_START_CODE    0x00000101  #define SLICE_MIN_START_CODE    0x00000101
26  #define SLICE_MAX_START_CODE    0x000001af  #define SLICE_MAX_START_CODE    0x000001af
27  #define EXT_START_CODE          0x000001b5  #define EXT_START_CODE          0x000001b5
28  #define USER_START_CODE         0x000001b2  #define USER_START_CODE         0x000001b2
29    
30  #define PACK_START_CODE             0x000001ba  #define PACK_START_CODE             0x000001ba
31  #define SYSTEM_HEADER_START_CODE    0x000001bb  #define SYSTEM_HEADER_START_CODE    0x000001bb
# Line 43  static int mpeg_display(EditState *s, Di Line 43  static int mpeg_display(EditState *s, Di
43    
44      display_bol(ds);      display_bol(ds);
45      display_printf(ds, -1, -1,  "%08x:", offset);      display_printf(ds, -1, -1,  "%08x:", offset);
46      for(;;) {      for (;;) {
47          ret = eb_read(s->b, offset, buf, 4);          ret = eb_read(s->b, offset, buf, 4);
48          if (ret == 0) {          if (ret == 0) {
49              if (badchars)              if (badchars)
# Line 77  static int mpeg_display(EditState *s, Di Line 77  static int mpeg_display(EditState *s, Di
77      offset += 4;      offset += 4;
78      display_printf(ds, offset_start, offset, " [%08x] ", startcode);      display_printf(ds, offset_start, offset, " [%08x] ", startcode);
79                    
80      switch(startcode) {      switch (startcode) {
81      case SEQ_END_CODE:      case SEQ_END_CODE:
82          display_printf(ds, -1, -1, "SEQ_END");          display_printf(ds, -1, -1, "SEQ_END");
83          break;          break;
# Line 121  static int mpeg_backward_offset(EditStat Line 121  static int mpeg_backward_offset(EditStat
121      unsigned int startcode;      unsigned int startcode;
122      int ret;      int ret;
123    
124      for(;;) {      for (;;) {
125          if (offset <= 0)          if (offset <= 0)
126              break;              break;
127          ret = eb_read(s->b, offset, buf, 4);          ret = eb_read(s->b, offset, buf, 4);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26