Home
last modified time | relevance | path

Searched refs:picture_buffer_id (Results 1 – 9 of 9) sorted by relevance

/external/crosvm/devices/src/virtio/video/
Dutils.rs179 picture_buffer_id: u32, in import_buffer()
186 match self.buffers.entry(picture_buffer_id) { in import_buffer()
191 return Err(OutputBufferImportError::AlreadyImported(picture_buffer_id)); in import_buffer()
195 self.ready_buffers.push_back(picture_buffer_id); in import_buffer()
201 pub fn reuse_buffer(&mut self, picture_buffer_id: u32) -> Result<(), OutputBufferReuseError> { in reuse_buffer()
202 if !self.buffers.contains_key(&picture_buffer_id) { in reuse_buffer()
203 return Err(OutputBufferReuseError::NotYetImported(picture_buffer_id)); in reuse_buffer()
206 if self.ready_buffers.contains(&picture_buffer_id) { in reuse_buffer()
207 return Err(OutputBufferReuseError::AlreadyUsed(picture_buffer_id)); in reuse_buffer()
210 self.ready_buffers.push_back(picture_buffer_id); in reuse_buffer()
[all …]
/external/crosvm/devices/src/virtio/video/decoder/backend/
Dmod.rs90 picture_buffer_id: i32, in use_output_buffer()
101 fn reuse_output_buffer(&mut self, picture_buffer_id: i32) -> VideoResult<()>; in reuse_output_buffer()
135 picture_buffer_id: i32,
303 |session: &mut D::Session, picture_buffer_id: i32, visible_rect: Rect| { in decode_h264_generic()
316 .from_shared_memory(&output_buffers[picture_buffer_id as usize]) in decode_h264_generic()
336 session.reuse_output_buffer(picture_buffer_id).unwrap(); in decode_h264_generic()
387 for (picture_buffer_id, buffer) in output_buffers.iter().enumerate() { in decode_h264_generic()
390 picture_buffer_id as i32, in decode_h264_generic()
418 picture_buffer_id, in decode_h264_generic()
421 } => on_frame_decoded(&mut session, picture_buffer_id, visible_rect), in decode_h264_generic()
[all …]
Dvda.rs109 picture_buffer_id: buffer_id, in from()
233 picture_buffer_id: i32, in use_output_buffer()
247 picture_buffer_id, in use_output_buffer()
258 fn reuse_output_buffer(&mut self, picture_buffer_id: i32) -> VideoResult<()> { in reuse_output_buffer()
259 Ok(self.vda_session.reuse_output_buffer(picture_buffer_id)?) in reuse_output_buffer()
Dffmpeg.rs375 let (picture_buffer_id, target_buffer) = match output_queue.try_get_ready_buffer() { in try_send_frame()
388 picture_buffer_id: picture_buffer_id as i32, in try_send_frame()
539 picture_buffer_id: i32, in use_output_buffer()
556 .import_buffer(picture_buffer_id as u32, resource) in use_output_buffer()
564 fn reuse_output_buffer(&mut self, picture_buffer_id: i32) -> VideoResult<()> { in reuse_output_buffer()
580 .reuse_buffer(picture_buffer_id as u32) in reuse_output_buffer()
Dvaapi.rs499 let (picture_buffer_id, output_buffer) = match output_queue.try_get_ready_buffer() { in output_picture()
524 let picture_buffer_id = picture_buffer_id as i32; in output_picture() localVariable
529 picture_buffer_id, in output_picture()
950 picture_buffer_id: i32, in use_output_buffer()
965 .import_buffer(picture_buffer_id as u32, resource) in use_output_buffer()
974 fn reuse_output_buffer(&mut self, picture_buffer_id: i32) -> VideoResult<()> { in reuse_output_buffer()
987 .reuse_buffer(picture_buffer_id as u32) in reuse_output_buffer()
/external/crosvm/media/libvda/src/decode/
Dsession.rs120 picture_buffer_id: i32, in use_output_buffer()
132 picture_buffer_id, in use_output_buffer()
146 pub fn reuse_output_buffer(&self, picture_buffer_id: i32) -> Result<()> { in reuse_output_buffer()
149 bindings::vda_reuse_output_buffer((*self.session_ptr).ctx, picture_buffer_id) in reuse_output_buffer()
Dbindings.rs55 pub picture_buffer_id: i32, field
188 picture_buffer_id: i32, in vda_use_output_buffer()
199 picture_buffer_id: i32, in vda_reuse_output_buffer()
Devent.rs117 buffer_id: d.picture_buffer_id, in new()
/external/crosvm/devices/src/virtio/video/decoder/
Dmod.rs166 picture_buffer_id: i32,
247 picture_buffer_id, in output_pending_response()
252 .dequeue_frame_buffer(*picture_buffer_id, self.stream_id)?; in output_pending_response()
679 …matches!(res, PendingResponse::PictureReady { picture_buffer_id, .. } if *picture_buffer_id == buf… in queue_output_resource()
1045 picture_buffer_id, in process_event()
1054 picture_buffer_id, in process_event()