type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
defines |
#define render_obj_layer(type, dest, _start, _end) \ |
defines |
#define fill_line_bg(type, dest, _start, _end) \ |
defines |
#define render_layers(tile_alpha, obj_alpha, dest) \ |
defines |
#define render_condition_alpha \ |
defines |
#define render_condition_fade \ |
defines |
#define render_layers_color_effect(renderer, layer_condition, \ |
defines |
#define render_layers_conditional(tile_alpha, obj_alpha, dest) \ |
defines |
#define window_x_coords(window_number) \ |
defines |
#define window_coords(window_number) \ |
defines |
#define render_window_segment(type, start, end, window_type) \ |
defines |
#define render_window_segment_unequal(type, start, end, window_type) \ |
defines |
#define render_window_segment_clip(type, clip_start, clip_end, start, end, \ |
defines |
#define render_window_clip_1(type, start, end) \ |
defines |
#define render_window_clip_obj(type, start, end); \ |
defines |
#define render_window_segment_clip_obj(type, clip_start, clip_end, start, \ |
defines |
#define render_window_clip_1_obj(type, start, end) \ |
defines |
#define render_window_single(type, window_number) \ |
defines |
#define render_window_multi(type, front, back) \ |
defines |
#define render_scanline_window_builder(type) \ |
defines |
#define integer_scale_copy_2() \ |
defines |
#define integer_scale_copy_3() \ |
defines |
#define integer_scale_copy_4() \ |
defines |
#define integer_scale_horizontal(scale_factor) \ |
defines |
#define video_savestate_builder(type) \ |
functions | void Ge_Finish_Callback(int id, void *arg)
{
} |
functions | void order_obj(u32 video_mode)
{
s32 obj_num, priority, row;
s32 obj_x, obj_y;
s32 obj_size, obj_mode;
s32 obj_width, obj_height;
u32 obj_priority;
u32 obj_attribute_0, obj_attribute_1, obj_attribute_2;
s32 vcount = io_registers[REG_VCOUNT];
u32 partial_tile_run, partial_tile_offset;
u32 pixel_run;
... |
functions | u32 order_layers(u32 layer_flags)
{
s32 priority, layer_number;
layer_count = 0;
for(priority = 3; priority >= 0; priority--)
{
for(layer_number = 3; layer_number >= 0; layer_number--)
{
if(((layer_flags >> layer_number) & 1) &&
((io_registers[REG_BG0CNT + layer_number] & 0x03) == priority... |
functions | void expand_blend(u32 *screen_src_ptr, u16 *screen_dest_ptr,
u32 start, u32 end)
{
u32 pixel_pair;
u32 pixel_top, pixel_bottom;
u32 bldalpha = io_registers[REG_BLDALPHA];
u32 blend_a = bldalpha & 0x1F;
u32 blend_b = (bldalpha >> 8) & 0x1F;
u32 i;
if(blend_a > 16)
blend_a = 16;
if(blend_b > 16)
... |
functions | void expand_darken(u16 *screen_src_ptr, u16 *screen_dest_ptr,
u32 start, u32 end)
{
u32 pixel_top;
s32 blend = 16 - (io_registers[REG_BLDY] & 0x1F);
u32 i;
if(blend < 0)
blend = 0;
expand_loop(darken, effect_condition_fade(pixel_top), pixel_top);
} |
functions | void expand_brighten(u16 *screen_src_ptr, u16 *screen_dest_ptr,
u32 start, u32 end)
{
u32 pixel_top;
u32 blend = io_registers[REG_BLDY] & 0x1F;
u32 upper;
u32 i;
if(blend > 16)
blend = 16;
upper = ((0x07E0F81F * blend) >> 4) & 0x07E0F81F;
blend = 16 - blend;
expand_loop(brighten, effect_conditio... |
functions | void expand_darken_partial_alpha(u32 *screen_src_ptr, u16 *screen_dest_ptr,
u32 start, u32 end)
{
s32 blend = 16 - (io_registers[REG_BLDY] & 0x1F);
u32 pixel_pair;
u32 pixel_top, pixel_bottom;
u32 bldalpha = io_registers[REG_BLDALPHA];
u32 blend_a = bldalpha & 0x1F;
u32 blend_b = (bldalpha >> 8) & 0x1F;
... |
functions | void expand_brighten_partial_alpha(u32 *screen_src_ptr, u16 *screen_dest_ptr,
u32 start, u32 end)
{
s32 blend = io_registers[REG_BLDY] & 0x1F;
u32 pixel_pair;
u32 pixel_top, pixel_bottom;
u32 bldalpha = io_registers[REG_BLDALPHA];
u32 blend_a = bldalpha & 0x1F;
u32 blend_b = (bldalpha >> 8) & 0x1F;
u32 u... |
functions | void render_scanline_tile(u16 *scanline, u32 dispcnt)
{
u32 current_layer;
u32 layer_order_pos;
u32 bldcnt = io_registers[REG_BLDCNT];
render_scanline_layer_functions_tile();
render_layers_color_effect(render_layers, layer_count,
render_condition_alpha, render_condition_fade, 0, 240);
} |
functions | void render_scanline_bitmap(u16 *scanline, u32 dispcnt)
{
u32 bldcnt = io_registers[REG_BLDCNT];
render_scanline_layer_functions_bitmap();
u32 current_layer;
u32 layer_order_pos;
fill_line_bg(normal, scanline, 0, 240);
for(layer_order_pos = 0; layer_order_pos < layer_count; layer_order_pos++)
{
curr... |
functions | void render_scanline_conditional_tile(u32 start, u32 end, u16 *scanline,
u32 enable_flags, u32 dispcnt, u32 bldcnt, tile_layer_render_struct
*layer_renderers)
{
u32 current_layer;
u32 layer_order_pos = 0;
render_layers_color_effect(render_layers_conditional,
(layer_count && (enable_flags & 0x1F)),
((enab... |
functions | void render_scanline_conditional_bitmap(u32 start, u32 end, u16 *scanline,
u32 enable_flags, u32 dispcnt, u32 bldcnt, bitmap_layer_render_struct
*layer_renderers)
{
u32 current_layer;
u32 layer_order_pos;
fill_line_bg(normal, scanline, start, end);
for(layer_order_pos = 0; layer_order_pos < layer_count; lay... |
functions | void update_scanline()
{
u32 pitch = get_screen_pitch();
u32 dispcnt = io_registers[REG_DISPCNT];
u32 display_flags = (dispcnt >> 8) & 0x1F;
u32 vcount = io_registers[REG_VCOUNT];
u16 *screen_offset = get_screen_pixels() + (vcount * pitch);
u32 video_mode = dispcnt & 0x07;
u32 current_layer;
// If OAM ... |
functions | void flip_screen()
{
if(video_direct == 0)
{
u32 *old_ge_cmd_ptr = ge_cmd_ptr;
sceKernelDcacheWritebackAll();
// Render the current screen
ge_cmd_ptr = ge_cmd + 2;
GE_CMD(TBP0, ((u32)screen_pixels & 0x00FFFFFF));
GE_CMD(TBW0, (((u32)screen_pixels & 0xFF000000) >> 8) |
GBA_SCREEN_WIDTH)... |
functions | void flip_screen()
{
if((video_scale != 1) && (current_scale != unscaled))
{
s32 x, y;
s32 x2, y2;
u16 *screen_ptr = get_screen_pixels();
u16 *current_scanline_ptr = screen_ptr;
u32 pitch = get_screen_pitch();
u16 current_pixel;
u32 i;
switch(video_scale)
{
case 2:
... |
functions | void update_screen()
{
if(!skip_next_frame)
flip_screen();
} |
functions | void init_video()
{
sceDisplaySetMode(0, PSP_SCREEN_WIDTH, PSP_SCREEN_HEIGHT);
sceDisplayWaitVblankStart();
sceDisplaySetFrameBuf((void*)psp_gu_vram_base, PSP_LINE_SIZE,
PSP_DISPLAY_PIXEL_FORMAT_565, PSP_DISPLAY_SETBUF_NEXTFRAME);
sceGuInit();
sceGuStart(GU_DIRECT, display_list);
sceGuDrawBuffer(GU_PS... |
functions | void init_video()
{
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_NOPARACHUTE);
screen = SDL_SetVideoMode(240 * video_scale, 160 * video_scale, 16, 0);
SDL_ShowCursor(0);
} |
functions | void video_resolution_large()
{
if(video_direct != 1)
{
video_direct = 1;
screen_pixels = psp_gu_vram_base;
screen_pitch = 512;
sceGuStart(GU_DIRECT, display_list);
sceGuDispBuffer(PSP_SCREEN_WIDTH, PSP_SCREEN_HEIGHT,
(void*)0, PSP_LINE_SIZE);
sceGuFinish();
} |
functions | void set_gba_resolution(video_scale_type scale)
{
u32 filter_linear = 0;
screen_scale = scale;
switch(scale)
{
case unscaled:
screen_vertex[2] = 120 + 0.5;
screen_vertex[3] = 56 + 0.5;
screen_vertex[7] = GBA_SCREEN_WIDTH + 120 - 0.5;
screen_vertex[8] = GBA_SCREEN_HEIGHT + 56 - 0.5;
... |
functions | void video_resolution_small()
{
if(video_direct != 0)
{
set_gba_resolution(screen_scale);
video_direct = 0;
screen_pixels = screen_texture;
screen_flip = 0;
screen_pitch = 240;
sceGuStart(GU_DIRECT, display_list);
sceGuDispBuffer(PSP_SCREEN_WIDTH, PSP_SCREEN_HEIGHT,
(void*)0, PSP_LI... |
functions | void clear_screen(u16 color)
{
u32 i;
u16 *src_ptr = get_screen_pixels();
sceGuSync(0, 0);
for(i = 0; i < (512 * 272); i++, src_ptr++)
{
*src_ptr = color;
} |
functions | void video_resolution_large()
{
if(current_scale != unscaled)
{
current_scale = unscaled;
screen = SDL_SetVideoMode(480, 272, 16, 0);
resolution_width = 480;
resolution_height = 272;
} |
functions | void video_resolution_small()
{
if(current_scale != screen_scale)
{
current_scale = screen_scale;
screen = SDL_SetVideoMode(small_resolution_width * video_scale,
small_resolution_height * video_scale, 16, 0);
resolution_width = small_resolution_width;
resolution_height = small_resolution_height... |
functions | void set_gba_resolution(video_scale_type scale)
{
if(screen_scale != scale)
{
screen_scale = scale;
switch(scale)
{
case unscaled:
case scaled_aspect:
case fullscreen:
small_resolution_width = 240 * video_scale;
small_resolution_height = 160 * video_scale;
break... |
functions | void clear_screen(u16 color)
{
u16 *dest_ptr = get_screen_pixels();
u32 line_skip = get_screen_pitch() - screen->w;
u32 x, y;
for(y = 0; y < screen->h; y++)
{
for(x = 0; x < screen->w; x++, dest_ptr++)
{
*dest_ptr = color;
} |
functions | void blit_to_screen(u16 *src, u32 w, u32 h, u32 dest_x, u32 dest_y)
{
u32 pitch = get_screen_pitch();
u16 *dest_ptr = get_screen_pixels() + dest_x + (dest_y * pitch);
u16 *src_ptr = src;
u32 line_skip = pitch - w;
u32 x, y;
for(y = 0; y < h; y++)
{
for(x = 0; x < w; x++, src_ptr++, dest_ptr++)
{
... |
functions | void print_string_ext(const char *str, u16 fg_color, u16 bg_color,
u32 x, u32 y, void *_dest_ptr, u32 pitch, u32 pad)
{
u16 *dest_ptr = (u16 *)_dest_ptr + (y * pitch) + x;
u8 current_char = str[0];
u32 current_row;
u32 glyph_offset;
u32 i = 0, i2, i3;
u32 str_index = 1;
u32 current_x = x;
while(curren... |
functions | void print_string(const char *str, u16 fg_color, u16 bg_color,
u32 x, u32 y)
{
print_string_ext(str, fg_color, bg_color, x, y, get_screen_pixels(),
get_screen_pitch(), 0);
} |
functions | void print_string_pad(const char *str, u16 fg_color, u16 bg_color,
u32 x, u32 y, u32 pad)
{
print_string_ext(str, fg_color, bg_color, x, y, get_screen_pixels(),
get_screen_pitch(), pad);
} |
includes |
#include <linux/mm.h> |
includes | #include <linux/slab.h> |
includes | #include <linux/interrupt.h> |
includes | #include <linux/module.h> |
includes | #include <linux/capability.h> |
includes | #include <linux/completion.h> |
includes | #include <linux/personality.h> |
includes | #include <linux/tty.h> |
includes | #include <linux/iocontext.h> |
includes | #include <linux/key.h> |
includes | #include <linux/security.h> |
includes | #include <linux/cpu.h> |
includes | #include <linux/acct.h> |
includes | #include <linux/tsacct_kern.h> |
includes | #include <linux/file.h> |
includes | #include <linux/fdtable.h> |
includes | #include <linux/freezer.h> |
includes | #include <linux/binfmts.h> |
includes | #include <linux/nsproxy.h> |
includes | #include <linux/pid_namespace.h> |
includes | #include <linux/ptrace.h> |
includes | #include <linux/profile.h> |
includes | #include <linux/mount.h> |
includes | #include <linux/proc_fs.h> |
includes | #include <linux/kthread.h> |
includes | #include <linux/mempolicy.h> |
includes | #include <linux/taskstats_kern.h> |
includes | #include <linux/delayacct.h> |
includes | #include <linux/cgroup.h> |
includes | #include <linux/syscalls.h> |
includes | #include <linux/signal.h> |
includes | #include <linux/posix-timers.h> |
includes | #include <linux/cn_proc.h> |
includes | #include <linux/mutex.h> |
includes | #include <linux/futex.h> |
includes | #include <linux/pipe_fs_i.h> |
includes | #include <linux/audit.h> |
includes | #include <linux/resource.h> |
includes | #include <linux/blkdev.h> |
includes | #include <linux/task_io_accounting_ops.h> |
includes | #include <linux/tracehook.h> |
includes | #include <linux/fs_struct.h> |
includes | #include <linux/init_task.h> |
includes | #include <linux/perf_event.h> |
includes | #include <trace/events/sched.h> |
includes | #include <linux/hw_breakpoint.h> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.