Lines Matching refs:_context
155 AVFContext* _context; field
171 _context = context;
175 if (_context->observed_device) {
179 [_context->observed_device addObserver: self
182 context: _context];
192 if (_context->observed_device) {
194 [_context->observed_device removeObserver: self forKeyPath: keyPath];
204 if (context == _context) {
209 if (mode != _context->observed_mode) {
211 _context->observed_quit = 1;
213 _context->observed_mode = mode;
228 lock_frames(_context);
230 if (_context->current_frame != nil) {
231 CFRelease(_context->current_frame);
234 _context->current_frame = (CMSampleBufferRef)CFRetain(videoFrame);
236 unlock_frames(_context);
238 ++_context->frames_captured;
247 AVFContext* _context; field
263 _context = context;
272 lock_frames(_context);
274 if (_context->current_audio_frame != nil) {
275 CFRelease(_context->current_audio_frame);
278 _context->current_audio_frame = (CMSampleBufferRef)CFRetain(audioFrame);
280 unlock_frames(_context);
282 ++_context->audio_frames_captured;