summaryrefslogtreecommitdiff
path: root/libavcodec/mpegpicture.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-09 14:14:38 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-10 18:49:35 +0200
commit73ea6db0ba815b80d6e7b06e86e4c5db9e2032ed (patch)
tree65f39e336c15f87016cd6fca36de09ec046dc980 /libavcodec/mpegpicture.h
parentd576b37fa7e2d23737f04b6c1df2a132ff4b113f (diff)
avcodec/mpegpicture: Move encoding_error and mb_var_sum to MpegEncCtx
These fields are only ever set by the encoder for the current picture and for no other picture. So only one set of these values needs to exist, so move them to MpegEncContext. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegpicture.h')
-rw-r--r--libavcodec/mpegpicture.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/mpegpicture.h b/libavcodec/mpegpicture.h
index 62589595d0..a1455ee13c 100644
--- a/libavcodec/mpegpicture.h
+++ b/libavcodec/mpegpicture.h
@@ -71,16 +71,11 @@ typedef struct Picture {
int field_picture; ///< whether or not the picture was encoded in separate fields
- int64_t mb_var_sum; ///< sum of MB variance for current frame
- int64_t mc_mb_var_sum; ///< motion compensated MB variance for current frame
-
int b_frame_score;
int needs_realloc; ///< Picture needs to be reallocated (eg due to a frame size change)
int reference;
int shared;
-
- uint64_t encoding_error[MPEGVIDEO_MAX_PLANES];
} Picture;
/**