OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20090114-1.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
typedef struct {
typedef struct {
    int MbInterlace;
    int MbInterlace;
    int channel_type;
    int channel_type;
} InputParameters;
} InputParameters;
typedef struct {
typedef struct {
    int type;
    int type;
    int NumberofCodedPFrame;
    int NumberofCodedPFrame;
    int NumberofGOP;
    int NumberofGOP;
    int NumberofPPicture;
    int NumberofPPicture;
    int FieldControl;
    int FieldControl;
    int Frame_Total_Number_MB;
    int Frame_Total_Number_MB;
    int NumberofCodedMacroBlocks;
    int NumberofCodedMacroBlocks;
    int BasicUnit;
    int BasicUnit;
} ImageParameters;
} ImageParameters;
extern InputParameters *input;
extern InputParameters *input;
extern ImageParameters *img;
extern ImageParameters *img;
long T;
long T;
void rc_init_pict(int fieldpic)
void rc_init_pict(int fieldpic)
{
{
  if(input->MbInterlace)
  if(input->MbInterlace)
    T = img->Frame_Total_Number_MB;
    T = img->Frame_Total_Number_MB;
  img->NumberofCodedMacroBlocks=0;
  img->NumberofCodedMacroBlocks=0;
  if(input->channel_type==1
  if(input->channel_type==1
     && img->NumberofCodedPFrame==58)
     && img->NumberofCodedPFrame==58)
    T = 4;
    T = 4;
  if(fieldpic)
  if(fieldpic)
    {
    {
      switch (img->type)
      switch (img->type)
        {
        {
          case 0:
          case 0:
           if(img->NumberofCodedPFrame>0
           if(img->NumberofCodedPFrame>0
              && img->FieldControl==1)
              && img->FieldControl==1)
             T = 3;
             T = 3;
           if(img->NumberofPPicture==1)
           if(img->NumberofPPicture==1)
             T = 2;
             T = 2;
        }
        }
      if(img->type==0
      if(img->type==0
         && img->NumberofCodedPFrame>0)
         && img->NumberofCodedPFrame>0)
        T = 0;
        T = 0;
    }
    }
  if(img->type==0
  if(img->type==0
     && img->FieldControl==1)
     && img->FieldControl==1)
    T = 1;
    T = 1;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.