# US 2018/0027177 A1 · Workload scheduler for computing devices with camera

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0027177 A1
- Document ID: US20180027177A1
- Status: Published application
- Kind: A1
- Application number: 15/550,699
- Filed: 2015-03-23
- Published: 2018-01-25
- Earliest claimed: 2015-03-23
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: YUNBIAO LIN; JIANHUI DAI; NING LUO; CHUNBO CHEN
- Web page: https://patentgrep.com/patent/US20180027177A1

## CPC

- H04N 5/76: Television signal recording
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/505: {considering the load}
- H04N 5/772: {the recording apparatus and the television camera being placed in the same enclosure}
- H04N 23/57: Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
- H04N 23/62: Control of parameters via user interfaces
- H04N 23/651: {for reducing power consumption by affecting camera operations, e.g. sleep mode, hibernation mode or power off of selective parts of the camera}
- H04N 23/667: Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
- H04N 23/80: Camera processing pipelines; Components thereof
- H04N 23/63: by using electronic viewfinders
- H04N 23/65: Control of camera operation in relation to power supply
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Techniques are disclosed to control a camera device such that memory contention and power consumption is reduced during video processing routines, generally referred to herein as media tasks. In particular, a workload scheduler is implemented in a camera HAL and is configured to dispatch captured image frames in an alternating manner between competing media tasks such that the processing of those image frames is performed sequentially, and thus, eliminates or otherwise mitigates memory contention. To this end, techniques variously disclosed herein can be used to enable low-cost, low-memory configured devices to perform concurrent media tasks on captured high-definition video at high framerates, without an undesirable decrease in performance and an increase in power consumption.

## Claims

### Claim 1

An electronic device comprising:
a memory;
a camera subsystem comprising an image sensor and an image signal processor (ISP); and
a hardware abstraction layer (HAL) configured to communicatively couple to the camera subsystem and initiate image capture to perform media tasks based on input from a user-application, the HAL including a workload scheduler configured to dispatch captured image frames in an alternating manner to the media tasks such that video processing stages utilized during performance of the media tasks access the memory sequentially.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the media tasks include a live-preview of image frames, encoding of image frames, transmitting image frames to a wireless display, recording image frames to a media file, or some combination of these.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the workload scheduler is further configured to dispatch image frames at a rate of at least 20 image frames per second based on receiving an event signal from a clock source signaling at that rate.

### Claim 4 (depends on 3)

The electronic device of claim 3, wherein the electronic device further comprises a display controller, and wherein the clock source is a hardware clock implemented within the display controller.

### Claim 5 (depends on 4)

The electronic device of claim 4, wherein the event signal generated by the display controller comprises a vertical synchronization (VSYNC) event.

### Claim 6 (depends on 3)

The electronic device of claim 3, wherein the clock source comprises a timer implemented in hardware or software.

### Claim 7 (depends on 1)

The electronic device of claim 1, wherein the electronic device comprises a counter having a counter value that is incremented each time the workload scheduler receives an event signal.

### Claim 8 (depends on 7)

The electronic device of claim 7, wherein the media tasks comprise a first media task and a second media task, first media task being a live-preview of image frames and the second media task being recording image frames to a media file.

### Claim 9 (depends on 7)

The electronic device of claim 7, wherein the media tasks comprise a first media task and a second media task, and the workload scheduler dispatches an image frame to the first media task if the counter value equals an odd value and dispatches an image frame to the second media task if the counter value equals an even value.

### Claim 10 (depends on 7)

The electronic device of claim 7, wherein the media tasks comprise N media tasks, and the workload scheduler indexes each media task starting at 1 and ending at N, and the workload scheduler dispatches an image frame to a given media task based on the counter value equaling a given index of that media task.

### Claim 11 (depends on 1)

The electronic device of claim 1, wherein the video processing stages comprise at least one of a central processing unit (CPU), a graphics processing unit (GPU), a system-on-chip (SOC), gate level logic, a purpose-built silicon, and a microcontroller.

