#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
Go to the source code of this file.
Defines | |
#define | FIXP (1<<16) |
#define | MY_PI 205887 |
#define | SCALEBITS 8 |
#define | ONE_HALF (1 << (SCALEBITS - 1)) |
#define | FIX(x) ((int) ((x) * (1L<<SCALEBITS) + 0.5)) |
#define | DEFAULT_WIDTH 352 |
#define | DEFAULT_HEIGHT 288 |
#define | DEFAULT_NB_PICT 50 |
#define | W 256 |
#define | H 256 |
Typedefs | |
typedef unsigned char | UINT8 |
Functions | |
static int64_t | int_pow (int64_t a, int p) |
static int64_t | int_sin (int64_t a) |
static void | rgb24_to_yuv420p (UINT8 *lum, UINT8 *cb, UINT8 *cr, UINT8 *src, int width, int height) |
static void | pgmyuv_save (const char *filename, int w, int h, unsigned char *rgb_tab) |
static void | put_pixel (int x, int y, int r, int g, int b) |
static int | ipol (uint8_t *src, int x, int y) |
static void | gen_image (int num, int w, int h) |
static void | init_demo (const char *filename) |
int | main (int argc, char **argv) |
Variables | |
unsigned char * | rgb_tab |
int | width |
int | height |
int | wrap |
unsigned char | tab_r [256 *256] |
unsigned char | tab_g [256 *256] |
unsigned char | tab_b [256 *256] |
int | teta = 0 |
int | h_cos [360] |
int | h_sin [360] |
#define DEFAULT_HEIGHT 288 |
#define DEFAULT_NB_PICT 50 |
#define DEFAULT_WIDTH 352 |
#define FIX | ( | x | ) | ((int) ((x) * (1L<<SCALEBITS) + 0.5)) |
Definition at line 53 of file rotozoom.c.
#define FIXP (1<<16) |
#define H 256 |
Definition at line 241 of file rotozoom.c.
#define MY_PI 205887 |
#define ONE_HALF (1 << (SCALEBITS - 1)) |
Definition at line 52 of file rotozoom.c.
#define SCALEBITS 8 |
Definition at line 51 of file rotozoom.c.
#define W 256 |
Definition at line 240 of file rotozoom.c.
typedef unsigned char UINT8 |
Definition at line 54 of file rotozoom.c.
static void gen_image | ( | int | num, | |
int | w, | |||
int | h | |||
) | [static] |
static void init_demo | ( | const char * | filename | ) | [static] |
static int64_t int_pow | ( | int64_t | a, | |
int | p | |||
) | [static] |
static int64_t int_sin | ( | int64_t | a | ) | [static] |
static int ipol | ( | uint8_t * | src, | |
int | x, | |||
int | y | |||
) | [static] |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 277 of file rotozoom.c.
static void pgmyuv_save | ( | const char * | filename, | |
int | w, | |||
int | h, | |||
unsigned char * | rgb_tab | |||
) | [static] |
static void put_pixel | ( | int | x, | |
int | y, | |||
int | r, | |||
int | g, | |||
int | b | |||
) | [static] |
int h_cos[360] |
int h_sin[360] |
int height |
Definition at line 159 of file rotozoom.c.
Referenced by apply_loop_filter(), bfi_decode_frame(), bitplane_decoding(), bmp_decode_frame(), bmp_encode_frame(), build_feed_streams(), calculate_visual_weight(), common_init(), copy_picture_attributes(), dc1394_read_common(), decode_frame(), decode_i2_frame(), decode_i_frame(), decode_p_frame(), decode_vol_header(), decode_vop_header(), encode_frame(), encode_picture_lossless(), ff_jpegls_decode_picture(), ff_mjpeg_decode_sof(), ff_print_debug_info(), flv_h263_decode_picture_header(), gif_read_image(), gif_write_header(), glue(), grab_read_header(), gray16swap(), gray16togray(), graytogray16(), h263_decode_picture_header(), idcin_read_header(), img_convert(), interleaveBytes_TMPL(), libopenjpeg_decode_frame(), main(), mimic_decode_frame(), mm_read_header(), mov_read_tkhd(), mpeg1_decode_sequence(), msnwc_tcp_probe(), nuv_header(), paint_mouse_pointer(), planarCopy(), put_pixel(), qtrle_decode_frame(), rgb24toyv12_TMPL(), siff_parse_vbv1(), smc_decode_stream(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_decode_frame(), swf_write_header(), theora_header(), uyvytoyv12_TMPL(), v4l2_read_header(), vfw_read_header(), video_image_display(), vu9_to_vu12_TMPL(), xan_wc3_decode_frame(), yuv422ptouyvy_TMPL(), yuv422ptoyuy2_TMPL(), yuvPlanartouyvy_TMPL(), yuvPlanartoyuy2_TMPL(), yuy2toyv12_TMPL(), yv12touyvy_TMPL(), yv12touyvy_unscaled_altivec(), yv12toyuy2_TMPL(), yv12toyuy2_unscaled_altivec(), yvu9_to_yuy2_TMPL(), and yvu9toyv12_TMPL().
unsigned char* rgb_tab |
unsigned char tab_b[256 *256] |
unsigned char tab_g[256 *256] |
unsigned char tab_r[256 *256] |
int teta = 0 |
int width |
Definition at line 159 of file rotozoom.c.
Referenced by apply_loop_filter(), bitplane_decoding(), bmp_decode_frame(), build_feed_streams(), calculate_visual_weight(), common_init(), copy_block(), dc1394_read_common(), decode_frame(), decode_i2_frame(), decode_i_frame(), decode_p_frame(), decode_vol_header(), decode_vop_header(), encode_frame(), encode_picture_lossless(), encode_picture_ls(), ff_jpegls_decode_picture(), ff_mjpeg_decode_sof(), ff_print_debug_info(), flv_h263_decode_picture_header(), gif_read_image(), gif_write_header(), glue(), grab_read_header(), h263_decode_picture_header(), idcin_read_header(), img_convert(), interleaveBytes_TMPL(), libopenjpeg_decode_frame(), main(), matroska_read_header(), mimic_decode_frame(), mm_read_header(), mov_read_tkhd(), mpeg1_decode_sequence(), msnwc_tcp_probe(), nuv_header(), paint_mouse_pointer(), put_pixel(), qtrle_encode_line(), rgb24toyv12_TMPL(), rpza_decode_stream(), siff_parse_vbv1(), smc_decode_stream(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_decode_frame(), svq1_write_header(), swf_write_header(), theora_header(), tiff_unpack_strip(), uyvytoyv12_TMPL(), v4l2_read_header(), vb_decode_framedata(), vfw_read_header(), video_audio_display(), video_image_display(), vu9_to_vu12_TMPL(), xan_wc3_copy_pixel_run(), xan_wc3_decode_frame(), xan_wc3_output_pixel_run(), yuv422ptouyvy_TMPL(), yuv422ptoyuy2_TMPL(), yuvPlanartouyvy_TMPL(), yuvPlanartoyuy2_TMPL(), yuy2toyv12_TMPL(), yv12touyvy_TMPL(), yv12touyvy_unscaled_altivec(), yv12toyuy2_TMPL(), yv12toyuy2_unscaled_altivec(), yvu9_to_yuy2_TMPL(), and yvu9toyv12_TMPL().
int wrap |
Definition at line 159 of file rotozoom.c.
Referenced by blend_subrect(), ff_clean_intra_table_entries(), ff_fix_long_p_mvs(), ff_h263_update_motion_val(), ff_msmpeg4_coded_block_pred(), glue(), main(), mpeg_decode_slice(), msmpeg4_pred_dc(), put_pixel(), rgb24_to_yuv420p(), vc1_coded_block_pred(), vc1_i_pred_dc(), vc1_pred_b_mv(), vc1_pred_dc(), vc1_pred_mv(), and wmv2_pred_motion().