diff options
author | Aman Gupta <aman@tmm1.net> | 2018-03-19 16:29:45 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2018-03-20 15:52:23 -0700 |
commit | 2ddc6b439226a7dffb740d6e50bdd835a27d10ea (patch) | |
tree | d34278b7ef833feb08b35f3e2816f3e69fb2b663 /libavcodec/mediacodecdec_common.h | |
parent | 9e67447a4ffacf28af8bace33faf3ea432ddc43e (diff) |
avcodec/mediacodecdec: propagate SAR to h/w frames
Allows consumers who are converting hardware buffers
to OpenGL textures to render the frames at the intended
display resolution.
Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/mediacodecdec_common.h')
-rw-r--r-- | libavcodec/mediacodecdec_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mediacodecdec_common.h b/libavcodec/mediacodecdec_common.h index 4f3b4f9fa5..023d4c5fa7 100644 --- a/libavcodec/mediacodecdec_common.h +++ b/libavcodec/mediacodecdec_common.h @@ -61,6 +61,8 @@ typedef struct MediaCodecDecContext { int crop_bottom; int crop_left; int crop_right; + int display_width; + int display_height; uint64_t output_buffer_count; |