XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
main.cpp File Reference
#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>
Include dependency graph for main.cpp:

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
 

Macro Definition Documentation

◆ FRAMEBUFFER_HEIGHT

#define FRAMEBUFFER_HEIGHT   500

◆ FRAMEBUFFER_WIDTH

#define FRAMEBUFFER_WIDTH   700

◆ MINIMP4_IMPLEMENTATION

#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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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 Documentation

◆ aurora_snd_card_list

Function Documentation

◆ audio_thread()

void * audio_thread ( void *  arg)

◆ blit_yuv420_to_fb()

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 
)

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ open_sound()

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

◆ play_video()

void play_video ( const char *  path)

uint8_t* buf = (uint8_t*)malloc(a_frame_bytes);

◆ test_demux()

void test_demux ( const char *  path)

◆ yuv420_to_bgra_neon()

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 
)

Variable Documentation

◆ app

◆ mainWin

ChWindow* mainWin

◆ sound

int sound