summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-02-18 16:32:18 +0100
committerAnton Khirnov <anton@khirnov.net>2013-04-19 09:28:08 +0200
commit5e83d9aced2fc2b2e1360452794c58aba55d497c (patch)
tree8504e1b7e82eae9ff30a42db618bbfa73610a049 /libavcodec/h264.h
parenta7f46586bf47174b5fa00a905b767b1781ec8b72 (diff)
downloadffmpeg-streaming-5e83d9aced2fc2b2e1360452794c58aba55d497c.zip
ffmpeg-streaming-5e83d9aced2fc2b2e1360452794c58aba55d497c.tar.gz
h264: fully support cropping.
Based on a patch by Vittorio Giovara <vittorio.giovara@gmail.com> Fixes Bug 378.
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index f5246fe..484c9d3 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -164,6 +164,8 @@ typedef struct SPS {
int mb_aff; ///< mb_adaptive_frame_field_flag
int direct_8x8_inference_flag;
int crop; ///< frame_cropping_flag
+
+ /* those 4 are already in luma samples */
unsigned int crop_left; ///< frame_cropping_rect_left_offset
unsigned int crop_right; ///< frame_cropping_rect_right_offset
unsigned int crop_top; ///< frame_cropping_rect_top_offset
@@ -272,6 +274,7 @@ typedef struct H264Context {
int qp_thresh; ///< QP threshold to skip loopfilter
+ /* coded dimensions -- 16 * mb w/h */
int width, height;
int linesize, uvlinesize;
int chroma_x_shift, chroma_y_shift;
OpenPOWER on IntegriCloud