This program plays QuickTime movies on GR-Peach
Dependencies: AsciiFont GR-PEACH_video GraphicsFramework LCD_shield_config R_BSP TLV320_RBSP mbed-rtos mbed
Requirements
- GR-Peach
- GR-Peach Audio Camera Shield or I²S compatible audio DAC
- GR-Peach LCD Shield
- USB memory stick
How to play movie files
- Encode movie files
encode movies with ffmpeg
$ ffmpeg -i <input -ar 44100 -acodec pcm_s16le -s 480x270 -vcodec mjpeg -q:v 3 -movflags faststart -threads 4 -vf fps=30 <output>.mov
- Copy movies to the root directory of USB memory
- Build and upload this program
- Run it
USBHost/USBHost/IUSBEnumerator.h@1:3e638b9e91cd, 2017-03-12 (annotated)
- Committer:
- mtkrtk
- Date:
- Sun Mar 12 02:01:46 2017 +0000
- Revision:
- 1:3e638b9e91cd
- Parent:
- 0:d0f130e27d32
fixed lcd contrast pin
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mtkrtk | 0:d0f130e27d32 | 1 | /* mbed USBHost Library |
mtkrtk | 0:d0f130e27d32 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mtkrtk | 0:d0f130e27d32 | 3 | * |
mtkrtk | 0:d0f130e27d32 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mtkrtk | 0:d0f130e27d32 | 5 | * you may not use this file except in compliance with the License. |
mtkrtk | 0:d0f130e27d32 | 6 | * You may obtain a copy of the License at |
mtkrtk | 0:d0f130e27d32 | 7 | * |
mtkrtk | 0:d0f130e27d32 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mtkrtk | 0:d0f130e27d32 | 9 | * |
mtkrtk | 0:d0f130e27d32 | 10 | * Unless required by applicable law or agreed to in writing, software |
mtkrtk | 0:d0f130e27d32 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mtkrtk | 0:d0f130e27d32 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mtkrtk | 0:d0f130e27d32 | 13 | * See the License for the specific language governing permissions and |
mtkrtk | 0:d0f130e27d32 | 14 | * limitations under the License. |
mtkrtk | 0:d0f130e27d32 | 15 | */ |
mtkrtk | 0:d0f130e27d32 | 16 | |
mtkrtk | 0:d0f130e27d32 | 17 | #ifndef IUSBENUMERATOR_H_ |
mtkrtk | 0:d0f130e27d32 | 18 | #define IUSBENUMERATOR_H_ |
mtkrtk | 0:d0f130e27d32 | 19 | |
mtkrtk | 0:d0f130e27d32 | 20 | #include "stdint.h" |
mtkrtk | 0:d0f130e27d32 | 21 | #include "USBEndpoint.h" |
mtkrtk | 0:d0f130e27d32 | 22 | |
mtkrtk | 0:d0f130e27d32 | 23 | /* |
mtkrtk | 0:d0f130e27d32 | 24 | Generic interface to implement for "smart" USB enumeration |
mtkrtk | 0:d0f130e27d32 | 25 | */ |
mtkrtk | 0:d0f130e27d32 | 26 | |
mtkrtk | 0:d0f130e27d32 | 27 | class IUSBEnumerator |
mtkrtk | 0:d0f130e27d32 | 28 | { |
mtkrtk | 0:d0f130e27d32 | 29 | public: |
mtkrtk | 0:d0f130e27d32 | 30 | virtual void setVidPid(uint16_t vid, uint16_t pid) = 0; |
mtkrtk | 0:d0f130e27d32 | 31 | virtual bool parseInterface(uint8_t intf_nb, uint8_t intf_class, uint8_t intf_subclass, uint8_t intf_protocol) = 0; //Must return true if the interface should be parsed |
mtkrtk | 0:d0f130e27d32 | 32 | virtual bool useEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir) = 0; //Must return true if the endpoint will be used |
mtkrtk | 0:d0f130e27d32 | 33 | }; |
mtkrtk | 0:d0f130e27d32 | 34 | |
mtkrtk | 0:d0f130e27d32 | 35 | #endif /*IUSBENUMERATOR_H_*/ |
mtkrtk | 0:d0f130e27d32 | 36 | |
mtkrtk | 0:d0f130e27d32 | 37 |