Lines Matching refs:aspect
51 FLAC__bool FLAC__ogg_encoder_aspect_init(FLAC__OggEncoderAspect *aspect) in FLAC__ogg_encoder_aspect_init() argument
54 if(ogg_stream_init(&aspect->stream_state, aspect->serial_number) != 0) in FLAC__ogg_encoder_aspect_init()
57 aspect->seen_magic = false; in FLAC__ogg_encoder_aspect_init()
58 aspect->is_first_packet = true; in FLAC__ogg_encoder_aspect_init()
59 aspect->samples_written = 0; in FLAC__ogg_encoder_aspect_init()
64 void FLAC__ogg_encoder_aspect_finish(FLAC__OggEncoderAspect *aspect) in FLAC__ogg_encoder_aspect_finish() argument
66 (void)ogg_stream_clear(&aspect->stream_state); in FLAC__ogg_encoder_aspect_finish()
70 void FLAC__ogg_encoder_aspect_set_serial_number(FLAC__OggEncoderAspect *aspect, long value) in FLAC__ogg_encoder_aspect_set_serial_number() argument
72 aspect->serial_number = value; in FLAC__ogg_encoder_aspect_set_serial_number()
75 FLAC__bool FLAC__ogg_encoder_aspect_set_num_metadata(FLAC__OggEncoderAspect *aspect, uint32_t value) in FLAC__ogg_encoder_aspect_set_num_metadata() argument
78 aspect->num_metadata = value; in FLAC__ogg_encoder_aspect_set_num_metadata()
85 void FLAC__ogg_encoder_aspect_set_defaults(FLAC__OggEncoderAspect *aspect) in FLAC__ogg_encoder_aspect_set_defaults() argument
87 aspect->serial_number = 0; in FLAC__ogg_encoder_aspect_set_defaults()
88 aspect->num_metadata = 0; in FLAC__ogg_encoder_aspect_set_defaults()
112 … FLAC__ogg_encoder_aspect_write_callback_wrapper(FLAC__OggEncoderAspect *aspect, const FLAC__byte … in FLAC__ogg_encoder_aspect_write_callback_wrapper() argument
124 if(aspect->seen_magic) { in FLAC__ogg_encoder_aspect_write_callback_wrapper()
138 packet.granulepos = aspect->samples_written + samples; in FLAC__ogg_encoder_aspect_write_callback_wrapper()
140 if(aspect->is_first_packet) { in FLAC__ogg_encoder_aspect_write_callback_wrapper()
163 *b = (FLAC__byte)(aspect->num_metadata >> 8); in FLAC__ogg_encoder_aspect_write_callback_wrapper()
165 *b = (FLAC__byte)(aspect->num_metadata); in FLAC__ogg_encoder_aspect_write_callback_wrapper()
177 aspect->is_first_packet = false; in FLAC__ogg_encoder_aspect_write_callback_wrapper()
192 if(ogg_stream_packetin(&aspect->stream_state, &packet) != 0) in FLAC__ogg_encoder_aspect_write_callback_wrapper()
197 while(ogg_stream_flush(&aspect->stream_state, &aspect->page) != 0) { in FLAC__ogg_encoder_aspect_write_callback_wrapper()
198 …if(write_callback(encoder, aspect->page.header, aspect->page.header_len, 0, current_frame, client_… in FLAC__ogg_encoder_aspect_write_callback_wrapper()
200 …if(write_callback(encoder, aspect->page.body, aspect->page.body_len, 0, current_frame, client_data… in FLAC__ogg_encoder_aspect_write_callback_wrapper()
205 while(ogg_stream_pageout(&aspect->stream_state, &aspect->page) != 0) { in FLAC__ogg_encoder_aspect_write_callback_wrapper()
206 …if(write_callback(encoder, aspect->page.header, aspect->page.header_len, 0, current_frame, client_… in FLAC__ogg_encoder_aspect_write_callback_wrapper()
208 …if(write_callback(encoder, aspect->page.body, aspect->page.body_len, 0, current_frame, client_data… in FLAC__ogg_encoder_aspect_write_callback_wrapper()
214 aspect->seen_magic = true; in FLAC__ogg_encoder_aspect_write_callback_wrapper()
225 aspect->samples_written += samples; in FLAC__ogg_encoder_aspect_write_callback_wrapper()