search for: offset_x

Displaying 20 results from an estimated 28 matches for "offset_x".

Did you mean: offset_r
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...- SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); - do { cairo_matrix_transform_point (&movie->matrix, x, y); } while ((movie = movie->parent)); - - *x /= player->scale_x; - *y /= player->scale_y; - *x += SWFDEC_TWIPS_TO_DOUBLE (player->offset_x); - *y += SWFDEC_TWIPS_TO_DOUBLE (player->offset_y); } void @@ -507,12 +500,6 @@ swfdec_movie_global_to_local (SwfdecMovi { if (movie->parent) { swfdec_movie_global_to_local (movie->parent, x, y); - } else { - SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)...
2007 Nov 04
0
7 commits - libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_field_movie_html.c
...cTextFieldMovie *text, int *num, cairo_t *cr, const SwfdecParagraph *paragraphs, @@ -559,43 +621,21 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num, pango_layout_get_pixel_size (playout, &layout.width, &layout.height); layout.width += layout.offset_x + block->right_margin; + layout.last_line_offset_y = 0; // figure out if we need to add extra height because of the size of the // line break character if (pango_layout_get_text (playout)[strlen (pango_layout_get_text (playout)) - 1] == '\n') { - PangoA...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...idth = player->stage_width >= 0 ? player->stage_width : (int) player->width; + height = player->stage_height >= 0 ? player->stage_height : (int) player->height; + if (height == 0 || width == 0) { + player->scale_x = 1.0; + player->scale_y = 1.0; + player->offset_x = 0; + player->offset_y = 0; + return; + } + if (player->width == 0 || player->height == 0) { + scale_x = 1.0; + scale_y = 1.0; + } else { + scale_x = (double) width / player->width; + scale_y = (double) height / player->height; + } + switch (player->scale_m...
2007 Dec 05
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_policy_loader.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...vie, cairo_t *cr, cairo_fill (cr); } - cairo_move_to (cr, x, y); - skipped = 0; do { if (++linenum < MIN (text_movie->scroll, text_movie->scroll_max)) @@ -833,21 +831,18 @@ swfdec_text_field_movie_render (SwfdecMovie *movie, cairo_t *cr, x + layout->offset_x + rect.x + rect.width < limit.x0) continue; + cairo_move_to (cr, x, y); + if (pango_layout_iter_at_last_line (iter_line)) cairo_rel_move_to (cr, 0, layout->last_line_offset_y); cairo_rel_move_to (cr, layout->offset_x + rect.x, pango_layout_iter_get_baseline (it...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...stage_width : (int) player->width; - player->stage.height = player->stage_height >= 0 ? player->stage_height : (int) player->height; - if (player->stage.height == 0 || player->stage.width == 0) { - player->scale_x = 1.0; - player->scale_y = 1.0; - player->offset_x = 0; - player->offset_y = 0; + priv->stage.width = priv->stage_width >= 0 ? priv->stage_width : (int) priv->width; + priv->stage.height = priv->stage_height >= 0 ? priv->stage_height : (int) priv->height; + if (priv->stage.height == 0 || priv->stage.widt...
2005 Feb 09
1
Trying to do windows encoding dll
...t) void startenc(int width, int height, int bitrate) { ogg_stream_init(&enc_stream, 290482); enc_width = width; enc_height = height; theora_info ti; theora_info_init(&ti); ti.width=width; ti.height=height; // must be /16 ti.frame_width=width; ti.frame_height=height; ti.offset_x=0; ti.offset_y=0; ti.colorspace=OC_CS_UNSPECIFIED; ti.target_bitrate=bitrate; ti.dropframes_p=0; ti.quick_p=1; ti.keyframe_auto_p=1; ti.keyframe_frequency=64; ti.keyframe_frequency_force=64; ti.keyframe_data_target_bitrate=bitrate*1.5; ti.keyframe_auto_threshold=80; ti.keyfra...
2004 Oct 02
2
Theora decode problem
...goes into this area anyway and promptly blows up because the moving vectors are garbage. I'm not sure what I'm doing wrong. Here's my encryption initialization: theora_info_init(&m_ti); m_ti.width=176; m_ti.height=144; m_ti.frame_width=176; m_ti.frame_height=144; m_ti.offset_x=0; m_ti.offset_y=0; m_ti.fps_denominator=(ogg_uint32_t)1000000.0; m_ti.fps_numerator=10 * m_ti.fps_denominator; //10 is 10 frames per second m_ti.aspect_numerator=1; m_ti.aspect_denominator=1; m_ti.colorspace=OC_CS_UNSPECIFIED; m_ti.target_bitrate=0; // 0 if we are specifying qua...
2007 Jan 06
7
FFmpeg Theora encoding patch
Hi, Attached is my patch to add theora encoding to ffmpeg's libavcodec (by using libtheora). I am requesting help to fix the bug I mention below and am seeking general comments before I submit the patch properly. Files encoded using this encoder have a problem playing in VLC. The files will not play unless "Drop late frames" has been unticked in the advanced video settings.
2006 Oct 06
0
V4L + Theora small app...
...( "+++ OGG_OpenClip() \n" ); theora_info_init( &tTheoraInfo ); tTheoraInfo.width = iVideoX; tTheoraInfo.height = iVideoY; tTheoraInfo.frame_width = FRAME_WIDTH; tTheoraInfo.frame_height = FRAME_HEIGHT; tTheoraInfo.offset_x = iFrameOffsetX; tTheoraInfo.offset_y = iFrameOffsetY; tTheoraInfo.fps_numerator = iVideoFPSnum; tTheoraInfo.fps_denominator = iVideoFPSden; tTheoraInfo.aspect_numerator = iVideoAspNum; tTheoraInfo.aspect_denominator = iVideoAspDen;...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...eld_movie, SWFDEC_TYPE_MOVIE) #define EXTRA_MARGIN 2 +#define BULLET_MARGIN 36 static void swfdec_text_field_movie_update_extents (SwfdecMovie *movie, @@ -543,7 +544,7 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num, // set rendering position layout.offset_x = block->left_margin + block->block_indent; if (paragraphs[i].bullet) - layout.offset_x += 36 * 20; + layout.offset_x += SWFDEC_DOUBLE_TO_TWIPS (BULLET_MARGIN); width = SWFDEC_MOVIE (text)->original_extents.x1 - SWFDEC_MOVIE (text)->original_extents.x0 - block->righ...
2020 Feb 07
0
[PATCH 3/6] drm/ast: Use simple encoder
...4 --- a/drivers/gpu/drm/ast/ast_drv.h +++ b/drivers/gpu/drm/ast/ast_drv.h @@ -121,6 +121,7 @@ struct ast_private { unsigned int next_index; } cursor; + struct drm_encoder encoder; struct drm_plane primary_plane; struct drm_plane cursor_plane; @@ -238,13 +239,8 @@ struct ast_crtc { u8 offset_x, offset_y; }; -struct ast_encoder { - struct drm_encoder base; -}; - #define to_ast_crtc(x) container_of(x, struct ast_crtc, base) #define to_ast_connector(x) container_of(x, struct ast_connector, base) -#define to_ast_encoder(x) container_of(x, struct ast_encoder, base) struct ast_vbios_st...
2004 May 20
0
theora header bitmap for alpha3
...+-+-+-+-+ | FMBH: height >> 4 | PICW: frame_width | 12-15 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PICH: frame_height | 16-19 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PICX: offset_x| PICY: offset_y| FRN: fps_numerator | 20-23 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | FRD: fps_denominator | 24-27 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PARN:...
2004 Dec 20
2
frame_height, height, y_height etc...
I'd previously been working on the assumption that the frame_height was the height of the inner picture region... and height was the height of the outer frame. Then upon readnig the spec... where it calls the outer part the frame and the inner part the picture region... i assumed i'd made a mistake and that frame_width is actually >= width in the theorainfo structure... ie
2004 Oct 31
3
a question about Bitstream Header.
Hi, I have a question about the format of Theora bitstream header. It seems to me that there are differences between the specification[1] (version 2004 Oct 1) and its reference implementation in libtheora 1.0alpha3 released at 2004 Jun 1. I mean that... please refer to Section 6.2 'Identification Header Decode' in that specification[1] and the function
2005 Sep 07
1
encoder settings
...e problem... Right now the encoder works with following settings: bitrate = 80 video_r = 80; videostream->ti.width = video_x; videostream->ti.height = video_y; videostream->ti.frame_width = frame_x; videostream->ti.frame_height = frame_y; videostream->ti.offset_x = frame_x_offset; videostream->ti.offset_y = frame_y_offset; videostream->ti.fps_numerator = refreshrate * 1000000; videostream->ti.fps_denominator = 10 * 100000; videostream->ti.aspect_numerator = 0; videostream->ti.aspect_denominator = 0; videostream->t...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...heoraInfo.fps_denominator) << " fps video " << " Encoded frame content is size: " <<theoraInfo.frame_width << "x" << theoraInfo.frame_height << " offset: " << theoraInfo.offset_x << "," << theoraInfo.offset_y << " Colorspace: " << theoraInfo.colorspace << std::endl; } else { theora_info_clear (&theoraInfo); theora_comment_clear (...
2005 Oct 05
1
Simple encodig sample...
...offset = ( ( video_y - frame_y ) / 2 ) & ~1; yuvframe = malloc( video_x * video_y * 3 / 2 ); theora_info_init( &ti ); ti.width = video_x; ti.height = video_y; ti.frame_width = frame_x; ti.frame_height = frame_y; ti.offset_x = frame_x_offset; ti.offset_y = frame_y_offset; ti.fps_numerator = video_hzn; ti.fps_denominator = video_hzd; ti.aspect_numerator = video_an; ti.aspect_denominator = video_ad; ti.colorspace = OC_CS_UNSPECIFIED; ti.pixel...
2005 Sep 27
4
problems understanding yuv_buffer format
hi folks! once again i am trying to decode a yuv_buffer to a 24 bit RGB buffer. last time nobody seemed willing to tell me how to do this, so i am trying again. i try to make my questions more simple. what i need to know is: how many bytes are in each y, u, v array? what for are these strides? what exactly is a "plane" in a frame, and what does it do? what i want to achieve is
2009 Jul 08
2
Theora 1.1 rate controller
Hello everyone, I'm currently developing an adaptive videoconferencing application based on Ekiga which uses TFRC as a congestion control mechanism to adapt the video encoding rate according to the quality of the network experienced. My goal was to use the open-source Theora codec for video transmission. Unfortunately, it seemed that Theora 1.0 did not properly implement any correct CBR mode.
2005 Nov 11
0
[PATCH] icecast video preview 2
...as_keyframe = 1; + } + } if (header_page) { @@ -179,6 +218,12 @@ codec->headers = 1; codec->name = "Theora"; +#ifdef WITH_PNG + theora_info *ti = &theora_codec->ti; + init_video_preview(ogg_info->mount, ti->width, ti->height, ti -> offset_x, ti -> offset_y , &theora_codec -> video_preview); + theora_codec -> frame_count = -1; +#endif + format_ogg_attach_header (ogg_info, page); ogg_info->codec_sync = codec; return codec; Index: src/format_theora.h ======================================================...