void qmake_frames(void) { short x; x = flix.hdr.frame_count; if(soft_qreq_number(&x,1,100,"set_frames")) { if (x > 0) set_frame_count(x); } }
bsaheaderdfa& bsaheaderdfa::operator =(const bsaheaderdfa& other) { if (this != &other) { set_width(other.get_width()); set_height(other.get_height()); set_compressed_size(other.compressed_size); set_u2(other.u2); set_u3(other.u3); set_frame_count(other.frame_count); } return *this; }
bsaheadercfa& bsaheadercfa::operator =(const bsaheadercfa& other) { if (this != &other) { set_width_uncompressed(other.get_width()); set_height(other.get_height()); set_width_compressed(other.width_compressed); set_u2(other.u2); set_u3(other.u3); set_bits_per_pixel(other.bits_per_pixel); set_frame_count(other.frame_count); set_header_size(other.header_size); } return *this; }
sprite_definition::sprite_definition(player* player, movie_definition_sub* m) : movie_definition_sub(player), m_movie_def(m) { // create empty sprite_definition (it is used for createEmptyMovieClip() method) if (m == NULL) { set_frame_count(1); inc_loading_frame(); m_playlist.resize(1); m_playlist[0].push_back(new execute_tag()); } else { assert(m_movie_def); } }
void sprite_definition::read(stream* in) // Read the sprite info. Consists of a series of tags. { int tag_end = in->get_tag_end_position(); set_frame_count(in->read_u16()); m_playlist.resize(get_frame_count()); // need a playlist for each frame IF_VERBOSE_PARSE(log_msg(" frames = %d\n", get_frame_count())); while ((Uint32) in->get_position() < (Uint32) tag_end && get_break_loading() == false) { int tag_type = in->open_tag(); loader_function lf = NULL; if (tag_type == 1) { // show frame tag -- advance to the next frame. IF_VERBOSE_PARSE(log_msg(" show_frame (sprite)\n")); inc_loading_frame(); } else if (get_tag_loader(tag_type, &lf)) { // call the tag loader. The tag loader should add // characters or tags to the movie data structure. (*lf)(in, tag_type, this); } else { // no tag loader for this tag type. log_msg("*** no tag loader for type %d\n", tag_type); } in->close_tag(); } IF_VERBOSE_PARSE(log_msg(" -- sprite END --\n")); }