History log of /hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4cde8d5ef09e0be475e9d3ae5ff6b8b81e631f76 30-Mar-2017 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2:Update output resolution

mm-video-v4l2: venc: Update output resolution correctly for rotation
Update resolution of output plane based on the rotatio angle to
reflect the correct w x h in output-port-def

Change-Id: I6bc5631442a0b3640db6f9b8480b110b72c75073
CRs-Fixed: 2026950
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
70929c9d4f5f9a789c39d272581c72d3fa6aefe5 29-Mar-2017 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2:add extension to support av-timer

mm-video-v4l2: venc: add extension to support av-timer timestamps
Use timestamps sent in-band with graphic handles (updated from
camera with av-timer source) for vt usecases.

Bug: 32746650
Change-Id: I2bfb7215ca4446fecf6b5450aa40e4e26350846b
CRs-Fixed: 2026950
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
b76bf315339327ed8c3ee873f0fe8494e8df9f42 24-Mar-2017 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2:Implement android vendor extensions

mm-video-v4l2: venc: Implement android vendor extensions
Add support for vendor extensions in encoder component and
implement extensions for setting rotation, i-period change,
resync-marker-spacing, and custom avc profile.

Bug: 32746650
Change-Id: I775194c704171ffb7515da8515dfda19801d6a19
CRs-Fixed: 2026950
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
f0496bf92c60d4d0b9bea4c07f4783e496c14f91 14-Oct-2016 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2: venc: Disallow changing buffer count/size on allocated port am: b7b6466da4
am: faed315fc0

Change-Id: I658e13ca2ceba5ec23528b9e3b98ce125ec4c479
b7b6466da41081776b21ab4d4955a706d7f6b7ca 17-Aug-2016 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2: venc: Disallow changing buffer count/size on allocated port

Count and size negotiation of port-buffers should only be allowed when
the port hasn't been allocated yet.
Letting the client change count/size on a pre-allocated port will
cause inconsistencies in the count/size of memory allocated for
headers and internal lists.
Fix resetting of buffer-base (m_inp_mem_ptr) when all buffers are
freed, for all the buffer-modes.

