Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DEncoderProfiles.java209 return bitDepth; in getBitDepth()
248 int bitDepth, in VideoProfile() argument
257 this.bitDepth = bitDepth; in VideoProfile()
278 private int bitDepth; field in EncoderProfiles.VideoProfile
DMediaCodec.java5902 int bitDepth = info.getInt(); in MediaImage() local
5903 if (bitDepth != 8 && bitDepth != 10) { in MediaImage()
5904 throw new UnsupportedOperationException("unsupported bit depth: " + bitDepth); in MediaImage()
5911 if (bitDepth == 8 && bitDepthAllocated == 8) { in MediaImage()
5915 } else if (bitDepth == 10 && bitDepthAllocated == 16) { in MediaImage()
5921 + " bitDepth: " + bitDepth + " bitDepthAllocated: " + bitDepthAllocated); in MediaImage()
5942 buffer.limit(buffer.position() + Utils.divUp(bitDepth, 8) in MediaImage()
/frameworks/av/media/module/metadatautils/
DMetaDataUtils.cpp96 int32_t *bitDepth, in getVp9BitdepthChromaSubSampling() argument
102 *bitDepth = bits.getBits(1) ? 12 : 10; in getVp9BitdepthChromaSubSampling()
104 *bitDepth = 8; in getVp9BitdepthChromaSubSampling()
178 int32_t bitDepth = 8; in MakeVP9CodecSpecificData() local
187 if (!getVp9BitdepthChromaSubSampling(bits, profile, &bitDepth, &chromaSubsampling)) { in MakeVP9CodecSpecificData()
218 if (!getVp9BitdepthChromaSubSampling(bits, profile, &bitDepth, &chromaSubsampling)) { in MakeVP9CodecSpecificData()
222 bitDepth = 8; in MakeVP9CodecSpecificData()
242 *csdData++ = bitDepth; in MakeVP9CodecSpecificData()
/frameworks/av/media/libmedia/
DMediaProfiles.cpp275 chroma_subsampling *chroma, int *bitDepth, hdr_format *hdr) in detectAdvancedVideoProfile() argument
279 *bitDepth = 8; in detectAdvancedVideoProfile()
300 *bitDepth = 10; in detectAdvancedVideoProfile()
320 *bitDepth = 10; in detectAdvancedVideoProfile()
324 *bitDepth = 10; in detectAdvancedVideoProfile()
328 *bitDepth = 10; in detectAdvancedVideoProfile()
342 *bitDepth = 10; in detectAdvancedVideoProfile()
347 *bitDepth = 10; in detectAdvancedVideoProfile()
351 *bitDepth = 10; in detectAdvancedVideoProfile()
362 *bitDepth = 10; in detectAdvancedVideoProfile()
[all …]
/frameworks/av/media/libstagefright/
DFrameDecoder.cpp57 int32_t dstBpp, uint32_t bitDepth, bool allocRotated, bool metaOnly) { in allocVideoFrame() argument
131 tileHeight, rotationAngle, dstBpp, bitDepth, !metaOnly, iccSize); in allocVideoFrame()
152 int32_t dstBpp, uint8_t bitDepth, bool allocRotated = false) { in allocVideoFrame() argument
153 return allocVideoFrame(trackMeta, width, height, tileWidth, tileHeight, dstBpp, bitDepth, in allocVideoFrame()
159 int32_t dstBpp, uint8_t bitDepth) { in allocMetaFrame() argument
160 return allocVideoFrame(trackMeta, width, height, tileWidth, tileHeight, dstBpp, bitDepth, in allocMetaFrame()
237 const sp<MetaData> &trackMeta, int colorFormat, bool thumbnail, uint32_t bitDepth) { in getMetadataOnly() argument
262 allocMetaFrame(trackMeta, width, height, tileWidth, tileHeight, dstBpp, bitDepth); in getMetadataOnly()
686 uint32_t bitDepth = 8; in onOutputReceived() local
688 bitDepth = 10; in onOutputReceived()
[all …]
/frameworks/av/include/private/media/
DVideoFrame.h42 uint32_t angle, uint32_t bpp, uint32_t bitDepth, bool hasData, size_t iccSize): in VideoFrame() argument
48 mBitDepth(bitDepth) { in VideoFrame()
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp261 uint32_t bitDepth = layout.planes[0].bitDepth; in GraphicView2MediaImageConverter() local
304 if ((clientBitDepth) && (bitDepth != clientBitDepth.value())) { in GraphicView2MediaImageConverter()
306 *clientBitDepth, bitDepth); in GraphicView2MediaImageConverter()
326 if (plane.allocatedDepth != 8 || plane.bitDepth != 8) { in GraphicView2MediaImageConverter()
430 && yPlane.bitDepth == 10 in GraphicView2MediaImageConverter()
431 && uPlane.bitDepth == 10 in GraphicView2MediaImageConverter()
432 && vPlane.bitDepth == 10 in GraphicView2MediaImageConverter()
598 mediaImage->mBitDepth = bitDepth; in GraphicView2MediaImageConverter()
604 if (plane.allocatedDepth < plane.bitDepth in GraphicView2MediaImageConverter()
605 || plane.rightShift != plane.allocatedDepth - plane.bitDepth) { in GraphicView2MediaImageConverter()
[all …]
DCCodec.cpp1310 if (flexPixelFormat.count(desc.bitDepth) == 0) { in configure()
1311 flexPixelFormat.emplace(desc.bitDepth, desc.pixelFormat); in configure()
1314 && flexPlanarPixelFormat.count(desc.bitDepth) == 0) { in configure()
1315 flexPlanarPixelFormat.emplace(desc.bitDepth, desc.pixelFormat); in configure()
1318 && flexSemiPlanarPixelFormat.count(desc.bitDepth) == 0) { in configure()
1319 flexSemiPlanarPixelFormat.emplace(desc.bitDepth, desc.pixelFormat); in configure()
DCodec2InfoBuilder.cpp79 switch (desc.bitDepth) { in findFrameworkColorFormat()
DCCodecConfig.cpp1993 int32_t bitDepth = (is10bAv1EncodeRequested) ? 10 : 8; in getConfigUpdateFromSdkParams() local
1995 if (bitDepth != 8) { in getConfigUpdateFromSdkParams()
1997 C2Mapper::GetBitDepthProfileLevelMapper(mCodingMediaType, bitDepth); in getConfigUpdateFromSdkParams()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp83 || plane.allocatedDepth < plane.bitDepth in _ImageCopy()
85 || plane.rightShift != plane.allocatedDepth - plane.bitDepth in _ImageCopy()
298 && layout.planes[layout.PLANE_Y].bitDepth == 8 in IsYUV420()
304 && layout.planes[layout.PLANE_U].bitDepth == 8 in IsYUV420()
310 && layout.planes[layout.PLANE_V].bitDepth == 8 in IsYUV420()
322 && layout.planes[layout.PLANE_Y].bitDepth == 10 in IsYUV420_10bit()
327 && layout.planes[layout.PLANE_U].bitDepth == 10 in IsYUV420_10bit()
332 && layout.planes[layout.PLANE_V].bitDepth == 10 in IsYUV420_10bit()
DCodec2Mapper.h57 GetBitDepthProfileLevelMapper(std::string mediaType, int32_t bitDepth = 8);
DCodec2Mapper.cpp691 Av1ProfileLevelMapper(bool isHdr = false, bool isHdr10Plus = false, int32_t bitDepth = 8) : in Av1ProfileLevelMapper()
693 mIsHdr(isHdr), mIsHdr10Plus(isHdr10Plus), mBitDepth(bitDepth) {} in Av1ProfileLevelMapper()
776 C2Mapper::GetBitDepthProfileLevelMapper(std::string mediaType, int32_t bitDepth) { in GetBitDepthProfileLevelMapper() argument
778 if (bitDepth == 8) { in GetBitDepthProfileLevelMapper()
780 } else if (mediaType == MIMETYPE_VIDEO_AV1 && bitDepth == 10) { in GetBitDepthProfileLevelMapper()
781 return std::make_shared<Av1ProfileLevelMapper>(false, false, bitDepth); in GetBitDepthProfileLevelMapper()
/frameworks/av/media/libmedia/include/media/
DMediaProfiles.h135 int bitDepth = 8,
144 mBitDepth(bitDepth), in mCodec()
603 chroma_subsampling *chroma, int *bitDepth, hdr_format *hdr);
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp147 if (desc.bitDepth != 8 in TEST()
198 ASSERT_EQ(8u, yPlane.bitDepth); in TEST()
205 ASSERT_EQ(8u, uPlane.bitDepth); in TEST()
212 ASSERT_EQ(8u, vPlane.bitDepth); in TEST()
335 ASSERT_EQ(10u, yPlane.bitDepth); in TEST()
342 ASSERT_EQ(10u, uPlane.bitDepth); in TEST()
349 ASSERT_EQ(10u, vPlane.bitDepth); in TEST()
/frameworks/base/libs/androidfw/
DPng.cpp110 int colorType, bitDepth, interlaceType, compressionType; in readPng() local
111 png_get_IHDR(readPtr, infoPtr, &outInfo->width, &outInfo->height, &bitDepth, &colorType, in readPng()
118 if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) { in readPng()
126 if (bitDepth == 16) { in readPng()
427 int colorType, bitDepth, interlaceType, compressionType; in writePng() local
587 png_get_IHDR(writePtr, infoPtr, &width, &height, &bitDepth, &colorType, &interlaceType, in writePng()
592 << ", d = " << bitDepth << ", colors = " << colorType in writePng()
/frameworks/av/media/libmediaplayerservice/
DStagefrightMetadataRetriever.cpp224 uint32_t bitDepth = 8; in getImageInternal() local
230 bitDepth = 10; in getImageInternal()
238 bitDepth = 10; in getImageInternal()
244 return FrameDecoder::getMetadataOnly(trackMeta, colorFormat, thumbnail, bitDepth); in getImageInternal()
/frameworks/av/media/codec2/core/include/
DC2Config.h1525 : bitDepth(8), subsampling(C2Color::YUV_420) { } in C2ColorInfoStruct()
1527 uint32_t bitDepth; member
1533 : bitDepth(bitDepth_), subsampling(subsampling_) { } in C2ColorInfoStruct()
1538 : bitDepth(bitDepth_), subsampling(subsampling_) { in C2ColorInfoStruct()
1550 C2FIELD(bitDepth, "bit-depth")
2373 uint32_t bitDepth; member
2379 C2FIELD(bitDepth, "bit-depth")
DC2Buffer.h1629 uint32_t bitDepth; ///< significant bits per sample member
/frameworks/base/media/jni/
Dandroid_media_MediaProfiles.cpp271 int bitDepth = vc->getBitDepth(); in android_media_MediaProfiles_native_get_camcorder_profiles() local
282 bitDepth, in android_media_MediaProfiles_native_get_camcorder_profiles()
/frameworks/av/media/libstagefright/include/
DFrameDecoder.h54 bool thumbnail = false, uint32_t bitDepth = 0);
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp146 uint32_t vstride, uint32_t bitDepth) { in CreateYUV420PlanarMediaImage2() argument
147 const uint32_t componentBytes = (bitDepth + 7) / 8; in CreateYUV420PlanarMediaImage2()
153 .mBitDepth = bitDepth, in CreateYUV420PlanarMediaImage2()
183 uint32_t vstride, uint32_t bitDepth, bool uv = true /*nv12 or not*/) { in CreateYUV420SemiPlanarMediaImage2() argument
184 const uint32_t componentBytes = (bitDepth + 7) / 8; in CreateYUV420SemiPlanarMediaImage2()
190 .mBitDepth = bitDepth, in CreateYUV420SemiPlanarMediaImage2()
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp334 WebmElement *bitDepth = new WebmUnsigned(kMkvBitDepth, bps); in AudioTrackEntry() local
335 audioInfo.push_back(bitDepth); in AudioTrackEntry()
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp210 size_t bitDepth = layout.planes[C2PlanarLayout::PLANE_Y].bitDepth; in compareMd5Chksm() local
215 if (bitDepth == 8 && layoutType == C2PlanarLayout::TYPE_YUV && colInc == 1) { in compareMd5Chksm()
219 } else if (bitDepth == 8 && layoutType == C2PlanarLayout::TYPE_YUV && colInc == 2) { in compareMd5Chksm()
/frameworks/av/media/codec2/components/aom/
DC2SoftAomEnc.cpp827 mIs10Bit = (layout.planes[layout.PLANE_Y].bitDepth == 10); in process()