• Home
  • Raw
  • Download

Lines Matching full:from

112 impl From<(u32, u32)> for Resolution {
113 fn from(value: (u32, u32)) -> Self { in from() method
118 impl From<Resolution> for (u32, u32) { impl
119 fn from(value: Resolution) -> Self { in from() method
132 impl From<Rect> for Resolution {
133 fn from(value: Rect) -> Self { in from() method
138 impl From<Resolution> for Rect {
139 fn from(value: Resolution) -> Self { in from() method
144 impl From<((u32, u32), (u32, u32))> for Rect {
145 fn from(value: ((u32, u32), (u32, u32))) -> Self { in from() method
155 impl From<u32> for Fourcc {
156 fn from(fourcc: u32) -> Self { in from() method
161 impl From<Fourcc> for u32 {
162 fn from(fourcc: Fourcc) -> Self { in from() method
167 impl From<&[u8; 4]> for Fourcc {
168 fn from(n: &[u8; 4]) -> Self { in from() method
173 impl From<Fourcc> for [u8; 4] { impl
174 fn from(n: Fourcc) -> Self { in from() method
248 impl From<Fourcc> for DecodedFormat {
249 fn from(fourcc: Fourcc) -> DecodedFormat { in from() method
259 impl From<DecodedFormat> for Fourcc {
260 fn from(format: DecodedFormat) -> Fourcc { in from() method
262 DecodedFormat::I420 => Fourcc::from(b"I420"), in from()
263 DecodedFormat::NV12 => Fourcc::from(b"NV12"), in from()
264 DecodedFormat::MM21 => Fourcc::from(b"MM21"), in from()
294 impl From<Fourcc> for EncodedFormat {
295 fn from(fourcc: Fourcc) -> EncodedFormat { in from() method
307 impl From<EncodedFormat> for Fourcc {
308 fn from(format: EncodedFormat) -> Fourcc { in from() method
310 EncodedFormat::H264 => Fourcc::from(b"H264"), in from()
311 EncodedFormat::H265 => Fourcc::from(b"HEVC"), in from()
312 EncodedFormat::VP8 => Fourcc::from(b"VP80"), in from()
313 EncodedFormat::VP9 => Fourcc::from(b"VP90"), in from()
314 EncodedFormat::AV1 => Fourcc::from(b"AV1F"), in from()
436 let fourcc = Fourcc::from(NV12_FOURCC); in fourcc_u32()
443 let fourcc = Fourcc::from(NV12_FOURCC); in fourcc_u8_4()
450 let fourcc = Fourcc::from(NV12_FOURCC); in fourcc_display()
456 let fourcc = Fourcc::from(NV12_FOURCC); in fourcc_debug()