Searched refs:VideoError (Results 1 – 8 of 8) sorted by relevance
/external/crosvm/devices/src/virtio/video/encoder/ |
D | mod.rs | 124 .map_err(|_| VideoError::InvalidArgument)?; in new() 133 .map_err(|_| VideoError::InvalidArgument)?; in new() 136 let dest_format = dst_params.format.ok_or(VideoError::InvalidArgument)?; in new() 140 .ok_or(VideoError::InvalidArgument)?; in new() 182 return Err(VideoError::InvalidOperation); in set_encode_session() 194 .map_err(|_| VideoError::InvalidOperation)?; in set_encode_session() 205 VideoError::InvalidOperation in set_encode_session() 220 VideoError::InvalidOperation in clear_encode_session() 406 VideoError::InvalidOperation.into() in flush_response() 507 Ok(_) => Err(VideoError::InvalidArgument), in get_resource_info() [all …]
|
/external/crosvm/devices/src/virtio/video/ |
D | error.rs | 16 pub enum VideoError { enum 39 impl fmt::Display for VideoError { implementation 41 use self::VideoError::*; in fmt() 64 impl From<libvda::Error> for VideoError { implementation 66 VideoError::VdaError(error) in from() 70 impl std::error::Error for VideoError {} implementation 72 pub type VideoResult<T> = Result<T, VideoError>;
|
D | response.rs | 13 use crate::virtio::video::error::VideoError; 55 impl From<VideoError> for CmdResponse { 56 fn from(error: VideoError) -> Self { in from() 58 VideoError::InvalidResourceId { .. } => CmdError::InvalidResourceId, in from() 59 VideoError::InvalidStreamId(_) => CmdError::InvalidStreamId, in from() 60 VideoError::InvalidParameter => CmdError::InvalidParameter, in from() 61 VideoError::UnsupportedControl(_) => CmdError::UnsupportedControl, in from()
|
D | async_cmd_desc_map.rs | 10 use crate::virtio::video::error::VideoError; 64 VideoError::InvalidOperation, in create_cancellation_responses() 77 VideoError::InvalidOperation, in create_cancellation_responses()
|
D | device.rs | 75 pub fn from_error(tag: AsyncCmdTag, error: VideoError) -> Self { in from_error()
|
/external/crosvm/devices/src/virtio/video/decoder/backend/ |
D | vda.rs | 12 error::{VideoError, VideoResult}, 17 type Error = VideoError; 26 return Err(VideoError::InvalidParameter); in try_from() 33 type Error = VideoError; 40 return Err(VideoError::InvalidParameter); in try_from() 62 resp => Err(VideoError::VdaFailure(resp)), in from() 107 DecoderEvent::NotifyError(VideoError::VdaFailure(resp)) in from() 189 VideoError::InvalidOperation in new_session()
|
D | mod.rs | 11 error::{VideoError, VideoResult}, 134 NotifyError(VideoError),
|
/external/crosvm/devices/src/virtio/video/decoder/ |
D | mod.rs | 101 return Err(VideoError::InvalidParameter); in queue_resource() 268 VideoError::InvalidResourceId { in get_resource_info() 278 Ok(_) => Err(VideoError::InvalidArgument), in get_resource_info() 279 Err(e) => Err(VideoError::ResourceBridgeFailure(e)), in get_resource_info() 373 Err(VideoError::InvalidStreamId(ctx.stream_id)) in insert() 381 VideoError::InvalidStreamId(*stream_id) in get() 388 VideoError::InvalidStreamId(*stream_id) in get_mut() 444 return Err(VideoError::InvalidParameter); in create_session() 457 VideoError::InvalidOperation in create_session() 504 return Err(VideoError::InvalidOperation); in create_resource() [all …]
|