|
XenevaOS
|
#include "minimp4.h"#include <arm_neon.h>#include <chitralekha.h>#include <widgets/window.h>#include <widgets/base.h>#include <sys/_keproc.h>#include <sys/_kefile.h>#include <sys/iocodes.h>#include <pthread.h>#include "h264bsd/h264bsd_decoder.h"#include "libhelix-aac/aacdec.h"#include <stdio.h>#include <string.h>
Classes | |
| struct | Mp4File |
| struct | _sound_card_list |
Macros | |
| #define | MINIMP4_IMPLEMENTATION 1 |
| #define | FRAMEBUFFER_WIDTH 700 |
| #define | FRAMEBUFFER_HEIGHT 500 |
Typedefs | |
| typedef struct _sound_card_list | aurora_snd_card_list |
Functions | |
| void | yuv420_to_bgra_neon (const uint8_t *y_plane, int y_stride, const uint8_t *u_plane, int u_stride, const uint8_t *v_plane, int v_stride, uint8_t *dst, int dst_stride, int width, int height) |
| void | blit_yuv420_to_fb (const uint8_t *y_plane, int y_stride, const uint8_t *u_plane, int u_stride, const uint8_t *v_plane, int v_stride, int vid_w, int vid_h, uint32_t *fb, int fb_width, int fb_height) |
| void | test_demux (const char *path) |
| void | play_video (const char *path) |
| void | open_sound () |
| void * | audio_thread (void *arg) |
| int | main (int argc, char *argv[]) |
Variables | |
| ChitralekhaApp * | app |
| ChWindow * | mainWin |
| int | sound |
| #define FRAMEBUFFER_HEIGHT 500 |
| #define FRAMEBUFFER_WIDTH 700 |
| #define MINIMP4_IMPLEMENTATION 1 |
BSD 2-Clause License
Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| typedef struct _sound_card_list aurora_snd_card_list |
| void * audio_thread | ( | void * | arg | ) |
| void blit_yuv420_to_fb | ( | const uint8_t * | y_plane, |
| int | y_stride, | ||
| const uint8_t * | u_plane, | ||
| int | u_stride, | ||
| const uint8_t * | v_plane, | ||
| int | v_stride, | ||
| int | vid_w, | ||
| int | vid_h, | ||
| uint32_t * | fb, | ||
| int | fb_width, | ||
| int | fb_height | ||
| ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| void open_sound | ( | ) |
uint_2 must hold the sound card number to use
just print all card name once
let's use default first sound card here
| void play_video | ( | const char * | path | ) |
uint8_t* buf = (uint8_t*)malloc(a_frame_bytes);
| void test_demux | ( | const char * | path | ) |
| void yuv420_to_bgra_neon | ( | const uint8_t * | y_plane, |
| int | y_stride, | ||
| const uint8_t * | u_plane, | ||
| int | u_stride, | ||
| const uint8_t * | v_plane, | ||
| int | v_stride, | ||
| uint8_t * | dst, | ||
| int | dst_stride, | ||
| int | width, | ||
| int | height | ||
| ) |
| ChitralekhaApp* app |
| ChWindow* mainWin |
| int sound |