Home
last modified time | relevance | path

Searched refs:VideoPixelFormat (Results 1 – 25 of 103) sorted by relevance

12345

/ohos5.0/foundation/multimedia/av_codec/services/engine/common/
H A Dcodec_utils.cpp55 VideoPixelFormat pixFmt = static_cast<VideoPixelFormat>(fmt); in WriteYuvDataStride()
56 …CHECK_AND_RETURN_RET_LOG(pixFmt == VideoPixelFormat::YUVI420 || pixFmt == VideoPixelFormat::NV12 || in WriteYuvDataStride()
83 } else if ((pixFmt == VideoPixelFormat::NV12) || (pixFmt == VideoPixelFormat::NV21)) { in WriteYuvDataStride()
123 } else if (pixFmt == VideoPixelFormat::NV21 || pixFmt == VideoPixelFormat::NV12) { in WriteYuvData()
133 } else if ((pixFmt == VideoPixelFormat::NV12) || (pixFmt == VideoPixelFormat::NV21)) { in WriteYuvData()
159 VideoPixelFormat pixFmt = static_cast<VideoPixelFormat>(fmt); in WriteSurfaceData()
192 VideoPixelFormat pixFmt = static_cast<VideoPixelFormat>(fmt); in WriteBufferData()
241 case VideoPixelFormat::RGBA: { in TranslateSurfaceFormat()
244 case VideoPixelFormat::NV12: { in TranslateSurfaceFormat()
247 case VideoPixelFormat::NV21: { in TranslateSurfaceFormat()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/sink/video_surface_sink/
H A Dsurface_sink_plugin.cpp47 {VideoPixelFormat::RGBA, VideoPixelFormat::NV12, VideoPixelFormat::NV21}); in SurfaceSinkRegister()
70 case VideoPixelFormat::RGBA: in TranslatePixelFormat()
73 case VideoPixelFormat::BGRA: in TranslatePixelFormat()
79 case VideoPixelFormat::ARGB: in TranslatePixelFormat()
80 case VideoPixelFormat::ABGR: in TranslatePixelFormat()
81 case VideoPixelFormat::RGB24: in TranslatePixelFormat()
82 case VideoPixelFormat::BGR24: in TranslatePixelFormat()
86 case VideoPixelFormat::GRAY8: in TranslatePixelFormat()
89 case VideoPixelFormat::PAL8: in TranslatePixelFormat()
94 case VideoPixelFormat::NV12: in TranslatePixelFormat()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/src/common/
H A Dplugin_attr_desc.h184 {VideoPixelFormat::UNKNOWN, "UNKNOWN"},
188 {VideoPixelFormat::NV12, "NV12"},
189 {VideoPixelFormat::NV21, "NV21"},
193 {VideoPixelFormat::RGBA, "RGBA"},
194 {VideoPixelFormat::ARGB, "ARGB"},
195 {VideoPixelFormat::ABGR, "ABGR"},
196 {VideoPixelFormat::BGRA, "BGRA"},
197 {VideoPixelFormat::RGB24, "RGB24"},
198 {VideoPixelFormat::BGR24, "BGR24"},
199 {VideoPixelFormat::PAL8, "PAL8"},
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/include/plugin/common/
H A Dplugin_attr_desc.h184 {VideoPixelFormat::UNKNOWN, "UNKNOWN"},
188 {VideoPixelFormat::NV12, "NV12"},
189 {VideoPixelFormat::NV21, "NV21"},
193 {VideoPixelFormat::RGBA, "RGBA"},
194 {VideoPixelFormat::ARGB, "ARGB"},
195 {VideoPixelFormat::ABGR, "ABGR"},
196 {VideoPixelFormat::BGRA, "BGRA"},
197 {VideoPixelFormat::RGB24, "RGB24"},
198 {VideoPixelFormat::BGR24, "BGR24"},
199 {VideoPixelFormat::PAL8, "PAL8"},
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/sink/sdl/video_sink/
H A Dsdl_video_sink_plugin.cpp47 …{VideoPixelFormat::YUV420P, VideoPixelFormat::NV12, VideoPixelFormat::NV21, VideoPixelFormat::RGBA… in SdlVideoRegister()
72 case VideoPixelFormat::RGB24: in TranslatePixelFormat()
75 case VideoPixelFormat::BGR24: in TranslatePixelFormat()
78 case VideoPixelFormat::RGBA: in TranslatePixelFormat()
81 case VideoPixelFormat::ARGB: in TranslatePixelFormat()
84 case VideoPixelFormat::ABGR: in TranslatePixelFormat()
87 case VideoPixelFormat::BGRA: in TranslatePixelFormat()
97 case VideoPixelFormat::PAL8: in TranslatePixelFormat()
102 case VideoPixelFormat::NV12: in TranslatePixelFormat()
105 case VideoPixelFormat::NV21: in TranslatePixelFormat()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/utils/
H A Dffmpeg_utils.cpp147 {VideoPixelFormat::YUV410P, AV_PIX_FMT_YUV410P},
150 {VideoPixelFormat::NV12, AV_PIX_FMT_NV12},
151 {VideoPixelFormat::NV21, AV_PIX_FMT_NV21},
155 {VideoPixelFormat::RGBA, AV_PIX_FMT_RGBA},
156 {VideoPixelFormat::ARGB, AV_PIX_FMT_ARGB},
157 {VideoPixelFormat::ABGR, AV_PIX_FMT_ABGR},
158 {VideoPixelFormat::BGRA, AV_PIX_FMT_BGRA},
159 {VideoPixelFormat::RGB24, AV_PIX_FMT_RGB24},
160 {VideoPixelFormat::BGR24, AV_PIX_FMT_BGR24},
161 {VideoPixelFormat::PAL8, AV_PIX_FMT_PAL8},
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/services/codec/ipc/
H A Dbuffer_converter.cpp29 using VideoPixelFormat = OHOS::MediaAVCodec::VideoPixelFormat; typedef
38 return VideoPixelFormat::YUVI420; in TranslateSurfaceFormat()
41 return VideoPixelFormat::RGBA; in TranslateSurfaceFormat()
45 return VideoPixelFormat::NV12; in TranslateSurfaceFormat()
49 return VideoPixelFormat::NV21; in TranslateSurfaceFormat()
53 return VideoPixelFormat::UNKNOWN; in TranslateSurfaceFormat()
318 case VideoPixelFormat::YUV420P: in SetPixFormat()
319 case VideoPixelFormat::YUVI420: in SetPixFormat()
322 case VideoPixelFormat::NV12: in SetPixFormat()
323 case VideoPixelFormat::NV21: in SetPixFormat()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/
H A Dhencoder_buffer_unit_test.cpp81 .pixFmt = VideoPixelFormat::NV12,
101 .pixFmt = VideoPixelFormat::NV12,
121 .pixFmt = VideoPixelFormat::NV12,
144 .pixFmt = VideoPixelFormat::NV12,
163 .pixFmt = VideoPixelFormat::NV12,
182 .pixFmt = VideoPixelFormat::NV12,
201 .pixFmt = VideoPixelFormat::NV12,
226 .pixFmt = VideoPixelFormat::NV12,
245 .pixFmt = VideoPixelFormat::NV12,
268 .pixFmt = VideoPixelFormat::NV12,
H A Dhdecoder_buffer_unit_test.cpp36 .pixFmt = VideoPixelFormat::NV12,
56 .pixFmt = VideoPixelFormat::NV12,
75 .pixFmt = VideoPixelFormat::NV12,
94 .pixFmt = VideoPixelFormat::NV12,
113 .pixFmt = VideoPixelFormat::NV12,
132 .pixFmt = VideoPixelFormat::NV12,
152 .pixFmt = VideoPixelFormat::NV12,
H A Dhcodec_type_converter_unit_test.cpp68 EXPECT_EQ(ret.value().innerFmt, VideoPixelFormat::YUVI420);
79 optional<PixelFmt> ret = TypeConverter::InnerFmtToFmt(VideoPixelFormat::NV12);
86 optional<PixelFmt> ret = TypeConverter::InnerFmtToFmt(VideoPixelFormat::UNKNOWN);
92 optional<GraphicPixelFormat> ret = TypeConverter::InnerFmtToDisplayFmt(VideoPixelFormat::RGBA);
99 … optional<GraphicPixelFormat> ret = TypeConverter::InnerFmtToDisplayFmt(VideoPixelFormat::UNKNOWN);
105 …optional<VideoPixelFormat> ret = TypeConverter::DisplayFmtToInnerFmt(GRAPHIC_PIXEL_FMT_YCRCB_420_S…
107 EXPECT_EQ(ret.value(), VideoPixelFormat::NV21);
112 optional<VideoPixelFormat> ret = TypeConverter::DisplayFmtToInnerFmt(GRAPHIC_PIXEL_FMT_BUTT);
H A Dhencoder_unit_test.cpp261 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::RGBA));
305 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
326 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
445 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
465 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
485 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
504 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
524 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
544 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
563 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/video_decoder/
H A Dvideo_ffmpeg_decoder_plugin.cpp102 DiscreteCapability<VideoPixelFormat> values; in UpdateOutCaps()
509 } else if (pixelFormat_ == VideoPixelFormat::NV21 || pixelFormat_ == VideoPixelFormat::NV12) { in DumpVideoRawOutData()
518 } else if (pixelFormat_ == VideoPixelFormat::RGBA || pixelFormat_ == VideoPixelFormat::ARGB || in DumpVideoRawOutData()
519 pixelFormat_ == VideoPixelFormat::ABGR || pixelFormat_ == VideoPixelFormat::BGRA) { in DumpVideoRawOutData()
588 … } else if ((pixelFormat_ == VideoPixelFormat::NV12) || (pixelFormat_ == VideoPixelFormat::NV21)) { in WriteYuvDataStride()
614 if (pixelFormat_ == VideoPixelFormat::RGBA || pixelFormat_ == VideoPixelFormat::ARGB || in WriteRgbDataStride()
615 pixelFormat_ == VideoPixelFormat::ABGR || pixelFormat_ == VideoPixelFormat::BGRA) { in WriteRgbDataStride()
654 } else if (pixelFormat_ == VideoPixelFormat::NV21 || pixelFormat_ == VideoPixelFormat::NV12) { in WriteYuvData()
664 … } else if ((pixelFormat_ == VideoPixelFormat::NV12) || (pixelFormat_ == VideoPixelFormat::NV21)) { in WriteYuvData()
695 if (pixelFormat_ == VideoPixelFormat::RGBA || pixelFormat_ == VideoPixelFormat::ARGB || in WriteRgbData()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/video_decoder/
H A Dvideo_decoder_filter.cpp136 Plugin::VideoPixelFormat vdecFormat; in CalculateBufferSize()
144 if (vdecFormat == Plugin::VideoPixelFormat::YUV420P || in CalculateBufferSize()
145 vdecFormat == Plugin::VideoPixelFormat::NV21 || in CalculateBufferSize()
146 vdecFormat == Plugin::VideoPixelFormat::NV12) { in CalculateBufferSize()
150 } else if (vdecFormat == Plugin::VideoPixelFormat::RGBA || in CalculateBufferSize()
151 vdecFormat == Plugin::VideoPixelFormat::ARGB || in CalculateBufferSize()
152 vdecFormat == Plugin::VideoPixelFormat::ABGR || in CalculateBufferSize()
153 vdecFormat == Plugin::VideoPixelFormat::BGRA) { in CalculateBufferSize()
/ohos5.0/foundation/multimedia/av_codec/services/engine/common/include/
H A Dcodec_utils.h62 GraphicPixelFormat TranslateSurfaceFormat(const VideoPixelFormat &surfaceFormat);
63 VideoPixelFormat ConvertPixelFormatFromFFmpeg(int32_t ffmpegPixelFormat);
64 AVPixelFormat ConvertPixelFormatToFFmpeg(VideoPixelFormat pixelFormat);
74 bool IsYuvFormat(VideoPixelFormat &format);
75 bool IsRgbFormat(VideoPixelFormat &format);
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/
H A Dcodec_utils.cpp181 static const std::map<VideoPixelFormat, OMX_COLOR_FORMATTYPE> formatHstOmx = {
182 {VideoPixelFormat::NV12, OMX_COLOR_FormatYUV420SemiPlanar},
183 {VideoPixelFormat::NV21, OMX_COLOR_FormatYUV420SemiPlanar},
184 {VideoPixelFormat::BGRA, OMX_COLOR_Format32bitBGRA8888},
185 {VideoPixelFormat::RGBA, OMX_COLOR_Format32bitARGB8888},
186 {VideoPixelFormat::YUV420P, OMX_COLOR_FormatYUV420Planar},
189 OMX_COLOR_FORMATTYPE FormatHstToOmx(const VideoPixelFormat format) in FormatHstToOmx()
H A Dhdi_codec_manager.cpp167 std::vector<VideoPixelFormat> HdiCodecManager::GetCodecFormats(const CodecVideoPortCap& port) in GetCodecFormats()
170 std::vector<VideoPixelFormat> formats; in GetCodecFormats()
174 formats.push_back(VideoPixelFormat::NV12); in GetCodecFormats()
177 formats.push_back(VideoPixelFormat::NV21); in GetCodecFormats()
180 formats.push_back(VideoPixelFormat::YUV420P); in GetCodecFormats()
183 formats.push_back(VideoPixelFormat::RGBA); in GetCodecFormats()
186 formats.push_back(VideoPixelFormat::BGRA); in GetCodecFormats()
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dtype_converter.h37 VideoPixelFormat innerFmt;
49 static std::optional<PixelFmt> InnerFmtToFmt(VideoPixelFormat format);
50 static std::optional<GraphicPixelFormat> InnerFmtToDisplayFmt(VideoPixelFormat format);
51 static std::optional<VideoPixelFormat> DisplayFmtToInnerFmt(GraphicPixelFormat format);
H A Dtype_converter.cpp47 {GRAPHIC_PIXEL_FMT_YCBCR_420_P, VideoPixelFormat::YUVI420, "I420"},
48 {GRAPHIC_PIXEL_FMT_YCBCR_420_SP, VideoPixelFormat::NV12, "NV12"},
49 {GRAPHIC_PIXEL_FMT_YCRCB_420_SP, VideoPixelFormat::NV21, "NV21"},
50 {GRAPHIC_PIXEL_FMT_RGBA_8888, VideoPixelFormat::RGBA, "RGBA"},
51 {GRAPHIC_PIXEL_FMT_YCBCR_P010, VideoPixelFormat::NV12, "NV12_10bit"},
52 {GRAPHIC_PIXEL_FMT_YCRCB_P010, VideoPixelFormat::NV21, "NV21_10bit"},
283 std::optional<PixelFmt> TypeConverter::InnerFmtToFmt(VideoPixelFormat format) in InnerFmtToFmt()
295 std::optional<GraphicPixelFormat> TypeConverter::InnerFmtToDisplayFmt(VideoPixelFormat format) in InnerFmtToDisplayFmt()
307 std::optional<VideoPixelFormat> TypeConverter::DisplayFmtToInnerFmt(GraphicPixelFormat format) in DisplayFmtToInnerFmt()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/codeclist_test/
H A Dcodeclist_mock.h117 static_cast<int32_t>(VideoPixelFormat::YUVI420), static_cast<int32_t>(VideoPixelFormat::NV12),
118 static_cast<int32_t>(VideoPixelFormat::NV21), static_cast<int32_t>(VideoPixelFormat::RGBA)};
184 static_cast<int32_t>(VideoPixelFormat::NV12), static_cast<int32_t>(VideoPixelFormat::NV12),
185 static_cast<int32_t>(VideoPixelFormat::NV21), static_cast<int32_t>(VideoPixelFormat::NV21)};
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dcommand_parser.h82 VideoPixelFormat pixFmt = VideoPixelFormat::NV12;
105 VideoPixelFormat pixFmt = VideoPixelFormat::NV12;
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/InnerAPI/
H A Dapi_test.cpp244 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
264 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
285 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
307 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
330 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
373 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
395 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
464 …utIntValue(MediaDescriptionKey::MD_KEY_PIXEL_FORMAT, static_cast<int32_t>(VideoPixelFormat::NV12));
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/video_capture/
H A Dvideo_file_capture_plugin.cpp47 outCaps.AppendDiscreteKeys<VideoPixelFormat>( in VideoFileCaptureRegister()
48 Capability::Key::VIDEO_PIXEL_FORMAT, {VideoPixelFormat::YUV420P}); in VideoFileCaptureRegister()
192 if (Any::IsSameTypeWith<VideoPixelFormat>(value)) { in SetParameter()
193 pixelFormat_ = Plugin::AnyCast<VideoPixelFormat>(value); in SetParameter()
228 videoMeta->videoPixelFormat = VideoPixelFormat::YUV420P; in SetVideoBufferMeta()
/ohos5.0/foundation/multimedia/media_foundation/test/unittest/
H A DTestPlugin.cpp148 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::NV12) == OMX_COLOR_FormatYUV420SemiPlanar);
149 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::NV21) == OMX_COLOR_FormatYUV420SemiPlanar);
150 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::BGRA) == OMX_COLOR_Format32bitBGRA8888);
151 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::RGBA) == OMX_COLOR_Format32bitARGB8888);
152 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::YUV420P) == OMX_COLOR_FormatYUV420Planar);
153 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::RGB24) == OMX_COLOR_FormatUnused);
H A DTestPluginSetting.cpp163 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::NV12) == OMX_COLOR_FormatYUV420SemiPlanar);
164 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::NV21) == OMX_COLOR_FormatYUV420SemiPlanar);
165 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::BGRA) == OMX_COLOR_Format32bitBGRA8888);
166 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::RGBA) == OMX_COLOR_Format32bitARGB8888);
167 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::YUV420P) == OMX_COLOR_FormatYUV420Planar);
168 ASSERT_TRUE(FormatHstToOmx(VideoPixelFormat::RGB24) == OMX_COLOR_FormatUnused);
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/fcodec/
H A Dfcodec.cpp178 VideoPixelFormat vpf = static_cast<VideoPixelFormat>(val); in ConfigureSurface()
179 CHECK_AND_RETURN_LOG(vpf == VideoPixelFormat::RGBA || vpf == VideoPixelFormat::YUVI420 || in ConfigureSurface()
180 vpf == VideoPixelFormat::NV12 || vpf == VideoPixelFormat::NV21, in ConfigureSurface()
531 VideoPixelFormat vpf = static_cast<VideoPixelFormat>(val); in SetSurfaceParameter()
532 CHECK_AND_RETURN_LOG(vpf == VideoPixelFormat::RGBA || vpf == VideoPixelFormat::YUVI420 || in SetSurfaceParameter()
533 vpf == VideoPixelFormat::NV12 || vpf == VideoPixelFormat::NV21, in SetSurfaceParameter()
623 if (outputPixelFmt_ == VideoPixelFormat::RGBA) { in CalculateBufferSize()
658 if (outputPixelFmt_ == VideoPixelFormat::UNKNOWN) { in SetSurfaceCfg()
980 VideoPixelFormat targetPixelFmt = outputPixelFmt_; in FillFrameBuffer()
1481 … static_cast<int32_t>(VideoPixelFormat::YUVI420), static_cast<int32_t>(VideoPixelFormat::NV12), in GetCodecCapability()
[all …]

12345