### Claim 12 (depends on 1)

The electronic device of claim 1, wherein the memory is a shared resource between the video processing stages.

### Claim 13 (depends on 1)

A mobile electronic device comprising the electronic device of claim 1.

### Claim 14

A non-transient computer-readable medium having a plurality of instructions encoded thereon that when executed by at least one processor cause a process to be carried out, the process being configured to:
initiate image capture by a camera subsystem based on input from a user-application to perform a first media task and a second media task;
receive a plurality of event signals from a clock source at a predefined rate; and
in response to receiving a first event signal of the plurality of event signals, dispatch a captured image frame from the camera subsystem to one of the first media task and the second media task; and
in response to receiving a second event signal of the plurality of event signals, dispatch a captured image frame from the camera subsystem to the other of the first media task or the second media task.

### Claim 15 (depends on 14)

The computer-readable medium of claim 14, wherein the first and second media tasks each comprise one of a live-preview of image frames, encoding of image frames, transmitting image frames to a wireless display, and recording image frames to a media file.

### Claim 16 (depends on 14)

The computer-readable medium of claim 14, the process being further configured to maintain a counter such that each received event signal from the clock source causes a counter value associated with the counter to increment.

### Claim 17 (depends on 14)

The computer-readable medium of claim 14, wherein each odd value of the counter value causes a received event signal to dispatch an image frame to the first media task, and each even value of the counter value causes a received event signal to dispatch an image frame to the second media task.

### Claim 18

A computer-implemented method for applying a workload scheduling policy in a camera hardware abstraction layer (HAL), the method comprising:
receiving a set of media tasks associated with image frames captured by a camera subsystem at an identified resolution and framerate;
determining if available memory bandwidth to perform the set of media tasks is sufficient to avoid power consumption above a given target consumption threshold during performance of the set of media tasks; and
in response to the available memory bandwidth being sufficient, applying a legacy workload scheduler policy; and
in response to the available memory bandwidth being insufficient, applying an optimized workload scheduler policy such that image frames are dispatched by the camera HAL to each media task of the set of media tasks in an alternating manner.

### Claim 19 (depends on 18)

The method of claim 18, wherein the act of determining whether the available memory bandwidth to perform video processing is sufficient further comprises comparing the identified resolution and framerate to a plurality of threshold values.

### Claim 20 (depends on 18)

The method of claim 18, wherein each media task of the set of media tasks comprises one of a live-preview of image frames, encoding of image frames, transmitting image frames to a wireless display, and recording image frames to a media file.

### Claim 21 (depends on 20)

The method of claim 20, wherein the set of media tasks comprises a first media task configured to perform live-preview of image frames, and a second media task configured to record captured image frames to the media file.

### Claim 22 (depends on 21)

The method of claim 21, wherein the act of applying the optimized workload scheduler policy further comprises:
receiving a plurality of event signals from a clock source at a predefined rate; and
in response to receiving a first event signal of the plurality of event signals, dispatching a captured image frame from the camera subsystem to one of the first media task and the second media task; and
in response to receiving a second event signal from the plurality of event signals, dispatching a captured image frame from the camera subsystem to the other of the first media task or the second media task.

### Claim 23 (depends on 22)

The method of claim 22, wherein the predefined rate is at least 20 event signals per second.

### Claim 24 (depends on 22)

The method of claim 22, wherein the plurality of event signals from the clock source are vertical synchronization (VSYNC) events.

### Claim 25 (depends on 22)

The method of claim 22, further comprising maintaining a counter such that each received event signal from the clock source causes a counter value associated with the counter to increment, wherein the set of media tasks comprise a first media task and a second media task, and wherein each odd value of the counter value causes a received event signal to dispatch a captured image frame to the first media task, and each even value of the counter value causes a received event signal to dispatch a captured image frame to the second media task.
