Raw Video Decoder.  
More...
Go to the source code of this file.
 | 
| #define  | SCALE16(x, bits)   (((x) << (16 - (bits))) | ((x) >> (2 * (bits) - 16))) | 
|   | 
| #define  | MKSCALE16(name, r16, w16) | 
|   | Scale buffer to 16 bits per coded sample resolution.  
  | 
|   | 
Raw Video Decoder. 
Definition in file rawdec.c.
 
      
        
          | #define SCALE16 | 
          ( | 
            | 
          x,  | 
        
        
           | 
           | 
            | 
          bits  | 
        
        
           | 
          ) | 
           |    (((x) << (16 - (bits))) | ((x) >> (2 * (bits) - 16))) | 
        
      
 
 
      
        
          | #define MKSCALE16 | 
          ( | 
            | 
          name,  | 
        
        
           | 
           | 
            | 
          r16,  | 
        
        
           | 
           | 
            | 
          w16  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Value:
{ \
    int i; \
    if (!packed) { \
        for (i = 0; i + 1 < buf_size; i += 2) \
            w16(dst + i, 
SCALE16(r16(
buf + i), avctx->bits_per_coded_sample)); \
 
        init_get_bits(&gb, 
buf, buf_size * 8); \
 
        for (i = 0; i < avctx->width * avctx->height; i++) { \
            w16(dst + i*2, 
SCALE16(sample, avctx->bits_per_coded_sample)); \
 
        } \
   } \
}
 
Scale buffer to 16 bits per coded sample resolution. 
Definition at line 129 of file rawdec.c.
 
 
Initial value:
Definition at line 54 of file rawdec.c.
 
 
Initial value:= {
    .class_name = "rawdec",
}
 
Definition at line 59 of file rawdec.c.
 
 
Initial value:= {
    .name           = "rawvideo",
}
 
Definition at line 365 of file rawdec.c.