Bug: 29421682
Fixes: Local Privilege Escalation in MediaServer (libOmxVenc problem #10)

Change-Id: I9abead969bc3c908e6db9beb6316fd572dac25f7
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
939bc4145117bc6b87d6cef5c0219c63efff113b 29-Jul-2016 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2: vidc: Fix read/write colorspace from/to gralloc-handle

Encoder:
Read the colorspace from metadata in gralloc-handle and
set the appropriate colorspace to the driver.

Recommend color-aspects based on the colorspace of destination-YUV
that C2D/Venus convert in case input is RGBA8888

Leave the unspecified aspects with client's-defaults, rather
than setting them to enuemarated "unspecified" values.

Decoder:
Default the colorspace as indicated by client in case there is
no color info in bitstream. Since VP8 encoder does not support
encoding color-info yet, default everything to 601-LR for now.

Bug: 29550317
Change-Id: I603cd592647b3f9b81c4da714a72aae871ced25a
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
ebe3411770bc467e978eacd66ebc1495a16d4a56 08-Jul-2016 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2: vidc: Add support for color aspects

Add support for color aspects setting from clients and embed that
information in bit-stream. When client sets different color format
than in bit-stream, update them with correct one.

Author: Praneeth Paladugu <ppaladug@codeaurora.org>

Bug: 29189938
Bug: 29620306

Change-Id: I31bf3a81ef0690dc3565875d2fba4607abf46536
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
8a54976f56d2a2d7770f78e7bff7bdbbdf47744a 14-Jul-2016 Lajos Molnar <lajos@google.com> media: update to new OMX layering structs

Also add some extra validation.

Bug: 27596987
Change-Id: I310ff38a31550c9c439bfe0a7231c833029a28a6
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
bb6e2c659c093ccb6266b679b07513cbeeb9fb24 25-Jun-2016 Steve Pfetsch <spfetsch@google.com> media: Update to AU 205 drop

Update to AU_LINUX_ANDROID_LA.HB.1.3.9.06.00.01.213.205

media_hal:
1df75f0 Merge "mm-video-v4l2: venc: Avoid processing ETBs/FTBs in invalid states"
dc623d6 mm-video-v4l2: vdec: Avoid processing ETBs/FTBs in invalid states,
d57cbc1 mm-video-v4l2: venc: Avoid processing ETBs/FTBs in invalid states
2b33b5a Merge "mm-video-v4l2: venc: add support for encoding temporal layers"
815b4be mm-video-v4l2: venc: add support for encoding temporal layers
d450628 mm-video-v4l2: vidc: venc: Fix issues with Hier P
a7ead0c mm-video-v4l2: vidc: Enumerate supported HEVC decoder profiles
9e096e8 mm-video-v4l2: vidc: HEVC Main10 profile support
a42a61d mm-video-v4l2: vdec: Add support for prefetching secure memory

Change-Id: I16f46e6d896e296cb2cf3eab6e6683c93f9daa8c
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
d99a08f99689df977dfc585a436ada5acf4f2a25 16-Jun-2016 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2: venc: add checks before accessing heap pointers

Heap pointers do not point to user virtual addresses in case
of secure session.
Set them to NULL and add checks to avoid accesing them

Bug: 28815329
Bug: 28920116

Change-Id: I94fd5808e753b58654d65e175d3857ef46ffba26
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
f1b15e15b61a610b6d0a78797e9a5a3f2cfdd56c 30-Mar-2016 Arun Menon <avmenon@codeaurora.org> mm-video-v4l2: vidc: Add support for OMX_IndexConfigAndroidIntraRefresh

OMX Component will support OMX_IndexConfigAndroidIntraRefresh only
in loaded state.

Bug: 27108817
Change-Id: I213fed57842b94c333843871d6c555e1fb8784e5
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
417bd6d3d293ef616a5a33741cfd6ac8c50f685f 21-Mar-2016 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2: venc: add safety checks for freeing buffers

Allow only up to 64 buffers on input/output port (since the
allocation bitmap is only 64-wide).
Add safety checks to free only as many buffers were allocated.

Fixes: Heap Overflow and Possible Local Privilege Escalation in
MediaServer (libOmxVenc problem)
Bug: 27532497

Change-Id: I31e576ef9dc542df73aa6b0ea113d72724b50fc6
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
16ee85d1d456a4b694fd32baa5f52341e638b5d8 30-Mar-2016 Praveen Chavan <pchavan@codeaurora.org> mm-video-v4l2: vidc: validate omx param/config data

Check the sanity of config/param strcuture objects
passed to get/set _ config()/parameter() methods.

Bug: 27533317
Security Vulnerability in MediaServer
omx_vdec::get_config() Can lead to arbitrary write

Change-Id: I6c3243afe12055ab94f1a1ecf758c10e88231809
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
e4010605f233a213cf0d972397bb33c34c364227 07-Mar-2016 Patrick Tjin <pattjin@google.com> Initial import of msm8996 media HAL

1) Move existing HAL to msm8974/
2) Import msm8996 HAL from LA.HB.1.1.2_rb1.12
3) Modify Makefiles to remove kernel dependencies and
fix for new directory structure
4) Modify top level makefile for new directory structure

Top commits from LA.HB.1.1.2_rb1.12 included in this commit:
db7937a mm-video: vidc: memset struct v4l2_format prior to S_FMT
d77ab10 Merge "mm-video-v4l2: vidc: Do not queue output buffer if flush is in progress"
8895985 mm-video-v4l2: vidc: vdec: Add property to disable UBWC for OPB
675af75 Merge "mm-video: vidc: Communicate the right colorformat to the driver"
dd79df2 Merge "mm-video: vidc: Reliably stop the message thread"
c3e8618 Merge "mm-video-v4l2: vidc: venc: Fix B-Frame handling"
755ec08 mm-video-v4l2: vidc: Do not queue output buffer if flush is in progress
3ac8410 mm-video: vidc: Reliably stop the message thread
b73dcba Merge "mm-video-v4l2: vidc: venc: Bug fixes for VZIP"
8358109 Merge "mm-video-v4l2: vdec: fix picture type decode mode return status"

BUG=27420204

Signed-off-by: Patrick Tjin <pattjin@google.com>

Change-Id: I71aa0190e48b332268334677894b0ad7c606296b
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp