History log of /hardware/google/av/codec2/hidl/client/client.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2cc26aada0fc1c80eb2564eb19f1b085380d07b9 30-May-2018 Pawin Vongmasa <pawin@google.com> cancelBuffer() when bufferqueue-based block dies

Test: adb shell setprop debug.stagefright.ccodec 3
adb shell setprop debug.stagefright.c2-poolmask 327680
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall mediaserver
* Then, play videos.

Bug: 32691050
Bug: 64121714
Bug: 79838609

Change-Id: Idc0a997897e2cd8677d6eb030f0964beab1d3625
/hardware/google/av/codec2/hidl/client/client.cpp
3078c7c3136bc9546da39943f0d6abb1f7e344c8 26-May-2018 Wonsik Kim <wonsik@google.com> Propagate configuration error to client

Bug: 80324024
Test: adb shell screenrecord --verbose --time-limit 10 --codec-name c2.android.avc.encoder /sdcard/record.mp4
Change-Id: Iececbad9d6a858ee08f00c8b5ae5163dba554b7a
/hardware/google/av/codec2/hidl/client/client.cpp
50e137be9c24439bc5936825e78a142e899e9f00 24-May-2018 Pawin Vongmasa <pawin@google.com> Return non-null IConfigurable for createBlockPool

Test: adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall mediaserver
* Then, play videos.

Bug: 64121714
Bug: 79736865
Change-Id: I70035790b91113a87bf2958470f307ac7066b13e
/hardware/google/av/codec2/hidl/client/client.cpp
1c19944e022e628356404ea731640e144401e7e2 23-May-2018 Lajos Molnar <lajos@google.com> Codec2 HIDL: do not clear output vectors for query/config

These must be appended to by API spec.

Bug: 79493409
Change-Id: I2a7081c3b0101b1751ad74ce972107b43f235eb9
/hardware/google/av/codec2/hidl/client/client.cpp
8b0b2c32666ea799c27b30e64ea89291fa069f4d 14-May-2018 Pin-chih Lin <johnylin@google.com> CCodec: query in/out allocator ID and create remote output block pool

The flow of CCodec to specify input and output allocators and block pools:

1. On start CCodec should query C2PortAllocatorsTuning::input and ::output from
component.

2. If C2PortAllocatorsTuning::input is valid, CCodec should create local block
pool of input buffers with its value as allocator ID. If is invalid, CCodec
creates with default allocator ID.

3. If C2PortAllocatorsTuning::output is valid, CCodec should create remote
block pool of output buffers with its value as allocator ID (and obtained the
block pool ID). If is invalid, CCodec does nothing.

4. If remote output block pool is created, try to set output surface.

5. CCodec should config C2PortBlockPoolsTuning::output to component with
obtained block pool ID. If this parameter is not supported by component,
component will creates the default local block pool on its own.

Bug: 79392858
Test: screenrecord and stagefright playback
Test: CtsMediaTestCases android.media.cts.MediaPlayerTest#testLocalVideo_MP4_H264_480x360_500kbps_30fps_AAC_Stereo_128kbps_44110Hz
Change-Id: I39271373e7a581dee85536ac25a79de3a7a5f36f
/hardware/google/av/codec2/hidl/client/client.cpp
9f6048e1f7cf88bd65f3a0771ebf6c3dbae4060c 14-May-2018 Pawin Vongmasa <pawin@google.com> Remove unused input buffer references

In Codec2Client::Component
- All input buffer references in Codec2Client::Component should cleared
when release(), reset() or stop() is called.
- When Codec2Client::Component::flush() is called, input references in
the returned (flushed) work items should be removed.

In CCodecBufferChannel, input buffer references are no longer needed.

Test: adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall mediaserver
* Then, play videos.

Bug: 64121714
Bug: 79419318
Change-Id: Ic246883e8489fe5eefd7cf731c52f771e3e71688
/hardware/google/av/codec2/hidl/client/client.cpp
24d1a0943d2635113192a355a75699e0afc6f541 12-May-2018 Lajos Molnar <lajos@google.com> c2:hidl:client: add CreateInterfaceByName method

Also add getInstanceName() and utility method for iterating through
all clients.

Bug: 79493296
Change-Id: I5b173db94a4a3bc0f964a175744bfe540c33fd02
/hardware/google/av/codec2/hidl/client/client.cpp
c3d20aa9415c8f02e568f203560685eaf12c3e2d 03-May-2018 Pawin Vongmasa <pawin@google.com> Minor tweaks to Codec2 HIDL interfaces

Test: adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall mediaserver
* Then, play videos.

Bug: 64121714
Bug: 31973802

Change-Id: Ic051f5d1bf3871baadd838debb6a4435dd5361a2
/hardware/google/av/codec2/hidl/client/client.cpp
89eabf0d6b92d93eced043ce4abd2ac527c0374a 25-Apr-2018 Pawin Vongmasa <pawin@google.com> Use BufferPool

Test: adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall mediaserver
* Then, play videos.

Bug: 64121714

Change-Id: Ibcc93351ce7faad486e16a3fa0c96ecd5a0d539e
/hardware/google/av/codec2/hidl/client/client.cpp
f15a341c8d0e931321c4ba4fa8ab1da53b9504e2 26-Apr-2018 Wonsik Kim <wonsik@google.com> CCodec: support OMX metadata mode

Test: atest CtsMediaTestCases:MediaRecorderTest#testRecorderCamera
Bug: 78596504
Change-Id: I8cf12adb07f059f8b726c92e9260879c59218b47
/hardware/google/av/codec2/hidl/client/client.cpp
560cf1721b6796ec8db3ad105043318a589531b8 07-Apr-2018 Lajos Molnar <lajos@google.com> C2 HAL: hold onto input references while work is queued

Bug: 64121714
Test: screenrecord
Change-Id: I7c3bd0f42083b45de021f4225d99d81fa182b2f2
/hardware/google/av/codec2/hidl/client/client.cpp
0f9da7a2c27625c1ebbd7910d3749494bc78d58a 05-Apr-2018 Pawin Vongmasa <pawin@google.com> Handle death of Codec2.0 services properly

Test: adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall mediaserver
* Then, play videos.

Bug: 64121714
Bug: 31973802
Bug: 77611787
Change-Id: Icdda4252e556e706b44584c3bd048f10846d2ed8
/hardware/google/av/codec2/hidl/client/client.cpp
a27b51d5d62c3f28e97ef0a591ec3093d5e3978c 04-Apr-2018 Pawin Vongmasa <pawin@google.com> Make setOutputSurface take BlockPool id

Test: adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall mediaserver
* Then, play videos.

Bug: 64121714
Bug: 31973802
Change-Id: I4602a5f7c3c678a06fb6dbd6a5c17f15769dc6b3
/hardware/google/av/codec2/hidl/client/client.cpp
cf41dfeae4b7d5335b859611b23557b830f716ae 04-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove IComponentStore instance "v4l2"" into pi-dev
e1769037aea395c60e88cb882f2fd14d88036d24 31-Mar-2018 Lajos Molnar <lajos@google.com> codec2: implement getParamReflector for hidl

Bug: 64121714
Test: modified screenrecord
Change-Id: I30f9378b92af1d29b412411a962b52a0ed643520
/hardware/google/av/codec2/hidl/client/client.cpp
ec232287b40b0fca541d57420f5d84472cdde5b0 31-Mar-2018 Pawin Vongmasa <pawin@google.com> Remove IComponentStore instance "v4l2"

The V4L2 service will replace the dummy service (with instance name
"default") if debug.stagefright.ccodec_v4l2 is set to true.

Test: adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.ccodec_v4l2 true
adb shell killall hardware.google.media.c2@1.0-service
adb shell lshal | grep hardware.google.media.c2@1.0-service
adb logcat | grep V4L2

Bug: 64121714
Bug: 31973802
Change-Id: I31d1d724bf65c80070795a22db63189a5692c3f2
/hardware/google/av/codec2/hidl/client/client.cpp
4b311a2292d7de92258e2f9da1af45ef2c09aee0 30-Mar-2018 Pawin Vongmasa <pawin@google.com> Add setOutputSurface to IComponent

Test: adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall mediaserver
* Then, play videos.

Bug: 64121714
Bug: 31973802
Change-Id: I8823406b8a4bc314de5c408f3c3ddf84f2b1bf07
/hardware/google/av/codec2/hidl/client/client.cpp
0f04c4d93761015d0a138aff8a468b1583d684e4 23-Mar-2018 Pawin Vongmasa <pawin@google.com> Use libcodec2_hidl_client in CCodec

Test: adb setenforce 0
adb shell setprop debug.stagefright.ccodec true
adb shell setprop debug.stagefright.omx_default_rank 1000
adb shell killall hardware.google.media.c2@1.0-service-system
adb shell killall mediaserver
adb shell stagefright -S some_video.mp4

Bug: 64121714
Bug: 31973802
Bug: 74006396
Change-Id: Ic0d2c34ade78ef4edad44a6159b172751a20dde8
/hardware/google/av/codec2/hidl/client/client.cpp
e70f6835ac7bcb0c76c8ecc4f5c5d7871ec62834 17-Mar-2018 Pawin Vongmasa <pawin@google.com> Create libcodec2_hidl_client

Test: Builds

Bug: 31973802
Bug: 64121714
Change-Id: I7779daf7c66554b912984a9809294c105cc98c97
/hardware/google/av/codec2/hidl/client/client.cpp