Browse Source

Merge commit '2b6ab3a2bd7e7cee5e7a55dd2e48b8feb4a826bb'

* commit '2b6ab3a2bd7e7cee5e7a55dd2e48b8feb4a826bb':
  mpegvideo: Move QUANT_BIAS_SHIFT define to the only place it is used

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
d0cb6caf69
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpegvideo.h
  2. +2
    -0
      libavcodec/mpegvideo_enc.c

+ 1
- 1
libavcodec/mpegvideo.h View File

@@ -440,7 +440,7 @@ typedef struct MpegEncContext {
uint16_t chroma_intra_matrix[64];
uint16_t inter_matrix[64];
uint16_t chroma_inter_matrix[64];
#define QUANT_BIAS_SHIFT 8
int intra_quant_bias; ///< bias for the quantizer
int inter_quant_bias; ///< bias for the quantizer
int min_qcoeff; ///< minimum encodable coefficient


+ 2
- 0
libavcodec/mpegvideo_enc.c View File

@@ -59,6 +59,8 @@
#include <limits.h>
#include "sp5x.h"

#define QUANT_BIAS_SHIFT 8

static int encode_picture(MpegEncContext *s, int picture_number);
static int dct_quantize_refine(MpegEncContext *s, int16_t *block, int16_t *weight, int16_t *orig, int n, int qscale);
static int sse_mb(MpegEncContext *s);


Loading…
Cancel
Save