Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2b6ab3a2
Commit
2b6ab3a2
authored
Jul 22, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: Move QUANT_BIAS_SHIFT define to the only place it is used
parent
06a1d132
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
mpegvideo.h
libavcodec/mpegvideo.h
+1
-1
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+2
-0
No files found.
libavcodec/mpegvideo.h
View file @
2b6ab3a2
...
@@ -430,7 +430,7 @@ typedef struct MpegEncContext {
...
@@ -430,7 +430,7 @@ typedef struct MpegEncContext {
uint16_t
chroma_intra_matrix
[
64
];
uint16_t
chroma_intra_matrix
[
64
];
uint16_t
inter_matrix
[
64
];
uint16_t
inter_matrix
[
64
];
uint16_t
chroma_inter_matrix
[
64
];
uint16_t
chroma_inter_matrix
[
64
];
#define QUANT_BIAS_SHIFT 8
int
intra_quant_bias
;
///< bias for the quantizer
int
intra_quant_bias
;
///< bias for the quantizer
int
inter_quant_bias
;
///< bias for the quantizer
int
inter_quant_bias
;
///< bias for the quantizer
int
min_qcoeff
;
///< minimum encodable coefficient
int
min_qcoeff
;
///< minimum encodable coefficient
...
...
libavcodec/mpegvideo_enc.c
View file @
2b6ab3a2
...
@@ -58,6 +58,8 @@
...
@@ -58,6 +58,8 @@
#include "bytestream.h"
#include "bytestream.h"
#include <limits.h>
#include <limits.h>
#define QUANT_BIAS_SHIFT 8
static
int
encode_picture
(
MpegEncContext
*
s
,
int
picture_number
);
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
dct_quantize_refine
(
MpegEncContext
*
s
,
int16_t
*
block
,
int16_t
*
weight
,
int16_t
*
orig
,
int
n
,
int
qscale
);
static
int
sse_mb
(
MpegEncContext
*
s
);
static
int
sse_mb
(
MpegEncContext
*
s
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment