Closed Bug 1235030 Opened 8 years ago Closed 8 years ago

[camera][nexus6-l] can't record video, preview and taking picture are fine.

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.6 S5 - 1/15

People

(Reporter: fatseng, Unassigned)

References

Details

Attachments

(3 files)

Attached file camera.log
can't record video, preview and taking picture are fine.
Description:
can't record video

Pre-requisite: N/A

Repro Steps:
1) launch camera app


Actual:
can't record a video

Expected:
The user is able to record a video.

Repro Rates: 100%
See attached: logcat (timestamp is around 12-1 03:38)
Flags: needinfo?(mchiang)
12-25 04:49:52.200   342   629 W GraphicBufferAllocator: alloc(1920, 1080, 34, 00030022, ...) failed -22 (Invalid argument)
Flags: needinfo?(mchiang)
Farmer,

Per the log, QCOM_BSP is not defined.

status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h,
                                       PixelFormat format, int usage,
                                       buffer_handle_t* handle,
                                       int32_t* stride, uint32_t bufferSize)
{
    ATRACE_CALL();
    // make sure to not allocate a N x 0 or 0 x N buffer, since this is
    // allowed from an API stand-point allocate a 1x1 buffer instead.
    if (!w || !h)
        w = h = 1;

    // we have a h/w allocator and h/w buffer is requested
    status_t err;
#ifdef QCOM_BSP
    if(bufferSize) {
        err = mAllocDev->allocSize(mAllocDev, w, h,
                               format, usage, handle, stride, bufferSize);
    } else {
        err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
    }
    ALOGW_IF(err, "alloc(%u, %u, %d, %08x, %d ...) failed %d (%s)",
            w, h, format, usage, bufferSize, err, strerror(-err));
#else
    err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride);
    ALOGW_IF(err, "alloc(%u, %u, %d, %08x, ...) failed %d (%s)",
            w, h, format, usage, err, strerror(-err));
#endif
Flags: needinfo?(fatseng)
After enabling VENUS_COLOR_FORMAT, camera recording & video playback functions well.
Flags: needinfo?(fatseng)
Hi Michael, Android doesn't support is-board-platform-in-list, replace it by filter.
Attachment #8703484 - Flags: review?(mwu)
Attachment #8703484 - Flags: feedback?(mchiang)
M release also use filter. I have no concern.
Attached file for b2g-5.1.1_r29
Attachment #8706244 - Flags: review?(mwu)
Attachment #8706244 - Flags: review?(mwu) → review+
Comment on attachment 8703484 [details] [review]
enable VENUS_COLOR_FORMAT and MDSS_TARGET

Assuming this PR isn't needed anymore due to the new one for the newer branch. If it's still necessary, please rerequest review.
Attachment #8703484 - Flags: review?(mwu)
Comment on attachment 8703484 [details] [review]
enable VENUS_COLOR_FORMAT and MDSS_TARGET

Nexus-6-l.xml point to b2g-5.1.0_r1 branch now.
Therefore, it still needs you to review.
Attachment #8703484 - Flags: review?(mwu)
Attachment #8703484 - Flags: review?(mwu) → review+
checkin-needed
Please help merge code.
Thanks.
Keywords: checkin-needed
Blocks: 1239938
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: